Error Dev-C++ when compiling with MySQL C API



Hi Doctors,
 
I got some link errors when I compiled and linked for use MySQL C API.
 
Parts of error list:
  .drectve /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
(...)
  .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
(...)
  [Linker error] undefined reference to `connect 12'
  [Linker error] undefined reference to `socket 12'
(...)
  [Linker error] undefined reference to `_ftol2'
(...)
  [Linker error] undefined reference to `libmsvcrt_a_iname'
(...)
  resolving Gtk::Stock::NEW     by linking to __imp___ZN3Gtk5Stock3NEWE (auto-import)
(...)
  [Linker error] undefined reference to `_nm___iob'
 
 
I'm using Dev-C++ 4.9.9.2, Gtk+ 2.6.10, Gtkmm 2.6.2 and MySQL 5.0 (all for Windows).
 
For Compiling and Linking Parameters I'm using:
 
-IC:\Dev-Cpp\include\gtkmm-2.4 -IC:\Dev-Cpp\lib\gtkmm-2.4\include -IC:\Dev-Cpp\include\glibmm-2.4 -IC:\Dev-Cpp\lib\glibmm-2.4\include -IC:\Dev-Cpp\include\gdkmm-2.4 -IC:\Dev-Cpp\lib\gdkmm-2.4\include -IC:\Dev-Cpp\include\pangomm-1.4 -IC:\Dev-Cpp\include\atkmm-1.6 -IC:\Dev-Cpp\include\gtk-2.0 -IC:\Dev-Cpp\include\sigc++-2.0 -IC:\Dev-Cpp\lib\sigc++-2.0\include -IC:\Dev-Cpp\include\glib-2.0 -IC:\Dev-Cpp\lib\glib-2.0\include -IC:\Dev-Cpp\lib\gtk-2.0\include -IC:\Dev-Cpp\include\pango-1.0 -IC:\Dev-Cpp\include\atk-1.0  -IC:\Dev-Cpp\include   -IC:\Dev-Cpp\include\mysql
 
and
 
-LC:\Dev-Cpp\lib -LC:\mysql\lib\opt -lgtkmm-2.4 -lgdkmm-2.4 -latkmm-1.6 -lgtk-win32-2.0 -lpangomm-1.4 -lglibmm-2.4 -lsigc-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -Wl,--enable-runtime-pseudo-reloc -lmysqlclient -lz
 
 
 

 

Thanks.

 

(o_o) - mds

GATBRASIL


Promoção Yahoo! Acesso Grátis: a cada hora navegada você
acumula cupons e concorre a mais de 500 prêmios! Participe!

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]