FW: [Dev-C++] Problems with MySQL (also with GTK)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Peter K. <pw...@st...> - 2002-05-01 22:51:44
|
I have experienced similar problems and am now confused (which is not difficult!). As I understand it, if you include the relevant header (*.h) files in your code and then include the directory which contains the corresponding *.a file (or lib file) in your libraries search path, then the linker will search libraries on that path to resolve the reference. To state it clearly, you are saying I have to link with that particular library, rather than just include the search path? -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Andres Rand Sent: 01 May 2002 20:27 To: Dev-C++ User Mailing List Subject: RE: FW: [Dev-C++] Problems with MySQL (also with GTK) 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 > |