Re: Compiling from source

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

 



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