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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ViRoyCommented:
those files are not needed in the include process.
in your file whatever.h they will be defined, you can take those out.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.