Link to home
Start Free TrialLog in
Avatar of Lite
Lite

asked on

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?
ASKER CERTIFIED SOLUTION
Avatar of ViRoy
ViRoy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of KangaRoo
KangaRoo

Looks like your mixing two different projects, or obj files from two projects or builds. Try to do a 'rebuild all'
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.