ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] undefined reference to proto_register_protocol

From: sagar Guledagudda <sagu072@xxxxxxxxx>
Date: Tue, 19 Jul 2011 15:06:23 +0530
Hi, I am getting the below error during the compilation of decoder on Linux. i tried including the epan/proto.h but still i am getting the same error. i think this is linking problem. does anybody have the solution for it
 
ast.cpp:(.text+0x13e): undefined reference to `proto_register_protocol'
ast.cpp:(.text+0x15b): undefined reference to `proto_register_field_array'
ast.cpp:(.text+0x16c): undefined reference to `proto_register_subtree_array'
ast.cpp:(.text+0x185): undefined reference to `register_dissector'
ast.cpp:(.text+0x197): undefined reference to `prefs_register_protocol'
ast.cpp:(.text+0x1c6): undefined reference to `prefs_register_uint_preference'
ast.cpp:(.text+0x1ee): undefined reference to `prefs_register_string_preference'
ast.cpp:(.text+0x1fa): undefined reference to `register_init_routine'
ast.cpp:(.text+0x206): undefined reference to `register_postseq_cleanup_routine'
 
 
thank you
sagar