DLL export of a static function

Posted by Begbie00 on Stack Overflow See other posts from Stack Overflow or by Begbie00
Published on 2010-06-06T13:28:13Z Indexed on 2010/06/06 13:32 UTC
Read the original article Hit count: 385

Filed under:
|
|

Hi all -

I have the following static function:

static inline HandVal
              StdDeck_StdRules_EVAL_N( StdDeck_CardMask cards, int n_cards )

Can I export this function in a DLL? If so, how?

Thanks,

Mike

Background information:

I'm doing this because the original source code came with a VS project designed to compile as a static (.lib) library. In order to use ctypes/Python, I'm converting the project to a DLL.

I started a VS project as a DLL and imported the original source code. The project builds into a DLL, but none of the functions (including functions such as the one listed above) are exported (as confirmed by both the absence of dllexport in the source code and tools such as DLL Export Viewer). I tried to follow the general advice here (create an exportable wrapper function within the header) to no avail...functions still don't appear to be exported.

© Stack Overflow or respective owner

Related posts about dll

Related posts about static