Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: need help when compiling  (Read 4858 times)

0 Members and 1 Guest are viewing this topic.

ComPnoob

  • Guest
need help when compiling
« on: December 01, 2004, 02:35:10 PM »
Im just beginning to learn how to use C. i got this script from this site: http://randimus.freeservers.com/ctut1.html and after i compile this:
#include <stdio.h>
main ( )
{
printf ("Hi Cruel World");
return (0);
}

it keep saying that line2 warning no newline at end of file
did i type anything wrong?
btw im using dev-C++4.9.9.1

Raptor

  • Guest
Re: need help when compiling
« Reply #1 on: December 01, 2004, 03:08:30 PM »
Does the guide mention you have to use that compiler? Some guides are focused on different compilers..

There are more patient and serious guides out there..
« Last Edit: December 01, 2004, 03:09:21 PM by Raptor »

Corrosive

  • Guest
Re: need help when compiling
« Reply #2 on: December 02, 2004, 02:05:12 PM »
I think you may also need to include the STDLIB library as well. Add "#include <stdlib.h>" just below or just above the other one. Or maybe try replacing "printf" with "puts"