Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Iostream

Author
Message
Michael P
18
Years of Service
User Offline
Joined: 6th Mar 2006
Location: London (UK)
Posted: 26th Dec 2007 13:41
In previous C++ editors the following code worked fine:
Quote: "#include <iostream>
using namespace std;
void main()
{
cout << "Hello World!"
}
"


In 2008 Express however, the header file can't be found (apparently). What am I doing wrong?
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 26th Dec 2007 16:05
Go to Project>Properties>Configuration>C/C++>Code Generation and change Runtime Library to /MT

That should do the trick.

Your signature has been erased by a mod
Michael P
18
Years of Service
User Offline
Joined: 6th Mar 2006
Location: London (UK)
Posted: 26th Dec 2007 17:40 Edited at: 26th Dec 2007 19:09
I did that, but I now have another problem (see screenshot). What is the difference between all the different code generation and change runtime libraries?

Attachments

Login to view attachments
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 27th Dec 2007 04:49
I (in vs2005) Often had to EXCLUDe LIBCMT.Lib, LIBCMTD.LIB, and I think ATLS.lib.

Experiment... AFTER you BACKUP your project file though - those settings are impossible to put back sometimes if you change to much stuff trying to hack it.

Login to post a reply

Server time is: 2024-10-08 15:45:25
Your offset time is: 2024-10-08 15:45:25