Comments are available to members only. Sign up or Log in to view these comments.
Main Topics
Browse All TopicsUsing the AppWiz in VC++ 4.2 I have generated program using only the default settings.
(This program links and runs fine)
The only change I made to the default project setting was to add the name of the external lib to the link section of the project settings.
When I try to use a function from this external library I get the following link errors:
Linking...
LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrtd.lib(MSVCRTD.dll)
LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrtd.lib(MSVCRTD.dll)
.
.
.
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
If I change project settings to ignore libc.lib I get the following link errors:
Linking...
protoolkit.lib(apfutil.obj
.
.
protoolkit.lib(session.obj
.
protoolkit.lib(genutil1.ob
.
protoolkit.lib(ctsysutil.o
protoolkit.lib(windows_32.
protoolkit.lib(genutil1.ob
protoolkit.lib(cu_appid.ob
protoolkit.lib(rpctool.obj
Debug/test1.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
test1.exe - 27 error(s), 0 warning(s)
The external lib works fine if I use a console app with no MFC calls.
The vender (PTC) says this should work fine but has not tried it??????
Any ideas?
Eric
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: thuiPosted on 1998-02-19 at 12:32:58ID: 1316401
Comments are available to members only. Sign up or Log in to view these comments.