Hello,
I installed a stand alone MinGW, changed the PATH variable to include
this installation before the codeblock's mingw installation. I get the
same error. I did a simple helloworld.cpp program to verify that the
g++ works. I also executed the command g++ -v to verify that we are
using the stand alone MinGW compiler.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\mysql++-3.0.2>mingw32-make -f Makefile.mingw
g++ -c -o mysqlpp_beemutex.o -g -mthreads -DUNICODE -D_UNICODE
-DMYSQLPP_NO_DLL
-DHAVE_MYSQL_SSL_SET -I"C:\Program Files\MySQL\MySQL Server
5.0\include" -MTmy
sqlpp_beemutex.o -MFmysqlpp_beemutex.o.d -MD lib/beemutex.cpp
process_begin: CreateProcess(NULL, -c "g++ -c -o mysqlpp_beemutex.o -g
-mthreads
-DUNICODE -D_UNICODE -DMYSQLPP_NO_DLL -DHAVE_MYSQL_SSL_SET
-I\"C:\Program Files
\MySQL\MySQL Server 5.0\include\" -MTmysqlpp_beemutex.o
-MFmysqlpp_beemutex.o.
d -MD lib/beemutex.cpp", ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: *** [mysqlpp_beemutex.o] Error 2
C:\mysql++-3.0.2>g++ -v
Reading specs from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/specs
Configured with: ../gcc-3.4.5/configure --with-gcc --with-gnu-ld
--with-gnu-as -
-host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads
--disable-nls --
enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry
--disable-shar
ed --enable-sjlj-exceptions --enable-libgcj --disable-java-awt
--without-x --ena
ble-java-gc=boehm --disable-libgcj-debug --enable-interpreter
--enable-hash-sync
hronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw special)
Any advice?
On a side note, is it supposed to be this difficult to get c++ to talk
with mysql?
Thanks,
DanK
Warren Young wrote:
> Daniel Kolbo wrote:
>> g++ is in the PATH
>
> Well, the vague CreateProcess() error says it can't find *something*
> it needs. I suggest installing a freestanding version of MinGW to
> build MySQL++ with. You can then use it with CodeBlocks. It may be
> that the IDE sets certain necessary environment options for its copy
> of the tools.
>