Re: FW: [Dev-C++] Problems with MySQL (also with GTK)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Hongli L. <h....@ch...> - 2002-04-30 23:57:47
|
J Miller wrote: >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 > >-----Original Message----- >From: dev...@li... >[mailto:dev...@li...]On Behalf Of >co...@in... >Sent: Tuesday, April 30, 2002 22:54 >To: dev...@li... >Subject: Re: [Dev-C++] Problems with MySQL > > > > >> Might it be a fault of mysql.h file? Or, which liblaries have I >> >> >use? > >You must add libmysql.a to your project. You can find it at: >http://www.johnydog.cz/projects.php > > > You will have to link to the GTK+ libraries. Add these to your Linker options: -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -limm32 -lshell32 -lole32 -luuid -lgdi32 -lm The next version of my GTK+ package will include a template that does that automatically for you. |