Jump to content

techx

Member
  • Posts

    3
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

About techx

techx's Achievements

0

Reputation

  1. After looking at some other peoples code I found what I needed to do to fix the problem, this works now. Thanks #include "stdafx.h" #include <iostream> using std::cout; void main() { cout << "Hello World"; }
  2. ahh thats right, namespace.. So I added that namespace line and now i get this error Linking... LIBCMTD.lib(wincrt0.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup so I searched on that error and found a solution here but it still did not resolve the problem. Only microsoft can make "hello world" a pain in the butt to compile, lol. Thanks
  3. Hello, I've downloaded MS Visual C++ 2005 beta and want to start coding with it. Most of my experience is with command line unix based compilers (g++, etc), not gui compilers like this, so when I tried to test a real simple program: #include <iostream> int main () { cout << "Hello, World!"; return 0; } I get this error message: error C2065: 'cout' : undeclared identifier I've checked everything I could think of, even the default path for all includes under setting tools->options, which was correct. Maybe I'm missing something simple. Thanks
×
×
  • Create New...