Anybody Dev-c++?

From: Josep Subirana (slotosREMOVETHIS_at_arcor.de)
Date: 03/07/04


Date: Sun, 7 Mar 2004 00:10:15 +0100

Hi,

I'm a newbie and I'm trying to find out how to make mysql run EMBEDDED on a
c++ application.
It seems you have to include libmysql.lib in your project. When I try to do
that using Dev-C++ the following Linker error appears on the log:

------------------------------------------------------------
Compiler: Default compiler
Building Makefile: "C:\mysql\Embedded\Makefile.win"
Executing make...
make.exe -f "C:\mysql\Embedded\Makefile.win" all
g++.exe DLL/test_dll.o DLL/StdAfx.o -o
"devc++.exe" -L"C:/Programme/Dev-Cpp/lib" DLL/release/libmysqld.lib

DLL/test_dll.o(.text+0x79):test_dll.cpp: undefined reference to
`mysql_server_init@12'
DLL/test_dll.o(.text+0xd0):test_dll.cpp: undefined reference to
`mysql_close@4'
DLL/test_dll.o(.text+0xde):test_dll.cpp: undefined reference to
`mysql_close@4'
DLL/test_dll.o(.text+0xe6):test_dll.cpp: undefined reference to
`mysql_server_end@0'

DLL/test_dll.o(.text+0x1aa):test_dll.cpp: undefined reference to
`mysql_init@4'
DLL/test_dll.o(.text+0x1db):test_dll.cpp: undefined reference to
`mysql_options@12'
DLL/test_dll.o(.text+0x1f5):test_dll.cpp: undefined reference to
`mysql_real_connect@32'

DLL/test_dll.o(.text+0x207):test_dll.cpp: undefined reference to
`mysql_error@4'
DLL/test_dll.o(.text+0x231):test_dll.cpp: undefined reference to
`mysql_close@4'
DLL/test_dll.o(.text+0x288):test_dll.cpp: undefined reference to
`mysql_query@8'
DLL/test_dll.o(.text+0x29f):test_dll.cpp: undefined reference to
`mysql_field_count@4'
DLL/test_dll.o(.text+0x2b5):test_dll.cpp: undefined reference to
`mysql_store_result@4'
DLL/test_dll.o(.text+0x2d1):test_dll.cpp: undefined reference to
`mysql_num_fields@4'
DLL/test_dll.o(.text+0x2e2):test_dll.cpp: undefined reference to
`mysql_fetch_row@4'
DLL/test_dll.o(.text+0x392):test_dll.cpp: undefined reference to
`mysql_affected_rows@4'
DLL/test_dll.o(.text+0x3b4):test_dll.cpp: undefined reference to
`mysql_error@4'

make.exe: *** [devc++.exe] Error 1

Execution terminated

------------------------------------------------------------

On my settings, in the Parameter sections I have added the library to the
Linker.
What am I doing wrong???

Has anybody already done that: embedded mysql under Dev-C++ (Windows)?

Thanks a lot
Josep



Relevant Pages

  • [RESOLVED] DBD::mysql unresolved symbol _intel_fast_memcpy & mysql-standard-5.0.22-l
    ... Some of you may have wanted to build and install the DBD::mysql ... Mysql**, "...the MySQL Community Server compiled with the Intel CC ... Server compiled with the Intel CC compiler exhibit faster performance ... I will use the following settings for compiling and testing: ...
    (comp.lang.perl.modules)
  • Re: [SOLVED] php5-mysql? (with added bonus for snort)
    ... make install of php5 and of mysql but no luck so far. ... Configured with: FreeBSD/i386 system compiler ... configure:2823: checking build system type ... configure:2974: checking for PHP includes ...
    (freebsd-questions)
  • php5-mysql?
    ... make install of php5 and of mysql but no luck so far. ... Configured with: FreeBSD/i386 system compiler ... configure:2823: checking build system type ... configure:2974: checking for PHP includes ...
    (freebsd-questions)
  • Re: Announcement of a 7DRL - @man! (Atman!)
    ... My compiler has been playing stupid b*gg*rs ... First it wouldn't produce a correct console app on my laptop. ... when newbie check your equipment works thoroughly before ... Visual C++ 2005 Express is a free download and is a full ...
    (rec.games.roguelike.development)
  • Re: CPAN and DBD::mysql install failure
    ... If that's the case, the the additional definition of -D_FORTEC leads me to believe that MySQL wasn't built with GCC, but with Sun's Forte C compiler. ... CPAN would not build modules using my gcc when the original perl was built using cc. ...
    (comp.lang.perl.misc)