all groups > visual c libraries > november 2003 >
You're in the

visual c libraries

group:

Duplicate Definitions


Duplicate Definitions Kent
11/10/2003 1:04:44 PM
visual c libraries: I moved a VS 6.0 COM project to .NET 2003. It compiles
and links OK in the debug configuration. When trying to
build a release version, I get the following error:

LIBC.lib(crt0dat.obj) : error LNK2005: __osplatform
already defined in atlmincrt.lib(atlinit.obj)

Has anybody run into this kind of a problem?

Thanks for any help,

Duplicate Definitions Kent
11/10/2003 2:16:06 PM
I finally figured out the problem...I was using the C
library function 'strtol' and it was pulling in
crt0dat.obj. I got rid of 'strtol' and the duplicate
definition went away.

Kent



[quoted text, click to view]
AddThis Social Bookmark Button