윈도우에서 돌리기 위해 Cygwin 으로 오픈 소스를 컴파일 중입니다.

searchin19의 이미지

쭈~~~~욱 VC++ 을 개발하다가 이번에 오픈 소스 TestDisk 를 기반으로 윈도우 프로젝트를 진행하게 되서 Cygwin 을 만지고 있습니다.

오픈 소스 버전, 컴파일러 버전에 따른 오류에서부터 링크 오류까지 여러 난관을 만나게 되는군요.

인터넷을 뒤져서 찾을 수 있는 정보도 내용과 해석에(ㅡㅡ;;) 한계가 있는것 같아 질문 올려봅니다.

~/e2fsprogs-1.38$./configure --prefix=/usr CFLAGS=-fgnu89-inline
~/e2fsprogs-1.38$make libs
~/e2fsprogs-1.38$make install

1. make 시 참조 헤더에 선언된 inline 함수에 Multi defined 에러가 발생합니다. 헤더는 #ifndef - #def - #endif 로 싸여있습니다.
위에서 보시는 바와 같이 CFLAGS=-fgnu89-inline 옵션을 줘봤지만 증상은 여전하군요. 어떤 방법이 있을까요??

2. --prefix=/usr 옵션을 주고 작업 중입니다. 라이브러리 파일 xxxx.a 가 /usr/lib 폴더에 있어도 ./configure 호출 시
configure: WARNING: Use of xxxx library disabled 라고 메시지가 뜨는데요. 해당 라이브러리를 인식하게 하려면 어
떤 방법이 있는지요?

3. 필요한 라이브러리 중 ntfsprogs 라는 녀석이 있습니다. 이 녀석을 Cygwin 에서 돌리면 오직 리눅스 에서만 빌드 가능하다고 메시지
가 뜨는군요.....만약 이 녀석만 리눅스에서 빌드한다면, 그 아웃풋을 Cygwin 에서 쓰려할 때 어떤 작업이 필요한지요?

4. 만약, 당신이 TestDisk 를 기반으로 윈도우 프로젝트를 진행하려 한다면, 해당 페이지의 권유인 Cygwin 와 gcc cross platform
중 어느 방법을 선택하시겠습니까?

twinwings의 이미지

1. Multi defined 에러
- C에서는 inline 함수 작성할 때 "static inline"으로 해줘야 합니다.
(함수이름이 내부링크를 갖게 해서 Multi defined를 미연에 방지합니다.)

최신 표준이나 컴파일러 옵션이 존재하는지는 모르겠으나 임시방편으로는 될 겁니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.