Learnem Educational
May 18, 2012, 12:23:33 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Compiling problem  (Read 3604 times)
Kaycee
Newbie
*
Posts: 2


View Profile WWW
« on: February 07, 2002, 03:59:57 PM »

Hi,

I am new to programming and I want to learn C.
Now when I compile this:

#include<stdio.h>
int main(void)
{
    printf("Hello world\n");
    return 0;
}

The compiler says:

Could not compile, could not find stddio.h

Please help me, I really wanna learn!

The compiler I use is Borlands compiler, cause I need a free one.

Thanks.
« Last Edit: January 01, 1970, 12:00:00 AM by Kaycee » Logged
Anonymous
Guest
« Reply #1 on: February 08, 2002, 08:22:31 PM »

You need to tell the compiler were it can find the include files.

Something like bcc32 -Ic:\borland\bcc55\include hello.c

Then you'll probably get the message the compiler can't find the library files.  
So the complete syntax should be bcc32 -Ic:\borland\bcc55\include -Lc:\borland\bcc55\lib hello.c

You could also create to files (bcc32.cfg and ilink32.cfg) but why not check the Borland site.  Their explanation is alot better than mine  :wink: .
http://http://community.borland.com/article/0,1410,21205,00.html
« Last Edit: January 01, 1970, 12:00:00 AM by Anonymous » Logged
Kaycee
Newbie
*
Posts: 2


View Profile WWW
« Reply #2 on: February 08, 2002, 08:28:49 PM »

I found the file in some borland directory, but what you told me should I put that line into my script? (I am totally new to this so plz help)

Also I like the borland compiler cause all the others are confusing, I need a windows compiler...

Cud u help me?
« Last Edit: January 01, 1970, 12:00:00 AM by Kaycee » Logged
JulieHaycraft
Newbie
*
Posts: 2


View Profile
« Reply #3 on: March 26, 2002, 04:34:47 PM »

You normally need to say where the include library is in your Autoexec.bat. Look on the PATH= line. I think it should say something like c:\borland\bcc55\include\

Julie
« Last Edit: January 01, 1970, 12:00:00 AM by JulieHaycraft » Logged
Anonymous
Guest
« Reply #4 on: August 31, 2002, 09:31:20 AM »

what's the differences between:
a.) #include<stdio.h>
     int main(void)
      {
      printf("Hello world\n");
      return 0;
      }

AND

b.) #include <stdio.h>
     main ()
     {
      printf("hello there world");
      }
HuhHuh?

when i was in college, we used a book called "C for engineers and scientist" and they use the code found in b.) and it worked but i can't remember which version of C is it. :(

now, when i use the code found in b.) with C++ compiler 5.5, an error always occur saying something about the "function main" i can't remember the whole sentence and the computer i'm using right now doesn't have C installed.

what could be wrong???

thanks in advance. :D
« Last Edit: January 01, 1970, 12:00:00 AM by Anonymous » Logged
Anonymous
Guest
« Reply #5 on: September 14, 2002, 06:30:09 AM »

-> Kaycee

Your problem is a bit confusing..
Have a look at the error message you received:

"Could not compile, could not find stddio.h"

When looking at that I can tell you there is no standard header file that is  called "stddio.h". It is called "stdio.h". So it seems to be a typo in your program.


-> Lloyd

The code you wanted to compile does not confirm to the new standards of C. That is why it wont compile on newer compilers.

You should now provide a return parameter like "int main()".
« Last Edit: January 01, 1970, 12:00:00 AM by Anonymous » Logged
barman.amit
Newbie
*
Posts: 1


View Profile
« Reply #6 on: December 17, 2009, 05:56:20 PM »

hii,

  I am new to this forum. I am facing a problem like when I wrote the code example 5-5 from the book it gave me the error "  *** Couldn't reserve space for cygwin's heap, Win32 error 487 ".

can any body please help me in solving this error

regards
BAK
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!