473,701 Members | 2,393 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 9482
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
1716
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 Linux with the same code. Under the sgi, UNIX machine some errors occur and I don't no why....
3
14525
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 external symbol DllCanUnloadNow
7
6551
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 New Project wizard, generate a Visual C++ .NET Class Library project (call it "Doomed") and a VC++...
1
8114
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. Does anyone has an idea on how to make this code compile in .Net ? Thanks, Joannes Vermorel
4
6401
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
4882
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
2555
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, when I use /MT, linking the static excutable completely dies (problems resolving symbols in the STL,...
0
3978
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
2969
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 code, I am facing some errors. I have installed PCRE and am using Visual C++ 6.0 in 32-bit mode. The
0
8733
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8649
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8975
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8934
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7822
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6569
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4410
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2398
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2035
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.