Solved

Linking Error in vc++ Application

Posted on 2004-10-20
5
279 Views
Last Modified: 2012-06-21
I m working on vc++ application.
When I build the application in debug Mode it builds successfully.
But when I build it in Release Mode it gives the Errors


nafxcw.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcw.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex


What is the soulution for the above Error
Is there any setting reqd?

leork
0
Comment
Question by:leork2004
5 Comments
 
LVL 13

Accepted Solution

by:
SteH earned 500 total points
ID: 12356275
You need to choose to use a multithreaded library:
Project->Settings
 C/C++ Tab->Code genration
Select either Multithreaded or Multithreaded DLL (Debug xxx if using a debug config).
0
 
LVL 39

Expert Comment

by:itsmeandnobodyelse
ID: 12361198
>>> When I build the application ...
>>> ... But when I build it in Release Mode

That means, your application has "Single-Threaded" settings for "Release - Configuration" but you need "Multi-Threaded" settings. Only with "Multi-Threaded" switch, your project is linked against the appropriate libraries that include the modules 'endthreadex' and 'beginthreadex'.

When opening Settings Dialog, choose "Release Configuration" in the top-left combo box - if not already selected. Then - as STeH already told you - it's the 'C++' tab, Category 'Code Generation' and 'Use run-time library' combobox, where you have to choose 'Multi-Threaded'.

Regards, Alex
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now