G
Guest
I have a native singleton in a C++/CLI dll. To compile the dll itself I put a
declaration of the instance variable into the cpp file (otherwise the linker
complains with a LNK 2020).
I now want to use the singleton also from outside the dll project. So I just
#include the header file in a file in another dll. It compiles but the
linker doesn't find the static variable (LNK2001).
Any suggestions?
declaration of the instance variable into the cpp file (otherwise the linker
complains with a LNK 2020).
I now want to use the singleton also from outside the dll project. So I just
#include the header file in a file in another dll. It compiles but the
linker doesn't find the static variable (LNK2001).
Any suggestions?