리눅스에서 fltk클래스를 가지고 컴파일할때.
글쓴이: 연우 / 작성시간: 월, 2003/09/15 - 8:17오후
..도저히.ㅡ_ㅡ 안되네요.. 옵션을 넣어두..
윈도우 상에서는 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 클래스에서 에러가 나는듯한..
Forums:
댓글 달기