compiling and linking C programs
can anyone please tell me how to compile a C program and link to a library which is created by user.
|
To compile, try
Code:
gcc -c <target.cpp> -o <target.o> Code:
ld -o <output> <target1.o> <target2.o> |
Compile: gcc -o xxx file.c
Run: ./xxx |
All times are GMT -5. The time now is 02:16 AM. |