www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - problem running first program

↑ ↓ ← 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
↑ ↓ → 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