Witam wszystkich Mam nastepujacy problem.
Chce skompilowac program napisany dla bibliotek np. FLTK czy FOX. No wiec instaluje powyzsze biblioteki, np w przypadku FOX instaluje po prostu pakiety debiana: libfox0.99 i libfox0.99-dev. Po zainstalowaniu chcialbym sprawdzic czy kompilacja sie powiedzie wiec biore sobie przykladowy programik ze strony FOX'a, np. taki: ***************************************************************** #include <fox/fx.h> int main (int argc,char *argv[]) { // Make application FXApp* Application = new FXApp ("Window","Test"); // Open display Application -> init (argc,argv); // Make my own main window FXMainWindow* Main = new FXMainWindow (Application,"Window",NULL,NULL,DECOR_ALL,0,0,400,200); // Resize and display main window Application -> create (); Main -> show (); // Run return Application -> run (); } ***************************************************************** zapisuje to w pliku, np ,,p.cpp'' i zapuszczam kompilacje $c++ p.cpp i w tym momencie dostaje --------------------------- $ c++ p.cpp /tmp/cc6Ww7Qq.o: In function `main': /tmp/cc6Ww7Qq.o(.text+0x2e): undefined reference to `FXString::FXString(char const *)' /tmp/cc6Ww7Qq.o(.text+0x47): undefined reference to `FXString::FXString(char const *)' /tmp/cc6Ww7Qq.o(.text+0x5a): undefined reference to `FXApp::FXApp(FXString const &, FXString const &)' /tmp/cc6Ww7Qq.o(.text+0x7f): undefined reference to `FXString::~FXString(void)' /tmp/cc6Ww7Qq.o(.text+0x9a): undefined reference to `FXString::~FXString(void)' /tmp/cc6Ww7Qq.o(.text+0x103): undefined reference to `FXString::FXString(char const *)' /tmp/cc6Ww7Qq.o(.text+0x139): undefined reference to `FXMainWindow::FXMainWindow(FXApp *, FXString const &, FXIcon *, FXIcon *, unsigned int, int, int, int, int, int, int, int, int, int, int)' /tmp/cc6Ww7Qq.o(.text+0x15f): undefined reference to `FXString::~FXString(void)' /tmp/cc6Ww7Qq.o(.text+0x1b8): undefined reference to `FXApp::run(void)' /tmp/cc6Ww7Qq.o(.text+0x1e0): undefined reference to `FXString::~FXString(void)' /tmp/cc6Ww7Qq.o(.text+0x1fa): undefined reference to `FXString::~FXString(void)' /tmp/cc6Ww7Qq.o(.text+0x231): undefined reference to `FXString::~FXString(void)' collect2: ld returned 1 exit status ___________________________ i pytanie: co u licha? Pewnie cos robie zle, ale co??? kompilator widzi pliki naglowkowe, bo wyswietlilby odpowiedni komunikat, a tu tylko takie bledy. Podobnie sprawa ma sie z bibliotekami FLTK Co robie zle??? Pozdrawiam i z gory dziekuje Krzysiek -- ******************************** ** Krzysztof Krupa ** ** GG: 1104936 ** ** [EMAIL PROTECTED] ** ********************************