From: S.K.Bose <bo...@pa...> - 2000-11-20 05:23:59
|
On Fri, 17 Nov 2000, WilTech wrote: > Hello folks, > I downloaded 0.8.1 Win32Lookat. I compiled LibVRMLgl, core, and js, as well as libjpeg ,zlib, and png. GL came with my copy of VC++ 6.0, but I added GLUT. > > Now the problem: when I try to compile the debug version of Lookat, I get LNK 2005 ("already defined") and LNK2001 ("unresolved external") errors! Can anyone give me any assistance here? The following is a copy of the messages: > > Linking... > libci.lib(ostream.obj) : error LNK2005: "public: class ostream & __thiscall ostream::operator<<(char const *)" (??6ostream@@QAEAAV0@PBD@Z) already defined in msvcirtd.lib(MSVCIRTD.dll) > libci.lib(ostream.obj) : error LNK2005: "public: class ostream & __thiscall ostream::flush(void)" (?flush@ostream@@QAEAAV1@XZ) already defined in msvcirtd.lib(MSVCIRTD.dll) > libci.lib(_ios.obj) : error LNK2005: "public: virtual __thiscall ios::~ios(void)" (??1ios@@UAE@XZ) already defined in msvcirtd.lib(MSVCIRTD.dll) In debug mode such problem exist for making lookat.exe but it will make all libraries (libvrml97core.lib and libvrml97gl.lib). No such problem exist in release mode. For getting rid of this problem in debug mode, I can suggest to put comment in all I/O statements in lookat.cpp > libvrml97core.lib(VrmlScene.obj) : error LNK2001: unresolved external symbol _errno > libvrml97core.lib(VrmlNodeInline.obj) : error LNK2001: unresolved external symbol _errno > zlib.lib(gzio.obj) : error LNK2001: unresolved external symbol _errno > libci.lib(filebuf.obj) : error LNK2001: unresolved external symbol ___pioinfo > Debug/win32lookat.exe : fatal error LNK1120: 2 unresolved externals > Error executing link.exe. Please go through the portion "How to build third party libraries?" in "Install", where it is discussed (specifically zlib.lib). > > win32lookat.exe - 8 error(s), 0 warning(s) I hope if you make the zlib.lib again, then there will not be any problem to make win32lookat.exe in both mode (release or debug) Thanks, S. K. Bose |