Compiling with Winelib and msvcrt
luigiwalser at yahoo.com
Sun Feb 17 16:17:52 CST 2002
Hi, I'm trying to compile a simple Win32 console app (
http://luigiwalser.homeip.net:8080/~walser/cosc/450/ex3/ex3.cpp if you want
to see it).
winemaker --console -I/usr/include/wine/msvcrt -I/usr/include/wine/wine
-imsvcrt.dll --single-target ex3
But make ends like this:
gcc -c -g -O2 -fPIC -D_REENTRANT -DWINELIB -I. -I/usr/include/wine/msvcrt
-I/usr/include/wine/wine -I/usr/include/wine -o ex3.spec.o ex3.spec.c
c++ -shared -Wl,-rpath,/usr/local/lib -Wl,-Bsymbolic -o ex3.so ex3.o
ex3.spec.o -L/usr/lib -lwine -lwine_unicode -lwine_uuid -lm
ex3.spec.o: In function `__wine_exe_main':
/home/walser/cosc/450/ex3/ex3.spec.c:52: undefined reference to
/home/walser/cosc/450/ex3/ex3.spec.c:53: undefined reference to `ExitProcess'
ex3.o: In function `main':
/home/walser/cosc/450/ex3/ex3.cpp:25: undefined reference to `GetSystemTime'
/home/walser/cosc/450/ex3/ex3.cpp:36: undefined reference to `_beginthread'
/home/walser/cosc/450/ex3/ex3.cpp:37: undefined reference to `Sleep'
/home/walser/cosc/450/ex3/ex3.cpp:43: undefined reference to `GetSystemTime'
/home/walser/cosc/450/ex3/ex3.cpp:47: undefined reference to `Sleep'
/home/walser/cosc/450/ex3/ex3.cpp:49: undefined reference to `Sleep'
ex3.o: In function `threadWork(void *)':
/home/walser/cosc/450/ex3/ex3.cpp:81: undefined reference to `Sleep'
test -e ex3 || ln -s /usr/bin/wine ex3
Note: it is computer science HW but building it with WINE isn't part of the
homework, so I'm not asking you to do my HW for me :o)
is the assignment.
Info about my WINE installation:
It's WINE 20011226 compiled from Mandrake SRPMS, the packages I have are:
you can look on rpmfind.net if you want to see what they include.
Can anybody please help me get this working? Last note: if this is a
mailing list, I'm not subscribed to it.
More information about the wine-devel