This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Compiling from source
- From: Arturas Moskvinas <arturas dot moskvinas at gmail dot com>
- To: Charles Barry <charlesawake at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 14 May 2005 18:52:35 +0300
- Subject: Re: Compiling from source
- References: <abb615b2050513162511d9b5a9@mail.gmail.com>
- Reply-to: Arturas Moskvinas <arturas dot moskvinas at gmail dot com>
> 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