Sign in to follow this  
jackiechan

Overriding CRT libraries in VS2005

Recommended Posts

I'm migrating my projects from 2003 to 2005. I'm using my own version of the crt libs (malloc, calloc, etc). In 2003, I was able to supply my own implementations and was able to link to them. I'm starting to move over to 2005 and I'm getting a lot of redefinition warnings: cmemory.cpp(173) : warning C4565: 'malloc' : redefinition; the symbol was previously declared with __declspec(restrict) and multiply symbol errors: LIBCMT.lib(calloc.obj) : error LNK2005: _calloc already defined in cmemory.lib(cmemory.obj) Any new compiler/linker options or features I might have overlooked that would allow me to do this again?

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