This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling from source


> gcc BLOWFISH.C
> I get this result:
> [charles@linux1 Blowfish]$ gcc BLOWFISH.C
> /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../crt1.o(.text+0x18): In
> function `_start':
> : undefined reference to `main'
> /tmp/ccsc34vS.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'

Charles is blowfish a program or a "library" (i mean is there a
function called: int main (...) or void main(...))? If there is no,
then you should only compile it. Then in your main program, you should
include blowfish.h, and compile the program: gcc main.c blowfish.o

blowfish.o is the output of blowfish.c, when you compile and do not link.

Arturas Moskvinas


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]