hi!
i use djgpp to compile my plain c-code.
normally i compile with the following option:
how do i have to change the command if i want to include my own written header-file (*.h)?Code:gcc file.c -o file.exe -lm
that was question one - here is question two (you guessed it, it's about own header-files):
for example: my header-file should only include this two functions:
what else do i have to include in my header-file?Code:int my_newline() { printf( "\n" ); return 0; } int my_lines(int x) { int y; for(y=1; y<=x; y=y+1) { my_newline(); } return 0; }
explain it for a newbie please![]()



LinkBack URL
About LinkBacks
):



