User forums > Help
Problem with --enable-auto-import with mysql++
Alexbad:
Simply because it doesn't work anymore, so I think I do something wrong...
Ceniza told me that the .lib extension were just supported by VC, and I don't find any mysqlclient.a. Of course I get a file named libmysqlclient.a but not mysqlclient.a
Ceniza:
Latest nightly (03 June)
libmysqlclient.a is the right name. Please install the Nightly and try again.
Alexbad:
Ok, I think this time the Nightly build is installed : the interface is changed and there's a new tab in the build options.
I tried to compile my code, I get a popup telling me :
"It seems that this project has not been build yet. Do you want to build it now?"
Of course I answer yes but the same popup reopen, again and again, until I click on "Cancel", and my program doesn't launch. This problem has nothing to see with mysql because I have it with all my old c::b project... and even with this code :
--- Code: (cpp) ---#include <iostream>
int main()
{
printf("Hello world");
}
--- End code ---
And when I click on "Rebuild" :
Thanks again for your patience :)
Ceniza:
My guess: you didn't configure the Nightly to use RC2's compiler, so it's unable to find mingw32-g++.exe
Check "Settings->Compiler and debugger" then the tab "Programs". "Compiler's installation directory" must point to the directory where RC2's compiler was installed (it should have directories like bin, include, lib, ...). My guess is it must be somewhere in C:\Program files\CodeBlocks (since I never installed the RC2 version that includes the compiler I don't have idea where it's saved).
Searching for mingw32-g++.exe should give you the right path, and it should be inside a directory named bin. Just add that path in "Compiler's installation directory", but don't include the "bin" directory on it.
Alexbad:
It works now for the compiler, I don't know why but it was the DevCpp's directories, I changed them...
Now, I always get a undefined reference, here you can see all : http://www.la-page.qc.ca/bd.PNG
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version