bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to compile commoncpp2-1.0.13 for win32?


From: Wolfgang
Subject: Re: how to compile commoncpp2-1.0.13 for win32?
Date: Tue, 23 Dec 2003 13:10:33 +0100
User-agent: KMail/1.5.4

Adib,

No problem, you helped me a lot already. maybe someone else has an idea.

anyway - merry xmas :-)

Best regards

Wolfgang


Am Montag, 22. Dezember 2003 23:53 schrieb address@hidden:
> Hi Wolfgang,
>
> I have no glue what this stuff seems to be ... :-O
> You have the modules in the same order as I have. I can compile a
> program that use serial port and network :-)
> The Compiler-output for tcpstr1 is (I made a small DevCpp-project)
>
> Compiler: Default compiler
> Building Makefile: "U:\Adib\projekte\ser2net\src\Makefile.win"
> Führt  make... aus
> mingw32-make.exe -f "U:\Adib\projekte\ser2net\src\Makefile.win" all
> mingw32-g++.exe -D__DEBUG__ -c tcpstr1.cpp -o tcpstr1.o
> -I"C:/MinGW/include/c++/3.2.3"  -I"C:/MinGW/include/c++/3.2.3/mingw32"
> -I"C:/MinGW/include/c++/3.2.3/backward"  -I"C:/MinGW/include"
> -I"C:/Dev-Cpp/include/c++"  -I"C:/Dev-Cpp/include/c++/mingw32"
> -I"C:/Dev-Cpp/include/c++/backward"  -I"C:/Dev-Cpp/include"
> -I"C:/usr/include"   -g3
>
> mingw32-g++.exe -D__DEBUG__ tcpstr1.o  -o "tcpstr1.exe" -L"C:/MinGW/lib"
> -L"C:/Dev-Cpp/lib" -L"." -L"c:/usr/dll" libccgnu2.a libccext2.a
> C:/MinGW/lib/libwsock32.a
>
> Ausführung beendet
> Kompilierung erfolgreich
>
> means: well done, compiling ok.
> When I run this program it looks silly. It just prints "peppo" to stdout
> instead of waiting for a connection. (A problem with the isPending
> function???)
>
> HTH
>
> Adib.
>
> Wolfgang wrote:
> > Hello Adib,
> >
> > again thx (and so close to xmas ;-.),
> > well you were right, the makefile missed the -lxml2.
> >
> > #old entry (based on makefile in first reply to this thread)
> > #CCEXT2_LDFLAGS = -L. -L$(prefix)/dll -lccgnu2 -lws2_32 -lwsock32
> >
> > #updated entry
> > CCEXT2_LDFLAGS = -L. -L$(prefix)/dll -lccgnu2 -lxml2 -liberty -lws2_32
> >
> > but still, it does not compile.
> >
> > any more ideas?
> >
> > Again thx
> >
> > Wolfgang
> >
> >
> >
> >
> > ====snip compile using linux and mingw32 ====
> >
> > address@hidden:~/common-c++/commoncpp2-1.0.13/win32$ make -f Makefile.tst
> > i586-mingw32msvc-c++ -I. -I../include -I/usr/i586-mingw32msvc/include
> > -DHAVE_CONFIG_H -D_GNU_SOURCE -include ../win32/cc++/config.h -g -O2
> > -mthreads ../tests/tcpstr1.cpp -L. -L/usr/i586-mingw32msvc/dll -lccgnu2
> > -lccext2 -lws2_32 -o tcpstr1.exe
> > Info: resolving __ZTVN3ost9TCPStreamE by linking to
> > __imp___ZTVN3ost9TCPStreamE (auto-import)
> > /tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD2Ev+0x14): In function `main':
> > /home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../tests/tcpstr1.cpp:26
> >: variable 'vtable for ost::TCPStream' can't be auto-imported. Please read
> > the documentation for ld's --enable-auto-import for details.
> > /tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD1Ev+0x2): In function
> > `ZThn8_NSdD0Ev':
> > /usr/lib/gcc-lib/i586-mingw32msvc/3.3.1/include/c++/istream: variable
> > 'vtable for ost::TCPStream' can't be auto-imported. Please read the
> > documentation for ld's --enable-auto-import for details.
> > /tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD1Ev+0x12): In function `main':
> > /home/wolfgang/common-c++/commoncpp2-1.0.13/win32/../tests/tcpstr1.cpp:26
> >: variable 'vtable for ost::TCPStream' can't be auto-imported. Please read
> > the documentation for ld's --enable-auto-import for details.
> > /tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD1Ev+0x19):/home/wolfgang/common-c
> >++/ commoncpp2-1.0.13/win32/../tests/tcpstr1.cpp:26: variable 'vtable for
> > ost::TCPStream' can't be auto-imported. Please read the documentation for
> > ld's --enable-auto-import for details.
> > /tmp/cc9Kv6AR.o(.text$_ZN3ost9TCPStreamD1Ev+0x20):/home/wolfgang/common-c
> >++/ commoncpp2-1.0.13/win32/../tests/tcpstr1.cpp:26: variable 'vtable for
> > ost::TCPStream' can't be auto-imported. Please read the documentation for
> > ld's --enable-auto-import for details.
> > ...
> > ...
> > ...
> > ====snap compile using linux and mingw32 ====
>
> ... aso
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp





reply via email to

[Prev in Thread] Current Thread [Next in Thread]