Creating a DLL from a wrapped cpp file with SWIG

前端 未结 8 2018
刺人心
刺人心 2021-01-02 20:42

I am in the process of learning how to use SWIG on Windows.

The following is my c++ code:

 /* File : example.cxx */

 #include \"example.h\"
 #defin         


        
8条回答
  •  旧时难觅i
    2021-01-02 20:54

    add MS_NO_COREDLL definition at Configuration Properties->C/C++->Preprocessor->Preprocessor Definitions; or add #define MS_NO_COREDLL line before including python.h.

    #define MS_NO_COREDLL
    #include 
    

提交回复
热议问题