From: Danny S. <dan...@cl...> - 2006-06-27 21:10:42
|
> -----Original Message----- > > I'm building and linking the object from the command line > with `cl` and `link` from VS 2003 (for compat). I've attached > the console output > below. The scl.c file which I'm trying to build does compile under > linux using mingw for deployment. But it does not when using MSVC. > > Thoughts, suggestions? > > > libylib.a(ylib.o) : warning LNK4217: locally defined symbol __iob > imported in fu > nction _y_init > libylib.a(avl.o) : warning LNK4049: locally defined symbol > __iob imported I would have to see code fragment. Did you not recieve any warning when compiling, that __iob is a dllimport (as per stdio.h) ? It lives in msvcrt.dll, in mingw case. If you redefine it, you may well have trouble with, uhh, IO. > libmgr.a(mgr_crypt.o) : error LNK2019: unresolved external symbol > ___umoddi3 ref > erenced in function _mgr_crypt_seed16 > libylib.a(ytime.o) : error LNK2019: unresolved external symbol > ___divdi3 referen > ced in function _y_gettimeofday > libylib.a(ytime.o) : error LNK2019: unresolved external symbol > ___moddi3 referen > ced in function _y_gettimeofday > scl.exe : fatal error LNK1120: 3 unresolved externals As I said before, these live in libgcc.a. They are GCC's helpers for long long division. You will need to include libgcc.a in your link. Otherwise you could do some research and try something like this: long long __divdi3( long long x, long long y) { return x/y; } etc and compile these objects with MS cl.exe. I don't know if the above example is actually correct, ypou'll have to look in libgcc sources to work it out. \ > === [/Console] === > > Thanks, > > ~ Matthew > > > Using Tomcat but need to do more? Need to support web > services, security? Get stuff done quickly with > pre-integrated technology to make your job easier Download > IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057& dat=121642 _______________________________________________ MinGW-users mailing list Min...@li... You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.4/375 - Release Date: 6/25/2006 |