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

Re: [linux-team] fin de la galère pour libpcap (etrange)



Philippe Legrain wrote:
> 
> Hello,
> 
> Voila j'ai trouvi le prob., avec ce Makefile ci ca marche:
> 
> CXX=c++
> CXXFLAGS=-O3 -mpentium -Wall -D_DEBUG_
> 
> all:    global.o \
>         interface.o \
>         host.o \
>         listener.o \
>         main.o
> 
>         $(CXX) $(CXXFLAGS) $^ -lpcap -o test
> 
> clean:
> 
>         rm -f *.o
> 
> distclean:
> 
>         rm -f *.o test
> 
> Le probleme, c'est que j'avais deja essayi en mettant -lpcap dans la
> ligne CXXFLAGS, et la ca foirait, donc je pensais devoir le faire
> ` la main...
> 
> Comment perdre deux jour avec 6 caracthres dans un Makefile
> 
> Merci ` tous en tout cas, et disoli pour mon innatention ;)


donc le simple fait de linker avec -lpcap plutot 
que de linker avec libpcap.a a arange les chose ??

C'est pas normal ! Qlq un  un une explication ?

Ptetre que ta libpcap.so (utilisee par -lpcap par defaut)
n'est pas la meme version que ta libpcap.a ?



> 
> A bientot
> 
> Phil
> 
> ---------
> Visit the Linux Supertore Online: http://www.redcorp.com !
> If you want to be deleted from the list, send a mail to
> majordomo@rtfm.be with "unsubscribe linux-team" in the body.
> Archive of the list: http://tania.be.linux.org/

-- 

Linux : May the sources be with you !
KeyLinux
Alain Spineux
 Linux System Engineer
---------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.
Archive of the list: http://tania.be.linux.org/