?
Solved

Linking Issues

Posted on 1998-06-30
5
Medium Priority
?
193 Views
Last Modified: 2010-05-18
How do I resolve a linking error of an unresolved external of endthreadex.  I have an application that just includes AFX.H and IOSTREAM.H with a COUT and I get the linking error everytime.
0
Comment
Question by:dt19643063098
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
rayb earned 200 total points
ID: 1166945
If you are including the AFX.H file, you must link in the MFC libraries as well.  This can be done on the General tab of the project settings property sheet within DevStudio.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1166946
Can you have an MFC console application?  You can only have "cout" in a console application.  And I have never heard of an MFC console application--although it may be possible.  
0
 

Author Comment

by:dt19643063098
ID: 1166947
Right On I am new to C++ and that was what I needed.

0
 
LVL 2

Expert Comment

by:rayb
ID: 1166948
While you cannot utilize the application framework to create an MFC console application, you can include many of the utility classes such as CString just as dt19643 has done.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1166949
I see.  Thanks.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Suggested Courses

771 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