although there are many threads concerning makefiles, I still don't know how to handle these files.
Can anyone explain what exactly I have to do to build libraries?
Let's get more precisely: I have the newest wxDevC++ installed, and I'm running WinXP Pro.
Let's take for example wxCTB. I downloaded the version 0.8 from here: http://www.iftools.com/ctb.en.html
unpacked it and changed to the build directory.
There are some makefiles. Since I use MingW the right makefile is the makefile.gcc, right? Now when I try this on command line: mingw32-make -f makefile.gcc
this error occurs:
Now what am I doing wrong?F:\libwxctb-0.8\build>mingw32-make -f makefile.gcc
g++ -c -o wxctb_lib_expect.o -DNDEBUG -O2 -mthreads -I..\include -MTwxctb_lib
_expect.o -MFwxctb_lib_expect.o.d -MD ../src/expect.cpp
../src/expect.cpp:10:19: stdio.h: No such file or directory
../src/expect.cpp:11:20: string.h: No such file or directory
In file included from ../include/wx/ctb/expect.h:13,
from ../src/expect.cpp:13:
../include/wx/ctb/iobase.h:13:23: sys/types.h: No such file or directory
../include/wx/ctb/iobase.h:14:20: stddef.h: No such file or directory
In file included from ../include/wx/ctb/expect.h:13,
from ../src/expect.cpp:13:
../include/wx/ctb/iobase.h:146: error: `size_t' has not been declared
../include/wx/ctb/iobase.h:146: error: ISO C++ forbids declaration of `len' with
no type
../include/wx/ctb/iobase.h:180: error: `size_t' has not been declared
../include/wx/ctb/iobase.h:180: error: ISO C++ forbids declaration of `len' with
no type
../include/wx/ctb/iobase.h:190: error: `size_t' has not been declared
../include/wx/ctb/iobase.h:190: error: ISO C++ forbids declaration of `len' with
no type
../include/wx/ctb/iobase.h:204: error: `size_t' has not been declared
../include/wx/ctb/iobase.h:204: error: ISO C++ forbids declaration of `len' with
no type
In file included from ../include/wx/ctb/timer.h:14,
from ../src/expect.cpp:14:
../include/wx/ctb/win32/timer.h:15:21: windows.h: No such file or directory
In file included from ../include/wx/ctb/timer.h:14,
from ../src/expect.cpp:14:
../include/wx/ctb/win32/timer.h:34: error: `MMRESULT' does not name a type
../include/wx/ctb/win32/timer.h:72: error: `DWORD' does not name a type
../include/wx/ctb/win32/timer.h:76: error: `MMRESULT' does not name a type
../src/expect.cpp: In constructor `Expect::Expect(wxIOBase*)':
../src/expect.cpp:25: error: `NULL' undeclared (first use this function)
../src/expect.cpp:25: error: (Each undeclared identifier is reported only once f
or each function it appears in.)
../src/expect.cpp: In member function `char* Expect::Received()':
../src/expect.cpp:51: error: `strcat' undeclared (first use this function)
../src/expect.cpp: In member function `int Expect::Send(char*, char*)':
../src/expect.cpp:81: error: `NULL' undeclared (first use this function)
../src/expect.cpp:88: error: `strlen' undeclared (first use this function)
../src/expect.cpp:105: error: `FALSE' undeclared (first use this function)
../src/expect.cpp:105: error: `SleepEx' undeclared (first use this function)
../src/expect.cpp: In member function `int Expect::Sendv(char*, char*)':
../src/expect.cpp:155: error: `strcmp' undeclared (first use this function)
../src/expect.cpp:159: error: `NULL' undeclared (first use this function)
mingw32-make: *** [wxctb_lib_expect.o] Error 1
The readme doesn't help in any way.
I'm trying to understand where the problem is, so next time with another package I hope I know what to do.
Thanks.
Rino