Wireshark mailing list archives
How to link external value_string between plugins
From: Alex Lindberg <alindber () yahoo com>
Date: Tue, 16 Feb 2010 13:36:50 -0800 (PST)
I have created two plugins and I need to share a value_string array between them. In plug1.h I have defined extern const value_string share_data_vals[]; In plug1.c there is the definition: extern const value_string share-data_vals[] { etc....} In plug2.h there is: #include ../plug1/plug1.h I have added in plug2/Makefile.nmake: LINK_PLUGIN_WITH= (Standard Stuff) ../plug1/plug1.lib When complied with VC2008EE, the result is a LNK2001 message - unresolved external symbol. What am I missing? This works great under Linux with the necessary changes to Makefile.am I don't wish/need to link with libwireshark. Thanks. Alex Lindberg
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- How to link external value_string between plugins Alex Lindberg (Feb 16)
- Re: How to link external value_string between plugins Jaap Keuter (Feb 16)