Wireshark-bugs: [Wireshark-bugs] [Bug 7893] Bluetooth: Add support for AVDTP/A2DP/VDP and SBC co
Date: Sat, 30 Nov 2013 21:54:36 +0000

Comment # 80 on bug 7893 from
(In reply to comment #78)
> With this move you are "crossing libraries"

I'm not sure what you mean by "crossing libraries", but if you're building two
dynamically-linked libraries, and library A is using functions exported by
library B, there are ways to make that work on UN*X but fail to work on
Windows, so you have to be careful to avoid them.

To make it work, you should:

    include ws_symbol_export.h in any *header* file that declares functions
exported by a dynamically-linked library;

    declare all the exported functions with WS_DLL_PUBLIC;

    do *not* use WS_DLL_PUBLIC for functions exported by a *static* library
(such as libui).

It's more complicated if you're exporting data variables rather than functions
(and is *extremely* difficult if you're exporting a data variable from one DLL
to be imported by another DLL - in at least one case, we gave up and exported
functions instead).


You are receiving this mail because:
  • You are watching all bug changes.