Jump to content
  • Advertisement
Sign in to follow this  
poorni123

Fatal Error in Visual Studio --URGENT

This topic is 3925 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am currently working on cool:gen. when i am trying to generate the code using Oracle 10g build is failed and following errors are shown: ---Compiles for ITG900.DLL Dependencies done C:\CA\Gen\Gen\instmsgj.EXE ITG900 Linking Load Module DLL ITG900 ...Linking Load Module DLL ITG900 link /NOLOGO /DLL /SUBSYSTEM:WINDOWS /NODEFAULTLIB:LIBC.LIB /entry:_DllMainCRTStartup@12 /OUT:"C:\CA\Gen\Models\ief900.ief\c\ITG900.DLL" /implib:"C:\CA\Gen\Models\ief900.ief\c\ITG900.LIB" /def:"C:\CA\Gen\Models\ief900.ief\c\ITG900.DEF" /OUT:"C:\CA\Gen\Models\ief900.ief\c\ITG900.DLL" @"C:\CA\Gen\Models\ief900.ief\c\ITG900.RSP" @"C:\CA\Gen\Models\ief900.ief\c\ITG900.LNK" LIBCD.lib(dllcrt0.obj) : error LNK2005: __CRT_INIT@12 already defined in MSVCRT.lib(crtdll.obj) LIBCD.lib(dllcrt0.obj) : error LNK2005: __DllMainCRTStartup@12 already defined in MSVCRT.lib(crtdll.obj) LIBCD.lib(dllcrt0.obj) : error LNK2005: __amsg_exit already defined in MSVCRT.lib(MSVCR80.dll) LIBCD.lib(dbgheap.obj) : error LNK2005: _free already defined in MSVCRT.lib(MSVCR80.dll) LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib(cinitexe.obj) LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib(cinitexe.obj) LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib(cinitexe.obj) LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib(cinitexe.obj) LIBCD.lib(strcat.obj) : error LNK2005: _strcpy already defined in MSVCRT.lib(MSVCR80.dll) LIBCD.lib(winxfltr.obj) : error LNK2005: ___CppXcptFilter already defined in MSVCRT.lib(MSVCR80.dll) Creating library C:\CA\Gen\Models\ief900.ief\c\ITG900.LIB and object C:\CA\Gen\Models\ief900.ief\c\ITG900.exp LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib 'LIBCD' conflicts with use of other libs; use /NODEFAULTLIB:library C:\CA\Gen\Models\ief900.ief\c\ITG900.DLL : fatal error LNK1169: one or more multiply defined symbols found NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\link.EXE"' : return code '0x491' Stop. Please tell me how to solve those errors its urgent. Poornima.

Share this post


Link to post
Share on other sites
Advertisement
You're multiply-defining a number of symbols. What are you linking with, and what libraries are those libraries linking with? It looks like you've static-linked the appropriate runtimes in two places, and then tried to link those together.

Share this post


Link to post
Share on other sites
The problem looks like you are linking in libraries that have different settings for the C runtime library (which is in libcd.lib, libc.lib, and msvcrt.lib, etc.). You need to make them all the same both w.r.t. Debug and Release versions, and static or dynamically linked.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!