[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pls help: linking problems with mingw/msys on win32 (linux works ok)
From: |
Wolfgang |
Subject: |
pls help: linking problems with mingw/msys on win32 (linux works ok) |
Date: |
Fri, 2 Jan 2004 20:37:15 +0100 |
User-agent: |
KMail/1.5.4 |
Hello,
i really need help on mingw/msys on win32. i encounter linking problems that i
cannot solve. e.g. i can compile a simple thread app or the tcpdemo, but not
an app using the socketservices. (see examples below)
note: the same source compiles and links perfect on my linux box.
also, it does not seems to make a difference wether i have the following files
within the mingw/lib or mingw/dll dir when i compile and link. (it seems that
i only need the *.dll files to execute the program).
Can anyone explain why my linking process fails and what files i need inside
mingw?
thx in advance
Wolfgang
mingw/lib:
13103364 libccext2.a
569388 libccext2dll.a
17491450 libccgnu2.a
632530 libccgnu2dll.a
mingw/dll:
390656 ccext2.dll
368128 ccgnu2.dll
569388 libccext2.a
632530 libccgnu2.a
//FAILS
address@hidden ~/projects/win32
$ make testsocketservice
mingw32-c++ -I. -I/mingw/include/cc++2 -D_GNU_SOURCE -O2 -mthreads -L. -L/
mingw/dll -L/mingw/lib -lccgnu2 -lccext2 -lws2_32 -o ../win32/
testsocketservice.exe ../test/testsocketservice.cpp
D:/TEMP/cc0Yaaaa.o(.text$_ZN12MySocketPort7pendingEv
+0xe1):testsocketservice.cpp: undefined reference to address@hidden'
make: *** [../win32/testsocketservice.exe] Error 1
//OK
address@hidden ~/projects/win32
$ make testthread
mingw32-c++ -I. -I/mingw/include/cc++2 -D_GNU_SOURCE -O2 -mthreads -L. -L/
mingw/dll -L/mingw/lib -lccgnu2 -lccext2 -lws2_32 -o ../win32/
testthread.exe ../test/testthread.cpp
//OK
$ make tcpthread
mingw32-c++ -I. -I/mingw/include/cc++2 -D_GNU_SOURCE -O2 -mthreads -L. -L/
mingw/dll -L/mingw/lib -lccgnu2 -lccext2 -lws2_32 -o ../win32/
tcpthread.exe ../test/tcpthread.cpp
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- pls help: linking problems with mingw/msys on win32 (linux works ok),
Wolfgang <=