Bonjour,

Je dois réaliser un projet dans le cadre scolaire, et ma première partie consiste à réaliser un programme pour scanner les ports des différentes machines du réseau local. J'ai inclus les libraires /libnet.h/ et /pcap.h/ mais malheureusement, au moment de la compilation, j'ai les messages d'erreurs suivants :

   /tmp/ccfDq49w.o: In function `EnvoiPaquet':
   scanner.c:(.text+0x23): undefined reference to `libnet_init'
   scanner.c:(.text+0x93): undefined reference to `libnet_build_tcp'
   scanner.c:(.text+0xb8): undefined reference to `libnet_autobuild_ipv4'
   scanner.c:(.text+0xc6): undefined reference to `libnet_write'
   scanner.c:(.text+0xd1): undefined reference to `libnet_destroy'
/tmp/ccfDq49w.o: In function `ReceptionPaquet':
   scanner.c:(.text+0xfb): undefined reference to `libnet_init'
   scanner.c:(.text+0x12b): undefined reference to `pcap_open_live'
   scanner.c:(.text+0x140): undefined reference to `pcap_next'
   scanner.c:(.text+0x1a9): undefined reference to `libnet_get_ipaddr4'

Je ne comprends pas pourquoi il ne trouve pas ces fonctions alors qu'elles existent bien dans ces librairies...

Merci d'avance pour le temps que vous consacrerez à mon problème.

Reply via email to