473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Statically linking WTL app not building

Hi,
using WTL for GUI, in release mode, if I set the "Runtime Library" to
"Multi-threaded DLL (/MD)", I get the following errors:
:
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _memmove_s already defined in
atlmincrt.lib(atlinit.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _free already defined in
atlmincrt.lib(atlinit.obj)

4 more errors like above. Also following errors:

atlmincrt.lib(atlinit.obj) : error LNK2001: unresolved external symbol
___xt_z
atlmincrt.lib(atlinit.obj) : error LNK2001: unresolved external symbol
___xt_a
atlmincrt.lib(atlinit.obj) : error LNK2001: unresolved external symbol
___xp_z
atlmincrt.lib(atlinit.obj) : error LNK2001: unresolved external symbol
___xp_a

How do I resolve these errors?

Thanks,

Ab.
Mar 13 '06 #1
2 2161
Ted
If you use multi threaded runtime library then you have to get rid of
_ATL_MIN_CRT from your compiler preprocessor defines.

Ted.

"Abubakar" <em**********@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,
using WTL for GUI, in release mode, if I set the "Runtime Library" to
"Multi-threaded DLL (/MD)", I get the following errors:
:
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _memmove_s already defined in
atlmincrt.lib(atlinit.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _free already defined in
atlmincrt.lib(atlinit.obj)

4 more errors like above. Also following errors:

atlmincrt.lib(atlinit.obj) : error LNK2001: unresolved external symbol
___xt_z
atlmincrt.lib(atlinit.obj) : error LNK2001: unresolved external symbol
___xt_a
atlmincrt.lib(atlinit.obj) : error LNK2001: unresolved external symbol
___xp_z
atlmincrt.lib(atlinit.obj) : error LNK2001: unresolved external symbol
___xp_a

How do I resolve these errors?

Thanks,

Ab.

Mar 13 '06 #2
Thanks, that resolved the error.

Ab.

"Ted" <te*@t--x.org> wrote in message
news:eZ*************@TK2MSFTNGP10.phx.gbl...
If you use multi threaded runtime library then you have to get rid of
_ATL_MIN_CRT from your compiler preprocessor defines.

Ted.

"Abubakar" <em**********@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,
using WTL for GUI, in release mode, if I set the "Runtime Library" to
"Multi-threaded DLL (/MD)", I get the following errors:
:
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _memmove_s already defined in
atlmincrt.lib(atlinit.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _free already defined in
atlmincrt.lib(atlinit.obj)

4 more errors like above. Also following errors:

atlmincrt.lib(atlinit.obj) : error LNK2001: unresolved external symbol
___xt_z
atlmincrt.lib(atlinit.obj) : error LNK2001: unresolved external symbol
___xt_a
atlmincrt.lib(atlinit.obj) : error LNK2001: unresolved external symbol
___xp_z
atlmincrt.lib(atlinit.obj) : error LNK2001: unresolved external symbol
___xp_a

How do I resolve these errors?

Thanks,

Ab.


Mar 14 '06 #3

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

Similar topics

0
by: Schraalhans Keukenmeester | last post by:
I have successfully linked php statically to Apache 1.3.xx (on SuSE9.2) I used the --with-apache option which gave me a directory under the apache install tree where the includable files sit. ...
1
by: LinuxN00b | last post by:
Hey, I have a problem linking Xerces-c (Apache's XMLParser) with my program. Here is a copy of my makefile. # CXX is for GNU make, CCC is for Solaris make # Define the default compiler to...
2
by: oxblood | last post by:
Hi, I'm trying to statically link a library I creat with 'ar rcs mylib.a .o files....' If I link only the .o files with my .c file, I get no compile error and the program runs fine. But if I...
7
by: Lee Crabtree | last post by:
I'm starting work on what will eventually be a very, very LARGE project. A lot of the project involves taking C/C++ class libraries and wrapping them with managed C++. I'd like to minimize the...
8
by: bonk | last post by:
Is it generally OK for an EXE that has MFC linked statically to load an use another DLL wich has MFC linked as shared DLL ? To be more specific: I have an EXE that links a lib. Let's call it...
1
by: ankur.cdac | last post by:
I have Sun WorkShop 6 update 1 C++ 5.2 2000/09/11 compiler running on SunOS 5.7 Generic_106541-08 sun4u sparc SUNW,Ultra-60 machine. i am using /opt/SUNWspro/bin//CC for building C++ code. I...
20
by: pratap | last post by:
Could someone clarify how could one reduce the size of an executable code during compile time. Could one use specific compile time flag with makefile or is it advisable to go for dynamic linking....
2
by: Manuel T | last post by:
Hello everybody, I'm trying to port a project from Windows+Cygwin to Linux(i'm working on a Debian-like: Kubuntu), but I'm facing a lot of linking problems. This project needs libraries xerces...
36
by: Martin Larsen | last post by:
Hi, When a PHP program links to a library using include or require (or their _once variations), is the library then linked dynamically or statically? While it might seem irrelevant from a...
12
by: tvnaidu | last post by:
I am getting this link error, I am using mongoose web server with Linux, any idea?: mongoose.c:3114: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...

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.