473,545 Members | 2,032 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

linking error in VC7.0

Kay
I already specified to ignore specific library:
MSVCPRT.lib MSVCRT.lib LIBC.lib MSVCRTD.lib LIBCD.lib
command line is like:
/INCREMENTAL /NOLOGO /DLL /NODEFAULTLIB:"M SVCPRT.lib MSVCRT.lib LIBC.lib
MSVCRTD.lib LIBCD.lib"

but I am still getting conflict linking problems. But if I do specify
/NODEFAULTLIB, I'll get anther bunch of linking errors. Anybody knows why?
thanks,

-Kay
Linking...

LIBC.lib(crt0da t.obj) : error LNK2005: _exit already defined in
msvcrtd.lib(MSV CR70D.dll)

LIBC.lib(crt0in it.obj) : error LNK2005: ___xc_z already defined in
msvcrtd.lib(cin itexe.obj)

LIBC.lib(crt0in it.obj) : error LNK2005: ___xc_a already defined in
msvcrtd.lib(cin itexe.obj)

LIBC.lib(crt0in it.obj) : error LNK2005: ___xi_z already defined in
msvcrtd.lib(cin itexe.obj)

LIBC.lib(crt0in it.obj) : error LNK2005: ___xi_a already defined in
msvcrtd.lib(cin itexe.obj)

mfcs70d.lib(dll modul.obj) : warning LNK4006: _DllMain@12 already defined in
MSVCRT.lib(dllm ain.obj); second definition ignored

LIBC.lib(crt0da t.obj) : warning LNK4006: _exit already defined in
MSVCRT.lib(MSVC R70.dll); second definition ignored

LIBC.lib(crt0in it.obj) : warning LNK4006: ___xc_z already defined in
MSVCRT.lib(cini texe.obj); second definition ignored

LIBC.lib(crt0in it.obj) : warning LNK4006: ___xc_a already defined in
MSVCRT.lib(cini texe.obj); second definition ignored

LIBC.lib(crt0in it.obj) : warning LNK4006: ___xi_z already defined in
MSVCRT.lib(cini texe.obj); second definition ignored

LIBC.lib(crt0in it.obj) : warning LNK4006: ___xi_a already defined in
MSVCRT.lib(cini texe.obj); second definition ignored

Creating library Debug/jsnopt.lib and object Debug/jsnopt.exp

LINK : warning LNK4098: defaultlib 'msvcrtd.lib' conflicts with use of other
libs; use /NODEFAULTLIB:li brary

LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other
libs; use /NODEFAULTLIB:li brary

LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs;
use /NODEFAULTLIB:li brary

LINK : warning LNK4098: defaultlib 'LIBCD' conflicts with use of other libs;
use /NODEFAULTLIB:li brary
Nov 17 '05 #1
1 9468
Kay,

It seems you build your solution using both single-threaded static CRT and
multi-threaded CRT. Check /ML, /MT or /MD settings in your projects and
ensure that you are using one version of CRT in libs and apps that consume
the libs.

Thanks,
--
Nikola Dudar
Visual C++; // Program Manager
This posting is provided "AS IS" with no warranties, and confers no rights.

"Kay" <ka******@inter change.ubc.ca> wrote in message
news:Oy******** ******@tk2msftn gp13.phx.gbl...
I already specified to ignore specific library:
MSVCPRT.lib MSVCRT.lib LIBC.lib MSVCRTD.lib LIBCD.lib
command line is like:
/INCREMENTAL /NOLOGO /DLL /NODEFAULTLIB:"M SVCPRT.lib MSVCRT.lib LIBC.lib
MSVCRTD.lib LIBCD.lib"

but I am still getting conflict linking problems. But if I do specify
/NODEFAULTLIB, I'll get anther bunch of linking errors. Anybody knows why?
thanks,

-Kay
Linking...

LIBC.lib(crt0da t.obj) : error LNK2005: _exit already defined in
msvcrtd.lib(MSV CR70D.dll)

LIBC.lib(crt0in it.obj) : error LNK2005: ___xc_z already defined in
msvcrtd.lib(cin itexe.obj)

LIBC.lib(crt0in it.obj) : error LNK2005: ___xc_a already defined in
msvcrtd.lib(cin itexe.obj)

LIBC.lib(crt0in it.obj) : error LNK2005: ___xi_z already defined in
msvcrtd.lib(cin itexe.obj)

LIBC.lib(crt0in it.obj) : error LNK2005: ___xi_a already defined in
msvcrtd.lib(cin itexe.obj)

mfcs70d.lib(dll modul.obj) : warning LNK4006: _DllMain@12 already defined
in MSVCRT.lib(dllm ain.obj); second definition ignored

LIBC.lib(crt0da t.obj) : warning LNK4006: _exit already defined in
MSVCRT.lib(MSVC R70.dll); second definition ignored

LIBC.lib(crt0in it.obj) : warning LNK4006: ___xc_z already defined in
MSVCRT.lib(cini texe.obj); second definition ignored

LIBC.lib(crt0in it.obj) : warning LNK4006: ___xc_a already defined in
MSVCRT.lib(cini texe.obj); second definition ignored

LIBC.lib(crt0in it.obj) : warning LNK4006: ___xi_z already defined in
MSVCRT.lib(cini texe.obj); second definition ignored

LIBC.lib(crt0in it.obj) : warning LNK4006: ___xi_a already defined in
MSVCRT.lib(cini texe.obj); second definition ignored

Creating library Debug/jsnopt.lib and object Debug/jsnopt.exp

LINK : warning LNK4098: defaultlib 'msvcrtd.lib' conflicts with use of
other libs; use /NODEFAULTLIB:li brary

LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other
libs; use /NODEFAULTLIB:li brary

LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other
libs; use /NODEFAULTLIB:li brary

LINK : warning LNK4098: defaultlib 'LIBCD' conflicts with use of other
libs; use /NODEFAULTLIB:li brary

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1708
by: Wolfgang | last post by:
I have a problem with linking my CPP Code under a irix6 machine (sgi, UNIX). In my CPP code I use some Functions which are written in Python. So its a kind of CPP wrapper for my Python functions In my Python Code I use threads to communicate over the network and stuff like this. Compilation and linking are working very well under Windows and...
3
14487
by: Saurabh Aggrawal | last post by:
Hi, I am porting an application for 64-bit AMD processor and while linking the application i am getting the following errors: Processing directory uidll... Linking DLL G:\NewUIPackers1\drivers\Unser\bin\WIN32\DEBUG\PPKAW1UI.dll .... LINK : warning LNK4224: /PDBTYPE is no longer supported; ignored UIDLL.def : error LNK2001: unresolved...
7
6537
by: wmkew | last post by:
Hello everyone I'm encountering a R6002 Runtime error and several bugs when trying to generate a simple Managed C++ application with .NET 2003. The main problem seems to arise from linking with LIBCMT(D).DLL. (My requirement is that we can't link with MSVCRT(D).LIB.) Below are steps I've followed, and the resulting problems 1. Using the...
1
8107
by: Joannes Vermorel | last post by:
I am currently trying to port a small open source scientfic library written in C++ to .Net. The code (including the VS solution) could be found at http://www.vermorel.com/opensource/selfscaling.zip My problem is that when I try to compile the library I got a list of linking error messages. I am not a specialist of porting C++ code to .Net....
4
6395
by: Sanjay Kumar | last post by:
Folks ! I am working with VC++ after a long time and having problem linking latest xerces 2.7 in VC++ 2005 Express Edition. I have done following: 1. downloaded and unpacked the the library: http://www.apache.org/dist/xml/xerces-c/binaries/xerces-c_2_7_0-windows_2000-msvc_60.zip
0
4876
by: Adam Clauss | last post by:
I have managed C++ library (is bridging between a Win32 .dll and a C# application). All was well when compiled under VS2003, but I am running into a series of linking errors when compiling against VS2005. They all/mostly seem to be within the STL. Any idea what might cause something like this? Linking errors follow. ---
0
2544
by: Philip Lowman | last post by:
I am in the process of trying to migrate a couple of build solutions to Visual Studio Express 2005 from VS 2003 Professional and I am running into a weird C/C++ runtime library linking issue when using the /MT compilation option. Our debug solution's /MTd flag works fine and using /MD also seems to work ok. For some reason I can't fathom,...
0
3965
by: xieml2007 | last post by:
Dear Madam or Sir, I encountered one problem which is quite similiar to the discussions launched at the web site: http://www.thescripts.com/forum/thread280324.html
0
2945
by: dotyet | last post by:
Hi Everyone, I am trying to build a DB2 UDB UDF which can perform regex over the table data. The user defined function will call an external .dll file to do the task. I am referring to the following link for doing so: http://www.ibm.com/developerworks/db2/library/techarticle/0301stolze/0301stolze.html While linking the below mentioned...
0
7475
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7409
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7921
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
5982
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3465
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1900
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1023
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
720
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.