hi

I am trying to port a code written under Linux to Windows.
I used MinGW with GCC 4.0 on a Windows XP machine.
In order to use the drand48_r function, I downloaded and
installed LibG32C v0.4 library for Windows. I copied all the
header files under "C:\Program Files\GnuWin32\include\glibc"
to C:\MinGW\include and copied C:\Program Files\GnuWin32\lib\*.a
to "C:\MinGW\lib".

Then I compile my code, all the units are compiled ok.
However, when gcc linked the obj files, it aborted with error
"unresolved references" for drand48_r, seed48_r and also
for stdout/stdin. It looks to me like the libgw32c is not linked.
The following is the linking command:

gcc  -lgw32c -lole32 -lm  -o bin/mmc built/posix_randr.obj 
built/simpmesh.obj
uilt/tettracing.obj built/mcx_utils.obj built/tictoc.obj built/tetray.obj "

I am certain that gcc/ld had found the libgw32c.a that I placed
under c:\MinGW\lib, but somehow, it does not link :(

Anyone can help me out on this?

thanks

Qianqian

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to