Suppose there are two files :
extern int func(int);
After that I compile them separately...but not link them..(with the -c flag into a.o and b.o)Code:
int func(int n)
Then how do I invoke ld so that they get together into a single executable?
..(whatever I try results in an 'undefined reference to main')..