I have an application that is based on MFC, consequently, all the STL-related stuff is already included when linking. I’d like to use std::string class in my *.cu file, and when I try to do it (#include … string str = “…”) it compiles just fine, however, linker can’t link the whole application as std::string is defined in two modules (in mfc and cu).
Do you use MFC in a Shared DLL? I have no problem linking programs when I use MFC in Static Libraries or select the “Use Standard Windows Libraries” in project properties. Using the DLL produces a wall of linker errors.