Update: Compiling with Winelib and msvcrt

David Walser luigiwalser at yahoo.com
Sun Feb 17 16:55:16 CST 2002

I modified the winemaker command I issued to:

winemaker --console -I/usr/include/wine/msvcrt -I/usr/include/wine/wine 
-L/usr/lib/wine -lmsvcrt -lkernel32 --single-target ex3 .

and now:
c++ -shared -Wl,-rpath,/usr/local/lib -Wl,-Bsymbolic -o ex3.so  ex3.o  
ex3.spec.o   -L/usr/lib/wine -lmsvcrt -lkernel32 -L/usr/lib -lwine 
-lwine_unicode -lwine_uuid -lm  -L/usr/lib/wine
ex3.o: In function `main':
/home/walser/cosc/450/ex3/ex3.cpp:25: undefined reference to `GetSystemTime'
/home/walser/cosc/450/ex3/ex3.cpp:43: undefined reference to `GetSystemTime'
test -e ex3 || ln -s /usr/bin/wine ex3

so that's progress.  I thought GetSystemTime was in kernel32, and doing 
strings on it shows it is (as well as in several others).  What should I be 
linking in for GetSystemTime?


More information about the wine-devel mailing list