Bonjour tout le monde, je suis entrain de développer une application qui récupère et affiche les trames réseau mais je confronte un pb de compilation de ntohs ou htons sous vs2010
Voici ce qu'il me génère:
En cherchant ds les forum j'ai trouvé qu'une bibliothèque externe manque mais je ne sais pas laquellePacket.obj : error LNK2028: jeton non résolu (0A00057D) "extern "C" unsigned short __stdcall htons(unsigned short)" (?htons@@$$J14YGGG@Z) référencé dans la fonction "public: void __thiscall Packet::print_Eth_header(struct Packet::ether_header const *)" (?print_Eth_header@Packet@@$$FQAEXPBUether_header@1@@Z)
Packet.obj : error LNK2028: jeton non résolu (0A00058E) "extern "C" unsigned short __stdcall ntohs(unsigned short)" (?ntohs@@$$J14YGGG@Z) référencé dans la fonction "public: void __thiscall Packet::print_tcp_header(struct Packet::sniff_tcp const *)" (?print_tcp_header@Packet@@$$FQAEXPBUsniff_tcp@1@@Z)
Packet.obj : error LNK2019: symbole externe non résolu "extern "C" unsigned short __stdcall htons(unsigned short)" (?htons@@$$J14YGGG@Z) référencé dans la fonction "public: void __thiscall Packet::print_Eth_header(struct Packet::ether_header const *)" (?print_Eth_header@Packet@@$$FQAEXPBUether_header@1@@Z)
Packet.obj : error LNK2019: symbole externe non résolu "extern "C" unsigned short __stdcall ntohs(unsigned short)" (?ntohs@@$$J14YGGG@Z) référencé dans la fonction "public: void __thiscall Packet::print_tcp_header(struct Packet::sniff_tcp const *)" (?print_tcp_header@Packet@@$$FQAEXPBUsniff_tcp@1@@Z)
C:\Documents and Settings\user\Mes documents\Visual Studio 2010\Projects\a\Debug\a.exe : fatal error LNK1120: 4 externes non résolus
S'il vous plait y'a t'il une personne qui peut m'aider,je suis bloquée?
Merci d'avance
Partager