CFanatic

Go Back   CFanatic > Programming > C++ Programming

Join CFanatic Forum Now

unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup topic posted under C++ Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 06-26-2010, 12:59 AM
Junior Member
 
Join Date: Jun 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ayabrego is on a distinguished road
| More
unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup

Hello there guys,

This is my first post obviously. I am having a slight problem with Microsoft visual c++ express because I dont think its my code. here is my code.

Code:
#include <iostream>
using namespace std;
int main(){
	cout << "hello world";
	return 0;
}
and when I compile it this is what shows.


1>------ Build started: Project: Programexp, Configuration: Debug Win32 ------
1> main.cpp
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>C:\Users\Aaron\documents\visual studio 2010\Projects\Programexp\Debug\Programexp.exe : fatal error LNK1120: 1 unresolved externals

Any help guys I am running windows 7 by the way.
Reply With Quote
  #2  
Old 06-26-2010, 01:07 AM
shabbir's Avatar
Administrator
 
Join Date: Sep 2006
Posts: 1,159
Thanks: 48
Thanked 62 Times in 43 Posts
shabbir has a spectacular aura aboutshabbir has a spectacular aura about
| More
Re: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup

The issue is not with compiler but the issue is with your settings to link the right object file and instead of doing the tweaking with the linking of object file in the build configuation try creating a new Win32 Application project.

Remember Win32 Application Console based project.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to send messages to external window e.g. MS Paint ? unmeshjoshi Win32 Programming 1 06-14-2010 05:36 AM
Function problem mmondal71 C++ Programming 6 05-30-2010 03:24 AM
FUNCTION problem. singh_r85 C Programming 4 05-27-2010 06:32 AM
External files and streams inspiration C++ Programming 4 03-24-2010 09:04 PM
WaitFor function Angus C++ Programming 0 11-11-2006 10:11 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 04:38 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board