RE: FW: [Dev-C++] Problems with MySQL (also with GTK)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Andres R. <lo...@ho...> - 2002-05-01 10:26:47
|
GCC does not know by it'self, what .a file contains required code. So you must specify those libs by yourself. Only reference to dir containing libs is not good enough. For example: if you compile standard c++ code (iostream etc.) it woulnt compile without -lstdc++ lib. (or atleast I have experienced so) Andres. >Hi All, > >I've got a similar problem with GTK. > >What does 'add ... to your project' mean. > >I thought all I had to do was make a reference >to the directory that contained the *.a files in the >Tools: Compiler Options: Directories: Libraries dialog. > >Although I've got lots of references in the Libraries box the >compiler still doesn't seem to be finding the libraries for GTK. > >I'm using Dev-C++ 4.9.2.0 (beta 5) on a Windows 2000 box. > >These are the errors I'm getting: >Line Unit Message >10 //F/Dev-C++/Projects/GTK/main.cpp undefined reference to >'gtk_init_abi_check' >12 //F/Dev-C++/Projects/GTK/main.cpp undefined reference to >'gtk_window_new' >13 //F/Dev-C++/Projects/GTK/main.cpp undefined reference to >'gtk_widget_show' >15 //F/Dev-C++/Projects/GTK/main.cpp undefined reference to >'gtk_main' > >John M > |