www.digitalmars.com         C & C++   DMDScript  

c++ - problem running first program

reply roy <roy_member pathlink.com> writes:
getting this message when i run dmc test.cpp or sc test.cpp from c:\dm\bin -
link test,,,user32+kernel32/noi; - my simple test.cpp program is

#include <stdio.h>
#include <iostream.h>

main()
{
cout << "Yo!";
}

any ideas?
Nov 30 2002
parent Larry Brasfield <larry_brasfield snotmail.com> writes:
In article <asav18$1lch$1 digitaldaemon.com>, 
roy (roy_member pathlink.com) says...
 getting this message when i run dmc test.cpp or sc test.cpp from c:\dm\bin -
 link test,,,user32+kernel32/noi; - my simple test.cpp program is
 
 #include <stdio.h>
 #include <iostream.h>
 
 main()
 {
 cout << "Yo!";
 }
 
 any ideas?
If the message you get is "link test,,,user32+kernel32/noi;", then that is normal. I'm a little surprised you get that far because what you have shown is not a C++ program. In C++, there is no implicit return type for functions and your code is not a valid instance of the language. -- -Larry Brasfield (address munged, s/sn/h/ to reply)
Nov 30 2002