Jump to content
  • Advertisement
Sign in to follow this  
infernosnow

can't find iostream.h file error

This topic is 4668 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

#include <iostream.h> main() { cout << "Hello World!"; return 0; } Quit possibly the most simple program ever and I can't get it to work. VC++ .NET error C1083 Using a Win32 project file.

Share this post


Link to post
Share on other sites
Advertisement
The code you gave is non-standard, you might want to try:

#include <iostream>

int main()
{
std::cout << "Hello World!";
return 0;
}

Share this post


Link to post
Share on other sites
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup
Debug/myApp.exe : fatal error LNK1120: 1 unresolved externals

Share this post


Link to post
Share on other sites
You started a windows application when you wanted a console application. The simplest way to fix this at this point is to recreate the project.

Share this post


Link to post
Share on other sites
You can't. There's an easier way to to change it to a console app though.

Project->Properties
Under the Linker folder
Click System
Change Subsystem (the top option) to Console

Share this post


Link to post
Share on other sites
Ok, well I know you can get text to appear in a windows application somehow ;)

so I wrote out www.kryolinth.com/mycode.txt

which creates a window and whatnot, but you'll see where I have cout and whatnot. So how do you make text appear in a windows application?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!