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++ - Help!!!

↑ ↓ ← ben_solaron yahoo.com writes:
I am trying to get my compiler to work for any code but all it says is error
level 1 or something like that.  I know that this code works.  I think that I
have set up my directory right.  I have adjusted the sc file.  The code that I
have mainly been trying is:

#include <stdio.h> 
void main()
{
printf("Hello World From About\n");
}

I got it from about.com's tutorial and i know that it is the most basic, most
commonly used code other than "From About".  I am using windows xp if that
helps.
Sep 17 2003
→ "Walter" <walter digitalmars.com> writes:
<ben_solaron yahoo.com> wrote in message
news:bkb9kr$1a9q$1 digitaldaemon.com...
 I am trying to get my compiler to work for any code but all it says is

 level 1 or something like that.  I know that this code works.  I think

 have set up my directory right.  I have adjusted the sc file.  The code

 have mainly been trying is:

 #include <stdio.h>
 void main()
 {
 printf("Hello World From About\n");
 }

 I got it from about.com's tutorial and i know that it is the most basic,

 commonly used code other than "From About".  I am using windows xp if that
 helps.

Try from a command prompt: \dm\bin\dmc test.c
Sep 17 2003
→ Paul McKenzie <paul paul.net> writes:
ben_solaron yahoo.com wrote:
 I am trying to get my compiler to work for any code but all it says is error
 level 1 or something like that.  I know that this code works.  I think that I
 have set up my directory right.  I have adjusted the sc file.  The code that I
 have mainly been trying is:
 
 #include <stdio.h> 
 void main()
 {
 printf("Hello World From About\n");
 }
 

Heck, your lucky Walter is a nice guy and didn't have strict ANSI C++ checking on for your program ;) Your program shouldn't even compile, since according to ANSI specs, main() is supposed to return an int, not void. Paul
Sep 23 2003