linking error with : reads c compiler from rigel

J

Jan Goormans

I included cSio51.h for folowing functions :
- putc (puts a character on screen)
- getc (gets a character from input)
- PrtDec (prints an intiger in decimal on screen)
- printf (print a string of characters on screen)
When i call one of these functions and compile the file, i get an linking error

Is there a replacement function for scanf (or to read a string)
 
K

Karthik

Jan said:
I included cSio51.h for folowing functions :

What header is this . I am pretty sure that this is non-standard.
- putc (puts a character on screen)
- getc (gets a character from input)
- PrtDec (prints an intiger in decimal on screen)
- printf (print a string of characters on screen)
When i call one of these functions and compile the file, i get an linking error

Is there a replacement function for scanf (or to read a string)
fgets ?
 
C

Christopher Benson-Manica

Jan Goormans said:
I included cSio51.h for folowing functions :
^^^^^^^^
What kind of cockamamie name for a header is that? I suggest
- PrtDec (prints an intiger in decimal on screen)

printf can do that, and printf is standard.
When i call one of these functions and compile the file, i get an linking error

Include <stdio.h>. I predict you'll get better results.
 
R

Richard Bos

I included cSio51.h for folowing functions :
- putc (puts a character on screen)
- getc (gets a character from input)
- PrtDec (prints an intiger in decimal on screen)
- printf (print a string of characters on screen)

Are you sure this is a hosted implementation? If it's freestanding, you
need to read its manual, because the Standard doesn't require a
freestanding implementation to implement anything from <stdio.h>.

Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top