Mail Archives: djgpp/1998/09/01/04:45:28
First of all, sorry but I can't find a threading/posting option in my news
reader, so I had to post this as a sparate message. It is in reply to the
original message with the same subject.
With regards to the 'automatic' including of files by rhide, no RHIDE does
not as far as I know add the '#include' statements. Rather it links the
entire c statard library into your program, so the functions you use are
there for the linker to find when it needs them, even without the include
statements. What you probably will find, is that instead of errors when
compiling you will get a series of warnings of the vain -
Warning : implicit declaration of function xxxxx()
What this means, if there are no errors, is that the compiler leaves those
functions which are given as warnings with some sort of flag in the .o file
it creates, which the linker that acts upon to resolve a final address for
the function. If you were to leave out an include for one of your own
files/libraries, the linker would not find the funtion in the c statndard
libraries, and would spew out an error to join the warning.
Hope this helps, and as a hint for knowing 'everythin' that is wrong, always
compile and link the project/file you are writing separately to running it.
This way you will get to see the warnings before the screen switches to your
program output.
Cheers
James
- Raw text -