Ethereal-dev: [Ethereal-dev] getting rid of LNK2001

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Jasim Tariq" <jasimtariqjt@xxxxxxxxxxx>
Date: Thu, 23 Mar 2006 13:30:09 -0800
Hi,

 Correct me if im wrong please.

In order to use the functions required by my c code (plugin C code) to dissect, decompress and decrypt the payload, I have to include the functions (C or C++ headers and sources) in the epan directory and not in the plugin directory. Right?

I'm guessing this because "libethereal.def" only contains the symbols for the functions which are in the epan directory and if I call a function in my plugin C code which is not in the "libethereal.def" file, I get the link error LNK2001.

So to get rid of th linking error LNK2001, I have to include all my decryption/decompression sources and headers inside the epan directory. Also I have to make changes in "Makefile.common", "Makefile.nmake" in the epan directory. I have to include a target ".cpp.obj:" in "Makefile.nmake" since my sources are c++.

Please let me know if there is another way.

Thanks

Jasim Tariq