----- Original Message -----
From: <bjamali@xxxxxxxx>
To: <gcc-help@xxxxxxxxxxx>
Sent: Monday, August 20, 2007 12:07 AM
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.
What is the error ?
What does the .c file contain ? (Please make the .c file as simple as you
can - but so that it produces the error.)
I can't reproduce the problem:
-------------------------------------
C:\_32\C>type try.c
#include <stdio.h>
int main(void) {
printf("Hello World\n");
return 0;
}
C:\_32\C>gcc -c try.c
C:\_32\C>gcc -o try.exe try.o
C:\_32\C>try
Hello World
C:\_32\C>
-------------------------------------
Cheers,
Rob