473,394 Members | 1,748 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,394 software developers and data experts.

Visual Studio 11 compile error

HI, I'm using this tutorial: http://lazyfoo.net/SDL_tutorials/les...010e/index.php to build a C++ project and I'm getting these errors:
Error 1 error LNK2001: unresolved external symbol _WinMainCRTStartup C:\Users\Colin\documents\visual studio 11\Projects\SDL_tutorial\SDL_tutorial\LINK SDL_tutorial


Error 2 error LNK1120: 1 unresolved externals C:\Users\Colin\documents\visual studio 11\Projects\SDL_tutorial\Debug\SDL_tutorial.exe 1 1 SDL_tutorial

Here is the code for main.cpp, which is the only source file in the project so far...

Expand|Select|Wrap|Line Numbers
  1. #include "SDL.h"
  2.  
  3. int main( int argc, char* args[] ) {
  4.  
  5.     //Start SDL
  6.     SDL_Init( SDL_INIT_EVERYTHING ); 
  7.     //Quit SDL SDL_Quit(); return 0; 
  8. }
Nov 8 '11 #1
2 2198
Banfa
9,065 Expert Mod 8TB
I can't believe that tutorial is right,

For an console application using main the subsystem should be console

When the subsystem is set to Windows the entry point should be WinMain (not main)

That tutorial conflicts with this.
Nov 9 '11 #2
weaknessforcats
9,208 Expert Mod 8TB
What has happened is that you have created a Win32 project. This is for writing Windows programs.

Do this:
1) Create a Win32 project.
2) When the wizard appears do not click finish.
3) Instead, click application settings.
4) Set Console Application and Empty project.
5) Now click finish.
Nov 9 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Familie Spies | last post by:
Hi all, When running a program I made in VB under Windows XP i'm getting the following error: ! Compile error. Can't find project or library. (see also http://home.kabelfoon.nl/~hspies/2.jpg ) ...
4
by: Skc | last post by:
We have a developer who has made an application in Visual Studio 2003 and this will not work in our version of Visual Studio 2002. Error message: Solution file loading error: The selected file...
1
by: tomkarachris | last post by:
i try instal visual studio and i get Error 1402.Could not open key: HKEY_LOCAL_MACHINE\Software\Classes\ITIR.CmdInt.4\CLSID. Verify that you have sufficient access to that key, or contact...
0
by: russell.mccloy | last post by:
Hello, I started using the new CTP for Microsoft Visual Studio for Database proffessionals and it's great. however I decided to do a walkthrough on a web cast and follow the steps. When I go...
3
by: mauridepa | last post by:
I have Windows Vista with Visual Studio 2005 SP 1 i have a problem with debugger, when i start debug display this error: Unable to attach to application 'WebDev.WebServer.exe' (PID: 4832) using...
1
by: DR | last post by:
What ports do i need to unblock on client and server (running msvsmon.exe) to debug remotely from my client box with visual studio 2005 pro? When I attach to remote process a connection shows up...
3
by: iseveryusernamealreadyuse | last post by:
For about the past month, whever I start Excel of try to open an Excel file, I get a Visual Basic popup window: Compile Error: Can't find project or Library. I have no idea why I'm getting this...
1
by: MarcW | last post by:
I have a fresh install of VS2008, and when I drag a data grid on and try and bind it (create a new connection) I get an error. If I connect to a database in the database window and then try and...
4
by: LilMeechc20 | last post by:
I am new to programming and my first assignment is to write the hello world code. However, I wrote the code, which is: #include <iostream> using namespace std; int main() { cout <<"Hello...
0
by: FiberOptix | last post by:
Hello, I've been trying to modify and then compile a portion of an open source C/C++ project with Visual Studio 2010. I'm very much a C++ beginner and this is a learning experience. Relevant...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.