Build Succeeded, but no .lib file gets created

前端 未结 10 1544
执笔经年
执笔经年 2021-01-31 13:37

I inherited a substantial amount of code, including a visual studio project that is supposed to (as best as I can tell) build a .lib file. Visual studio says \"... Generating C

10条回答
  •  感动是毒
    2021-01-31 14:20

    In the DLL project, put __declspec(dllexport) beginnings of methods defined in .h and .cpp files.

    After all, compile your dll again, so .lib file will be generated and ready for linking.

    put Class Foo
    {
    public:
        __declspec(dllexport) int GetFoo() const;
    

提交回复
热议问题