From: <me...@ub...> - 2006-06-27 18:00:49
|
> grep is your old friend, sometimes wiser than google. > Undersored prefixed symbols umoddi3, divdi3, and moddi3 live in > libgcc.a. > iob is imported from mscrt.dll as ___imp___iob Are you using the =20 > archives produced by mingw in a MSVC++ project? > Some more details (ie command lines, verbose output, etc) of what you > are really doing would be helpful, 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 =20 below. The scl.c file which I'm trying to build does compile under =20 linux using mingw for deployment. But it does not when using MSVC. Thoughts, suggestions? =3D=3D=3D [Console] =3D=3D=3D C:\Documents and Settings\Administrator\Desktop\simone-1.0.0>cl =20 /Fo"scl.obj" -c scl.c /D "WIN32" /D "_WIN32" /D "UNICODE" /D "_UNICODE" /I =20 "include\ylib-1" /I " include\mgr-0" /I "include\scl-1" /I "C:\Program Files\Microsoft =20 Visual Studio . NET 2003\Vc7\PlatformSDK\Include" /I "include" /I "include\pthread" Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86 Copyright (C) Microsoft Corporation 1984-2002. All rights reserved. scl.c C:\Documents and Settings\Administrator\Desktop\simone-1.0.0>link =20 /out:scl.exe " scl.obj" "lib\libscl.a" "lib\libmgr.a" "lib\libylib.a" "C:\Program =20 Files\Microso ft Visual Studio .NET 2003\Vc7\PlatformSDK\Lib\Shell32.Lib" =20 "lib\libeay32.lib" " lib\ssleay32.lib" "c:\Program Files\Microsoft Visual Studio .NET =20 2003\Vc7\Platfo rmSDK\Lib\WS2_32.Lib" "c:\Program Files\Microsoft Visual Studio .NET =20 2003\Vc7\Pl atformSDK\Lib\Kernel32.Lib" Microsoft (R) Incremental Linker Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. libylib.a(ylib.o) : warning LNK4217: locally defined symbol __iob =20 imported in fu nction _y_init libylib.a(avl.o) : warning LNK4049: locally defined symbol __iob imported libmgr.a(mgr_crypt.o) : error LNK2019: unresolved external symbol =20 ___umoddi3 ref erenced in function _mgr_crypt_seed16 libylib.a(ytime.o) : error LNK2019: unresolved external symbol =20 ___divdi3 referen ced in function _y_gettimeofday libylib.a(ytime.o) : error LNK2019: unresolved external symbol =20 ___moddi3 referen ced in function _y_gettimeofday scl.exe : fatal error LNK1120: 3 unresolved externals =3D=3D=3D [/Console] =3D=3D=3D Thanks, ~ Matthew |