compile problems with libwine

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

 



Hi,

I try to port a Windows-console application to Linux. I did this:

> winemaker --lower-uppercase --console -I/usr/include/wine -L/usr/include/wine .
> ./configure
> make

Now all object files are created without warnings or errors, but while linking
this error is printed out:

[....]
LD_LIBRARY_PATH=":$LD_LIBRARY_PATH" /usr/bin/winebuild -fPIC -o koordkonsole2.exe.spec.c --exe koordkonsole2.exe -mcui    Game.o KoordKonsole.o Marshalling.o Network.o Socket.o Sync.o  -L/usr/lib -L/usr/lib/wine  -ladvapi32 -lcomdlg32 -lgdi32 -lkernel32 -lodbc32 -lole32 -loleaut32 -lshell32 -luser32 -lwinspool 
/opt/gcc-3.2/bin/gcc -c -I/usr/include/wine/ -I.  -I/usr/include/wine/windows -g -O2 -fPIC    -D_REENTRANT -o koordkonsole2.exe.spec.o koordkonsole2.exe.spec.c
g++ -shared -Wl,-Bsymbolic -o koordkonsole2.exe.so  Game.o KoordKonsole.o Marshalling.o Network.o Socket.o Sync.o  koordkonsole2.exe.spec.o   -L/usr/lib/wine/     -lwine -lwine_unicode -lwine_uuid  -lm  
KoordKonsole.o: In function `main':
/home/andreas/src/c++/KoordKonsole2.3_wine/KoordKonsole.cpp:17: undefined reference to `WSAStartup'
/home/andreas/src/c++/KoordKonsole2.3_wine/KoordKonsole.cpp:26: undefined reference to `WSACleanup'
Network.o: In function `CPosServerSocket::Create(unsigned short, Game&)':
/home/andreas/src/c++/KoordKonsole2.3_wine/Network.cpp:49: undefined reference to `_beginthread'
Network.o: In function `CPosServerSocket::AcceptThread(void*)':
/home/andreas/src/c++/KoordKonsole2.3_wine/Network.cpp:79: undefined reference to `_beginthread'
Network.o: In function `CPosClient::Connect(char*)':
/home/andreas/src/c++/KoordKonsole2.3_wine/Network.cpp:443: undefined reference to `_beginthread'
Network.o: In function `CPosClient::Reconnect()':
/home/andreas/src/c++/KoordKonsole2.3_wine/Network.cpp:479: undefined reference to `_beginthread'
Network.o: In function `CPosClient::StartBufferThread()':
/home/andreas/src/c++/KoordKonsole2.3_wine/Network.cpp:738: undefined reference to `_beginthread'
Socket.o: In function `Socket::GetLastError()':
/home/andreas/src/c++/KoordKonsole2.3_wine/Socket.cpp:46: undefined reference to `WSAGetLastError'
test -f koordkonsole2 || install wineapploader koordkonsole

I know these errors are from wsock32 and Windows-thread-code. Should I specify other
libraries to link it correct?

Please give me some hints.

Thanks
Andreas
_______________________________________________
wine-users mailing list
wine-users@winehq.com
http://www.winehq.com/mailman/listinfo/wine-users

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux