For whatever reason it tries to link an executable, not a library. To
link a library you should use ar, not g++.

ar libcryptopp.a des.o bla1.o bla2.o etc.o

> My platform is Linux fedora 9
>
> On 2月18日, 下午2時08分, lcli <[email protected]> wrote:
>
>
>
> > Hi,
>
> > I got the following error messages when I tried to link cryptopp552
> > using gcc version 4.3.0.
> > There is no problem when I make gnumakefile.
>
> > ex.  g++ -o des des.o libcryptopp.a
>
> > /usr/lib/gcc/i386-redhat-linux/4.3.0/../../../crt1.o: In function
> > `_start':
> > (.text+0x18): undefined reference to `main'
> > collect2: ld returned 1 exit status
>
> > Kind regards,
>
> > Robert
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to