Thanks for the helps. I re-installed mysql with c include/Lib Files and
now have lib and include.
But I still have question on what is the right way to generate make
file.=20
I try to use "makemake mingw", and have the following errors when
mingw32-make:
g++ -Ic:\mysql\include -I.. -DMYSQLPP_NO_DLL -O2 -c -O0
-odebug\coldata.o coldata.cpp
process_begin: CreateProcess((null), g++ -Ic:mysqlinclude -I..
-DMYSQLPP_NO_DLL
-O2 -c -O0 -odebugcoldata.o coldata.cpp, ...) failed.
make (e=3D2): The system cannot find the file specified.
mingw32-make: *** [coldata.o] Error 2
According to readme.vc, it has the following information:
----------------
Building the Library and Example Programs
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
First, you need to open a Windows command prompt (cmd.exe).
The easiest way to do this is to go into your Visual Studio
program group under the Start menu and in the Tools folder
find the Command Prompt item. All it does is open a command
window and run a batch file called vcvars32.bat to set
up the environment variables needed to run the Visual C++
command-line tools. If you have a different way to open a
command prompt that you prefer, you can use that and run the
vcvars32.bat file by hand.
To create the Makefiles, say "makemake vc" in the project's root
directory. You only have to do this once, unless you change
Makefile.base or Makefile.vc.
Now you can run GNU make to build the library and examples.
If you've installed GNU make through Cygwin, the command is
"make". If you're using the MinGW version of GNU make, it's
"mingw32-make" instead.
----------------------
I run makemake vc and mingw-32-make,it goes further but have the
following errors:
"link /OUT:debug\mysqlpp.dll /DLL /NOLOGO /LIBPATH:c:\mysql\lib\opt
libmysql.lib
/DEBUG debug/coldata.obj debug/connection.obj debug/datetime.obj
debug/field_names.obj debug/field_types.obj debug/fields.obj
debug/manip.obj debug/myset.obj debug/qparms.obj debug/query.obj
debug/result.obj debug/row.obj debug/sql_string.
obj debug/string_util.obj debug/type_info.obj debug/vallist.obj
LINK : fatal error LNK1181: cannot open input file 'debug/coldata.obj'
mingw32-make: *** [mysqlpp.dll] Error 1181
I found all *.obj is in the same directory as \lib. Even I create \debug
under \lib and copied the obj file to \debug, I still have the same
errors.
Any help are appreciated!
-----Original Message-----
From: Matt Dargavel [mailto:matt (AT) shout-telecoms (DOT) com]=20
Sent: Thursday, February 09, 2006 10:21 AM
To: plusplus (AT) lists (DOT) mysql.com
Subject: Re: where can I find mysql\lib and mysql\include
Sorry, a bit hasty with the reply there, didn't see the bottom bit. If
you're missing the include directories, you might not have chosen the
right install options? Try re-installing and making sure you select "C
Include / Lib Files" option. I haven't installed 5 so the name may be
slightly different. I suppose it's also possible 5 puts the header
files in a different directory, in which case a quick search should find
them.
Matt Dargavel wrote:
Quote:
The README and README.mingw files in the MySQL++ directory have=20
information on how to set all this up. In summary you either need to=20
install MySQL in c:\mysql\ (probably the easiest) or change=20
'MYSQL_DIR=3Dc:\mysql' in the various MAKEFILE.mingw files to point to =
where you installed MySQL Server (e.g. "C:\Program Files\MySQL\MySQL=20
Server 5.0\include" ) and rebuild the appropriate makefiles by running
'makemake mingw'.
Regards,
Matt.
Li, Eileen wrote:
I appreciate any help on this! I install mysql server 5.0, it appears
mysql\lib and mysql\include are not installed automatically in my=20
computer, how can I find them from mysql.com? I would appreciated if=20
there is a link with it.
I try mingw32-make, here is the error message,
C:\mysql++-2.0.7\lib>mingw32-make
cl /Ic:\mysql\include /DMYSQLPP_MAKING_DLL /D_WINDLL /D_UNICODE /G6=20
/EHsc /nologo /c /MDd /Od /D_DEBUG /ZI /Zi /Fodebug\coldata.obj=20
coldata.cpp coldata.cpp
c:\atwork\db\mysql++-2.0.7\lib\defs.h(34) : fatal error C1083: Cannot
open include file: 'mysql.h': No such file or directory
mingw32-make: *** [coldata.obj] Error 2
I check the makefile, it says: "MYSQL_DIR=3Dc:\mysql"
My problem is, I do not have c:\mysql at all, I have C:\Program=20
Files\MySQL\MySQL Server 5.0, and it does not have \lib and \include=20
directory.
Thank you in advance.
=20
where can I find mysql\lib and mysql\include for
VC++ 7.1?
=20
mysql.com
=20 |
--=20
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...ouri (DOT) edu
--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw