Re: how to compile library files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- 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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux