Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » Always MySQL Link error
Always MySQL Link error [message #29122] Wed, 06 October 2010 11:59 Go to next message
ratah is currently offline  ratah
Messages: 107
Registered: July 2010
Experienced Member
Hi everybody,

I re-post it here
Experimentating on MySQL application, I have this link problem.


----- Core ( MT GCC FORCE_SIZE WIN32 ) (1 / 5)
----- MySql ( MT GCC FORCE_SIZE WIN32 ) (2 / 5)
----- plugin/z ( MT GCC FORCE_SIZE WIN32 ) (3 / 5)
----- Sql ( MT GCC FORCE_SIZE WIN32 ) (4 / 5)
----- insertionAFB ( MT MAIN GCC FORCE_SIZE WIN32 ) (5 / 5)
Linking...
c:/program files/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../.. /../mingw32/bin/ld.exe: cannot find -lmysql
collect2: ld returned 1 exit status


I copied everywhere the 3 libraries:

- libmysql.dll
- libmysql.lib
- mysqlclient.lib

Do someone can resolve/explain the reason

Thank you very much
Re: Always MySQL Link error [message #29124 is a reply to message #29122] Wed, 06 October 2010 12:37 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3357
Registered: August 2008
Senior Veteran
Hello Ratah

Try to set in Setup/Build Methods, for your compiler, the "LIB directories" (.lib, .o files) and "PATH - executable directories" (.dll files).


Best regards
Iñaki
Re: Always MySQL Link error [message #29164 is a reply to message #29124] Fri, 08 October 2010 11:26 Go to previous messageGo to next message
ratah is currently offline  ratah
Messages: 107
Registered: July 2010
Experienced Member
Great!!
Thank you Koldo
have a good week end
Re: Always MySQL Link error [message #29166 is a reply to message #29164] Fri, 08 October 2010 12:21 Go to previous message
koldo is currently offline  koldo
Messages: 3357
Registered: August 2008
Senior Veteran
You too Smile.

Best regards
Iñaki
Previous Topic: Compiling error for mysql
Next Topic: Question about SQL....
Goto Forum:
  


Current Time: Wed Apr 24 05:09:01 CEST 2024

Total time taken to generate the page: 0.01489 seconds