problem with LZO: undefined reference to '__lzo_init2'

Giganews Newsgroups
Subject: problem with LZO: undefined reference to '__lzo_init2'
Posted by:  Zanardi (gasperot…@supereva.it)
Date: Tue, 13 May 2008

Hi,

I need help with LZO. I write a programm in C, with Linux (debian) and
I need to use LZO for compress my data.

I install LZO and in my code I add:

#include <lzoconf.h>
#include <lzo1x.h>

and in my 'main':

lzo_init();

The answer, when I compiling is:

gcc MyProgram.c -o MyProgram
/tmp/cc2Lx3eX.o: In function `main':
MyProgram.c:(.text+0x19fc): undefined reference to `__lzo_init2'
collect2: ld returned 1 exit status

Someone can help me?
I thank you in advance,
Zanardi.

Replies