Unresolved external symbol on static class members

后端 未结 5 1472
温柔的废话
温柔的废话 2020-11-22 02:04

Very simply put:

I have a class that consists mostly of static public members, so I can group similar functions together that still have to be called from other clas

5条回答
  •  我寻月下人不归
    2020-11-22 02:54

    In my case, I was using wrong linking.
    It was managed c++ (cli) but with native exporting. I have added to linker -> input -> assembly link resource the dll of the library from which the function is exported. But native c++ linking requires .lib file to "see" implementations in cpp correctly, so for me helped to add the .lib file to linker -> input -> additional dependencies.
    [Usually managed code does not use dll export and import, it uses references, but that was unique situation.]

提交回复
热议问题