compiling linking help
simple question I don't know how to do:
I have 2 files as follow. How do I compile it? Code:
main.c Code:
function1.c: |
Here is a guide I wrote a while back you may find usefull:
http://www.linuxquestions.org/questi...ticle&artid=33 But simply put all the files on the cc line. Code:
cc main.c function1.c |
All times are GMT -5. The time now is 11:47 PM. |