I wrote a MySQL client program using GCC in Linux. It works beautifully. However, I need to integrate it with a Windows-only Bluetooth stack, which means that I need to port my code to Windows. I am not happy about this situation, but I find myself in it nonetheless.
I use standard C++ (with some STL in there) and calls to mysql_real_connect, mysql_query, etc. However, when I tried to import my code into a Microsoft Visual C++ project (copy files in, add a '/I"c:\path\to\header\files\from\http://www.mysql.com/Downloads/MySQL-3.23/mysql-3.23.49-win.zip"' entry to the C/C++ options, add the libmysql.lib to the Linker options, and compile), I got all kinds of errors. I searched a little more, and found such things as macro definitions in the .h files for MySQL conflicting with macro definitions in Windows header files. It was an irreconciliable nightmare. I tried to find documentation on how to build a Windows MySQL client in MS Visual C++, and I found *very* little on the web site (maybe one paragraph in section 2.6.2.6 that only says, "Be sure to tell the compiler where the header files are and the linker where the library libmysql.lib is. Oh, and compile your code to be multi-threaded too.") Now that I've talked your ear off, here's what I'd really like to know: - Exactly what do I need to download and install to build a MySQL client in MS VC++? Where can I find these files? Are the headers and libaries in http://www.mysql.com/Downloads/MySQL-3.23/mysql-3.23.49-win.zip enough? - Exactly what specific parameters do I need to set in MS VC++ to get it to work, and where can I find these parameters? - Does anyone have a .tar file of a SIMPLE working MS VC++ project, with source and headers included, that performs a connect to a MySQL database, does a query, and exits? Thanks in advance for any direction you can give me. If I don't find a solution in the next week, I'm just going to have to drop MySQL and use something else. Mike ---------------------------------------------- | ------------------------ Michael Halcrow | [EMAIL PROTECTED] Research Assistant, Network Security Lab | Dept. of Comp. Science | Brigham Young University Give a man a fire, he will be warm for the | evening. Set a man on fire, he will be warm | for the rest of his life. | ---------------------------------------------- | ------------------------ --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php