When I test the sample code given by manpage of libipq, I use the fallowing command to 
compile.
"g++ sample.cpp -o sample -lipq"
but there are some link errors.
why??
I have downloaded the ipchains and using "make ,make install ,make install-devel" to 
build it.
How to deal with problems?
Thanks

[root@ir kern]# g++ sample.cpp -lipq
/tmp/cczHtLb0.o: In function `die(ipq_handle *)':
/tmp/cczHtLb0.o(.text+0xf): undefined reference to `ipq_perror(char const *)'
/tmp/cczHtLb0.o(.text+0x1d): undefined reference to `ipq_destroy_handle(ipq_han'
/tmp/cczHtLb0.o: In function `main':
/tmp/cczHtLb0.o(.text+0x41): undefined reference to `ipq_create_handle(unsigned'
/tmp/cczHtLb0.o(.text+0x7b): undefined reference to `ipq_set_mode(ipq_handle co'
/tmp/cczHtLb0.o(.text+0xb5): undefined reference to `ipq_read(ipq_handle const '
/tmp/cczHtLb0.o(.text+0xe3): undefined reference to `ipq_message_type(unsigned '
/tmp/cczHtLb0.o(.text+0x12a): undefined reference to `ipq_get_msgerr(unsigned c'
/tmp/cczHtLb0.o(.text+0x157): undefined reference to `ipq_get_packet(unsigned c'
/tmp/cczHtLb0.o(.text+0x17e): undefined reference to `ipq_set_verdict(ipq_handl'
collect2: ld returned 1 exit status

___
  Bert Zhang
  +86-0451-6413683
  Information Retrieval Lab School of CS
  Harbin Institute of Technology
  P.R.C.
  


Reply via email to