Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 197
  • Last Modified:

Linking Issues

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
dt19643063098
Asked:
dt19643063098
  • 2
  • 2
1 Solution
 
raybCommented:
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
 
nietodCommented:
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
 
dt19643063098Author Commented:
Right On I am new to C++ and that was what I needed.

0
 
raybCommented:
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
 
nietodCommented:
I see.  Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now