Sign in to follow this  
supagu

linker catch 22

Recommended Posts

I've got a problem i dont know how to solve. I have a project in vc2005, and im trying to get it to compile. Debug build works fine, but a release build has linker errors. along the liens of: LIBCMTD.lib(dbgheap.obj) : error LNK2005: _malloc already defined in LIBCMT.lib(malloc.obj) but im getting abunch of these for different functions. I've i try to ignore when of these lib's then i get link errors about missing functions. Any ideas on what to try? I have a bunch of projects which my exe depends on. These all compile in release mode.

Share this post


Link to post
Share on other sites
It looks like your release build is linking in both the debug AND release libraries. LIBCMTD is the debug multithreaded C library and LIBCMT is the release multithreaded C library.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this