Help! Link Question

I used a extension ibrary(CJ60Lib from codeguru) in my project.
There's no problem when I dynamically link my application to CJ60Lib.
However,The following errors error when I link it statically.
libc.lib(crt0dat.obj) : error LNK2005: __cinit already defined in libcmt.lib(crt0dat.obj)
libc.lib(crt0dat.obj) : error LNK2005: _exit already defined in libcmt.lib(crt0dat.obj)
libc.lib(crt0dat.obj) : error LNK2005: __exit already defined in libcmt.lib(crt0dat.obj)
...
How can I do?
LiteAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
ViRoyConnect With a Mentor Commented:
those files are not needed in the include process.
in your file whatever.h they will be defined, you can take those out.
0
 
KangaRooCommented:
Looks like your mixing two different projects, or obj files from two projects or builds. Try to do a 'rebuild all'
0
 
kevinfCommented:
Without knowing CodeGuru, it looks like you have some of your project compiled single-threaded and some compiled multi-threaded (hence the mt on the library names). Change your project to one wholly consistent threading module and that might make things work.
0
All Courses

From novice to tech pro — start learning today.