리눅스에서 fltk클래스를 가지고 컴파일할때.

연우의 이미지

..도저히.ㅡ_ㅡ 안되네요.. 옵션을 넣어두..
윈도우 상에서는 DEV C++로 잘만 돌아갑니다..

리눅스에서 짠프로그램을.. fltk로 짠데다가 붙이려닌까..

아무래도.. 리눅스에 잇는 헤더파일을 많이 참조해서... 리눅스에서 돌려야되거든요..

# g++ test3.cxx -o homeserver.o -I/usr/include/g++-3
In file included from /usr/include/FL/Fl_Double_Window.H:29,
                 from test3.h:6,
                 from test3.cxx:21:
/usr/include/FL/Fl_Window.H:76:20: macro "border" requires 8 arguments, but only 1 given
In file included from /usr/include/FL/Fl_Double_Window.H:29,
                 from test3.h:6,
                 from test3.cxx:21:
/usr/include/FL/Fl_Window.H:76: variable or field `border' declared void
/usr/include/FL/Fl_Window.H:78:14: macro "border" requires 8 arguments, but only 1 given
/usr/include/FL/Fl_Window.H:78: declaration of `int Fl_Window::border'
/usr/include/FL/Fl_Window.H:76: conflicts with previous declaration `int
   Fl_Window::border'
/usr/include/FL/Fl_Window.H:78: parse error before `const'
/usr/include/FL/Fl_Window.H:78: duplicate member `Fl_Window::border'
/usr/include/FL/Fl_Window.H:79: semicolon missing after declaration of `
   Fl_Window'
/usr/include/FL/Fl_Window.H:79: ISO C++ forbids defining types within return
   type
/usr/include/FL/Fl_Window.H:79: two or more data types in declaration of `
   set_override'
/usr/include/FL/Fl_Window.H:79: semicolon missing after declaration of `class
   Fl_Window'
/usr/include/FL/Fl_Window.H: In function `int set_override()':
/usr/include/FL/Fl_Window.H:79: `FL_NOBORDER' undeclared (first use this
   function)
/usr/include/FL/Fl_Window.H:79: (Each undeclared identifier is reported only
   once for each function it appears in.)
/usr/include/FL/Fl_Window.H:79: `FL_OVERRIDE' undeclared (first use this
   function)
/usr/include/FL/Fl_Window.H:79: `set_flag' undeclared (first use this function)
/usr/include/FL/Fl_Window.H: At global scope:
/usr/include/FL/Fl_Window.H:80: non-member function `int override()' cannot
   have `const' method qualifier
/usr/include/FL/Fl_Window.H: In function `int override()':
/usr/include/FL/Fl_Window.H:80: `flags' undeclared (first use this function)
/usr/include/FL/Fl_Window.H: In function `void set_modal()':
/usr/include/FL/Fl_Window.H:81: `FL_MODAL' undeclared (first use this function)
/usr/include/FL/Fl_Window.H: At global scope:
/usr/include/FL/Fl_Window.H:82: non-member function `int modal()' cannot have `
   const' method qualifier
/usr/include/FL/Fl_Window.H: In function `void set_non_modal()':
/usr/include/FL/Fl_Window.H:83: `FL_NON_MODAL' undeclared (first use this
   function)
/usr/include/FL/Fl_Window.H: At global scope:
/usr/include/FL/Fl_Window.H:84: non-member function `int non_modal()' cannot
   have `const' method qualifier
/usr/include/FL/Fl_Window.H: In function `void free_position()':
/usr/include/FL/Fl_Window.H:89: `FL_FORCE_POSITION' undeclared (first use this
   function)
/usr/include/FL/Fl_Window.H:89: `clear_flag' undeclared (first use this
   function)
/usr/include/FL/Fl_Window.H: In function `void size_range(int, int, int, int,
   int, int, int)':
/usr/include/FL/Fl_Window.H:91: `minw' undeclared (first use this function)
/usr/include/FL/Fl_Window.H:91: `minh' undeclared (first use this function)
/usr/include/FL/Fl_Window.H:91: `maxw' undeclared (first use this function)
/usr/include/FL/Fl_Window.H:91: `maxh' undeclared (first use this function)
/usr/include/FL/Fl_Window.H:91: `dw' undeclared (first use this function)
/usr/include/FL/Fl_Window.H:91: `dh' undeclared (first use this function)
/usr/include/FL/Fl_Window.H:91: `aspect' undeclared (first use this function)
/usr/include/FL/Fl_Window.H:91: `size_range_' undeclared (first use this
   function)
/usr/include/FL/Fl_Window.H: At global scope:
/usr/include/FL/Fl_Window.H:93: non-member function `const char* label()'
   cannot have `const' method qualifier
/usr/include/FL/Fl_Window.H: In function `const char* label()':
/usr/include/FL/Fl_Window.H:93: cannot call member function `const char*
   Fl_Widget::label() const' without object
/usr/include/FL/Fl_Window.H: At global scope:
/usr/include/FL/Fl_Window.H:94: non-member function `const char* iconlabel()'
   cannot have `const' method qualifier
/usr/include/FL/Fl_Window.H: In function `const char* iconlabel()':
/usr/include/FL/Fl_Window.H:94: `iconlabel_' undeclared (first use this
   function)
/usr/include/FL/Fl_Window.H: At global scope:
/usr/include/FL/Fl_Window.H:98: non-member function `const char* xclass()'
   cannot have `const' method qualifier
/usr/include/FL/Fl_Window.H: In function `const char* xclass()':
/usr/include/FL/Fl_Window.H:98: `xclass_' undeclared (first use this function)
/usr/include/FL/Fl_Window.H: At global scope:
/usr/include/FL/Fl_Window.H:100: non-member function `const void* icon()'
   cannot have `const' method qualifier
/usr/include/FL/Fl_Window.H: In function `const void* icon()':
/usr/include/FL/Fl_Window.H:100: `icon_' undeclared (first use this function)
/usr/include/FL/Fl_Window.H: In function `int shown()':
/usr/include/FL/Fl_Window.H:103: `i' undeclared (first use this function)
/usr/include/FL/Fl_Window.H: At global scope:
/usr/include/FL/Fl_Window.H:104: virtual outside class declaration
/usr/include/FL/Fl_Window.H:105: virtual outside class declaration
/usr/include/FL/Fl_Window.H:111: non-member function `int x_root()' cannot have
   `const' method qualifier
/usr/include/FL/Fl_Window.H:112: non-member function `int y_root()' cannot have
   `const' method qualifier
/usr/include/FL/Fl_Window.H:122: parse error before `}' token
In file included from test3.h:6,
                 from test3.cxx:21:
/usr/include/FL/Fl_Double_Window.H: In member function `void
   Fl_Double_Window::show(int, char**)':
/usr/include/FL/Fl_Double_Window.H:37: no matching function for call to `
   Fl_Window::show(int&, char**&)'
/usr/include/FL/Fl_Widget.H:166: candidates are: void Fl_Widget::show()
test3.cxx: In function `int main(int, char**)':
test3.cxx:53: `$my_addr' undeclared (first use this function)
test3.cxx:67: invalid conversion from `int*' to `socklen_t*'
test3.cxx:82: `close' undeclared (first use this function

뭐가 문젤까요..ㅠ.,ㅠ 도와주세요. 보면 대부분이.. fltk 클래스에서 에러가 나는듯한..

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.