hi ,guys,
I had some problems when compiling the source-code of Carob on Windows
the environment for compiling is :
1 Windows XP SP2
2 msys 1.0 + MingW-5.1.3
I had successfully make STLport , GMP-4.2.2 and cppuint-1.12 .But when I
compiled the source-code of Carob,the problems that I encountered are :
1)when unziped the "carob-r.tar.gz" by "tar" , I stared make it but there is
some error information:
"make-includes/main.mk:49: make-includes/Windows_NT-os.mk: No such file or
directory
make: *** No rule to make target `make-includes/Windows_NT-os.mk'. Stop."
the I copyed the "FreeBSD.mk" and rename the copy Windows_NT-os.mk".so I want
to ask this solution is right ????
2) the different class-defines and header-file, for example ,int the
header-file<sys/socket.h> of Linux ,there is defining for "socklen_t" and
this class in the header-file<winsock.h> of Windows is "typedef int
socklen_t".the error information is here:
"printf "#define CAROB_VERSION 0.7.4\n" >> include/CarobVersion.hpp
g++ -g -O2 -Wall -I../STLport/stlport -I../GMP-4.2.2 -c -o src/BigDecimal.o
src/BigDecimal.cpp
In file included from include/ControllerInfo.hpp:24,
from include/DriverSocket.hpp:25,
from src/BigDecimal.cpp:23:
include/SocketAddress.hpp:61: error: `socklen_t' has not been declared
include/SocketAddress.hpp:61: error: ISO C++ forbids declaration of `l' with no
type
3) the different system evoking between the Linux and the Windows.for
example,the function to creating a thread under Linux is "pthread_create" ,but
is "_beginthread" under
Windows .
the same for the problems of 2 and 3,are there other solution exception
adapting the source-code of Carob?
---------------------------------
天生购物狂,狂抢购物券,你还等什么! _______________________________________________
Carob mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob