![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The webpage suggests downloading the Visual C++ 2003 toolkit, |
|
How can I compile it using only the command line tool? |
|
Or is it possible to compile using another Windows C++ compiler, like MingW. |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
The free VC++ 2005 Express Beta 2 (which I believe is VC++ 8.0) does read the project file included in the MySQL++ distribution (although it 'upgrades' it) however the build very quickly fails because it cannot find 'windows.h' which is included from 'platform.h' . I have searched the files installed by VC++2005 and 'windows.h' does not appear to be one of them, so as far as I can tell MySQL++ does not build under VC++ 8. |
#5
| ||||
| ||||
|
|
cannot find 'windows.h' which is included from 'platform.h' . |
|
1) Generate a Makefile from the VC++7.1 IDE using the VC++7.1 project file |
|
2) Provide a distribution containing Windows binarys. |
|
SURELY there is someone on this list who has the full VC++ 7.1 IDE and can generate a Makefile or binary and make it available? |
#6
| |||
| |||
|
|
Generated Makefiles are un-debuggable. And the VC++ IDE is opaque, difficult to use, and a printed version of the |
|
On Windows, you'll be including the DLL with your program. (Or you would, if building a DLL were possible Are you saying that MySQL++ cannot currently be built as a DLL ? |
|
SURELY there is someone on this list who has the full VC++ 7.1 IDE and can generate a Makefile or binary and make it available? Can. Won't. |
#7
| ||||||
| ||||||
|
|
a printed version of the nmake documentation is impossible to find. |
|
I find that editing the generated Makefiles (with great care) is often easier than doing the same job via the VC++ IDE. |
|
Are you saying that MySQL++ cannot currently be built as a DLL ? |
|
If so, some advice on how it _should_ be built would be welcome to those trying to build on windows. |
|
trying to use them is pointless because there is no make file for MySQL++. Why then make the recommendation? |
|
In order to answer the originator of this thread I include a makefile below for MySQL++ which has been adapted from a VC++ 6.0 generated makefile. |
#8
| |||
| |||
|
|
Neil J Mackie wrote: Are you saying that MySQL++ cannot currently be built as a DLL ? =20 Yes. It's on the Wishlist. =20 If so, some advice on how it _should_ be built would be welcome to thos= e trying to build on windows. =20 Easy: build it as a lib file and link it to your program. Further details are in README.vc++. =20 If your program is closed-source, statically linking to the library is a violation of the LGPL, but until someone provides a way for you to comply with the LGPL, I don't see how anyone can get too uptight. =20 |
#9
| |||
| |||
|
|
If you are suggesting that you can't create a DLL in windows, you would be wrong. |
#10
| |||
| |||
|
|
On 4/21/05, Warren Young <mysqlpp (AT) etr-usa (DOT) com wrote: Neil J Mackie wrote: Are you saying that MySQL++ cannot currently be built as a DLL ? Yes. It's on the Wishlist. If so, some advice on how it _should_ be built would be welcome to those trying to build on windows. Easy: build it as a lib file and link it to your program. Further details are in README.vc++. If your program is closed-source, statically linking to the library is a violation of the LGPL, but until someone provides a way for you to comply with the LGPL, I don't see how anyone can get too uptight. If you are suggesting that you can't create a DLL in windows, you would be wrong. With some minor modifications to the MySQL++ files (I've posted this before) I do create a DLL with Mingw and gcc. I have no problems linking with this DLL in windows. I do have a problem with linking to the MySQL libraries when they are included in multiple header files in my project. But that is because the libraries have been built using VC++ for windows and I need to rebuild them with MingW. Once I have this resolved, everything is peachy. Unfortunately, I come from the Windows/ original Microsoft bandwagon - and so, my knowledge of Unix like tools is next to nil. I'm going to get a copy of O'Reilly's book that you recommended here to help me out. But I'm also looking for a set of tools that will work for Windows. I'm having problems with MingW's MSYS and I'm wondering whether I should install Cygwin on my system. Any advice would be welcome. Zahroof -- MySQL++ Mailing List For list archives: http://lists.mysql.com/plusplus To unsubscribe: http://lists.mysql.com/plusplus?unsu...ahoo (DOT) com |
![]() |
| Thread Tools | |
| Display Modes | |
| |