Unresolved std::_Crt_new delete::operator

I have BRX application in release and debug version. Release version is OK, but if I try to compile Debug, followed error has thrown:
The settings is almost similar.

unresolved external symbol "__declspec(dllimport) public: static void __cdecl std::_Crt_new_delete::operator delete(void *)

I have not idea what could cause it.

Thanks,

Michal

Comments

  • I solved it - problem was in std::regex.
    I don't know why, but in release version, and all other ARX and ZRX version works:
    const std::wregex pattern(L"[-+]?[0-9](\.[0-9])?");
    but in debug BRX version must be non-const, God know why:
    std::wregex pattern(L"[-+]?[0-9](\.[0-9])?"); //desetinná čísla s tečkou

  • It could be that your BRX project may have an incorrect setting to where you’re linking against debug libraries (/MDd or _DEBUG is defined)