This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
how to compile library files
- From: bjamali at ut dot ac dot ir
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 19 Aug 2007 17:37:49 +0330 (IRST)
- Subject: how to compile library files
hi
I have a program with a ANSI C program written for linux
my operating system is WINXP and i have dowloaded MINGW
when i compile it with
gcc -c acotsp.c
it doesnt give any error and the acotsp.o file is created
but when trying to create an executable file
gcc -o acotsp acotsp.o
it fails and gives error.
my program includes header and library files but how to compile them with
the main program.
thanks