[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
how to compile commoncpp2-1.0.13 for win32?
From: |
Wolfgang |
Subject: |
how to compile commoncpp2-1.0.13 for win32? |
Date: |
Sat, 20 Dec 2003 21:29:01 +0100 |
User-agent: |
KMail/1.5.4 |
i tried the last days to compile commonc++ for win32, but without success
with linux, i do not have a problem.
my environment:
commonc++: commoncpp2-1.0.13
linux: debian unstable with gcc/g++ and i586-mingw32msvc-c++ installed.
win32: native windows with dev-cpp (including mingw/gcc/g++) latest version.
on linux, i run ./configure in my own directory "mybins/" trying to use the
VPATH function to create bins/libs for all platforms. i still got the linux
files compiled, and a Makefile in my win32/ subdir. but no win32 files.
then i cd'ed into mybins/ and ran make explicit, but got only "nothing to
do...." the makefile itself did not reference mingw at all.
on windows, i used the import function of dev-cpp on the src tree of commonc++
importing the VC project files, without haveing run configure before (because
i do not know how to run configure within w2k).
in general that worked ok, but some files didn't compile (serial.cpp,
slog.cpp, socket.cpp, digest.cpp, and some more).
i.e sockets.cpp
i guess this warning:
(ost::Socket::writeData(const void*, unsigned int, long unsigned int)':../
src/socket.cpp:286: warning: comparison of unsigned expression < 0 is always
false )
makes sense, but i do not understand the reasons for all the other errors.
(See an example at the end iof this mail)
I believe i do something really wrong, but i haven't used mingw or gcc before
on win32, so can anyone give me a hint of how to get commonc++ compiled for
win32?
(using mingw or gcc )
Thx in advance ;-)
Wolfgang
=====compiler output using Dev-Cpp with mingw on win32====
Compiler: Default compiler
Building Makefile: "D:\APPS\DEVEL\Dev-Cpp\Myprojects\commoncpp2-1.0.13\win32
\Makefile.win"
Führt make... aus
make.exe -f "D:\APPS\DEVEL\Dev-Cpp\Myprojects\commoncpp2-1.0.13\win32
\Makefile.win" ../src/socket.o
g++.exe -c ../src/socket.cpp -o ../src/socket.o -I"D:/APPS/DEVEL/Dev-Cpp/
include/c++" -I"D:/APPS/DEVEL/Dev-Cpp/include/c++/mingw32" -I"D:/APPS/
DEVEL/Dev-Cpp/include/c++/backward" -I"D:/APPS/DEVEL/Dev-Cpp/include"
-I"D:/APPS/DEVEL/Dev-Cpp/include/cc++" -I"../win32" -I"../include"
-D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_WINDOWS -D_MBCS -D_USRDLL
-DCCGNU2_EXPORTS ../src/socket.cpp: In member function `virtual int
ost::Socket::writeData(const
void*, unsigned int, long unsigned int)':../src/socket.cpp:286: warning:
comparison of unsigned expression < 0 is always
false../src/socket.cpp: In constructor
`ost::TCPStream::TCPStream(ost::TCPSocket&, int, bool, long unsigned
int)':
../src/socket.cpp:1064: no matching function for call to `
std::basic_iostream<char, std::char_traits<char> >::basic_iostream()'D:/APPS/
DEVEL/Dev-Cpp/include/c++/iosfwd:64: candidates are:
std::basic_iostream<char, std::char_traits<char> >::basic_iostream(const
std::basic_iostream<char, std::char_traits<char> >&)D:/APPS/DEVEL/Dev-Cpp/
include/c++/istream:280:
std::basic_iostream<_CharT,
_Traits>::basic_iostream(std::basic_streambuf<_CharT, _Traits>*) [with
_CharT = char, _Traits = std::char_traits<char>]../src/socket.cpp: In
constructor `ost::TCPStream::TCPStream(const
ost::InetHostAddress&, short unsigned int, int, bool, long unsigned int)':
../src/socket.cpp:1095: no matching function for call to `
std::basic_iostream<char, std::char_traits<char> >::basic_iostream()'D:/APPS/
DEVEL/Dev-Cpp/include/c++/iosfwd:64: candidates are:
std::basic_iostream<char, std::char_traits<char> >::basic_iostream(const
std::basic_iostream<char, std::char_traits<char> >&)D:/APPS/DEVEL/Dev-Cpp/
include/c++/istream:280:
std::basic_iostream<_CharT,
_Traits>::basic_iostream(std::basic_streambuf<_CharT, _Traits>*) [with
_CharT = char, _Traits = std::char_traits<char>]../src/socket.cpp: In
constructor `ost::TCPStream::TCPStream(bool)':
../src/socket.cpp:1183: no matching function for call to `
std::basic_iostream<char, std::char_traits<char> >::basic_iostream()'D:/
APPS/DEVEL/Dev-Cpp/include/c++/iosfwd:64: candidates are:
std::basic_iostream<char, std::char_traits<char> >::basic_iostream(const
std::basic_iostream<char, std::char_traits<char> >&)D:/APPS/DEVEL/Dev-Cpp/
include/c++/istream:280:
std::basic_iostream<_CharT,
_Traits>::basic_iostream(std::basic_streambuf<_CharT, _Traits>*) [with
_CharT = char, _Traits = std::char_traits<char>]../src/socket.cpp: In copy
constructor `ost::TCPStream::TCPStream(const
ost::TCPStream&)':
../src/socket.cpp:1197: no matching function for call to `
std::basic_iostream<char, std::char_traits<char> >::basic_iostream()'D:/
APPS/DEVEL/Dev-Cpp/include/c++/iosfwd:64: candidates are:
std::basic_iostream<char, std::char_traits<char> >::basic_iostream(const
std::basic_iostream<char, std::char_traits<char> >&)D:/APPS/DEVEL/Dev-Cpp/
include/c++/istream:280:
std::basic_iostream<_CharT,
_Traits>::basic_iostream(std::basic_streambuf<_CharT, _Traits>*) [with
_CharT = char, _Traits = std::char_traits<char>]make.exe: *** [../src/
socket.o] Error 1Ausführung beendet
- how to compile commoncpp2-1.0.13 for win32?,
Wolfgang <=
- Re: how to compile commoncpp2-1.0.13 for win32?, taraben . a, 2003/12/20
- Re: how to compile commoncpp2-1.0.13 for win32?, Wolfgang, 2003/12/21
- Message not available
- Re: how to compile commoncpp2-1.0.13 for win32?, Wolfgang, 2003/12/21
- Re: how to compile commoncpp2-1.0.13 for win32?, taraben . a, 2003/12/21
- Re: how to compile commoncpp2-1.0.13 for win32?, Wolfgang, 2003/12/22
- Re: how to compile commoncpp2-1.0.13 for win32?, taraben . a, 2003/12/22
- Re: how to compile commoncpp2-1.0.13 for win32?, Wolfgang, 2003/12/22
- Re: how to compile commoncpp2-1.0.13 for win32?, taraben . a, 2003/12/22
- Re: how to compile commoncpp2-1.0.13 for win32?, Wolfgang, 2003/12/23