2 messages in com.mysql.lists.plusplusRe: Compilation problems| From | Sent On | Attachments |
|---|---|---|
| Florent SAURIAT | 14 May 2001 02:54 | |
| The Lazy Fox | 14 May 2001 03:56 |
| Subject: | Re: Compilation problems![]() |
|---|---|
| From: | The Lazy Fox (lazy...@foxden.dhs.org) |
| Date: | 05/14/2001 03:56:00 AM |
| List: | com.mysql.lists.plusplus |
Hi!
using MySQL++ and MFC together has indeed been a source of problems.
first of all, you should include winsock.h above where you include mysql++ now you should be free of compiler errors, but may still get linker errors
second, you should always use the standard C++ header files without the ".h" extension, for example always use #include <iostream> instead of #include <iostream.h>
finally, the C/C++ run-time library you use may be giving linker problems. i believe the best run-time library you can use is the non-debug single-threaded one. you can set this in the C/C++ tab of the project settings, item "code generation".
hope this works
c ya,
lazyfox
Florent SAURIAT wrote:
Hello everybody,
I am a new user of MySQL and I have some difficulties to compile a VC++ project. In fact, I will make a tool (construct with Visual C++ 6.0 and using MFC) which will work with MySQL database for WindowsNT. I would like to use the API C++. So, I tried the examples delivered with this API and succeeded to use them. But when I want to add these functions to my software I obtain error messages. Could everyone help me? I think that my include parameters are false but I can't find the mistake. (is it compliant to MFC?) Can someone send me an example of such a project (simple).
Thank you in advance.
Florent Sauriat




