I have code like this
void* __cdecl memcpy( void* dest, const void* src, size_t count );
char* __cdecl strcpy( char* strDest, const char* strSource );
#pragma intrinsic(memcpy)
void* CCompiler::memcpy( void* dest, const void* src, size_t count )
{
return ::memcpy( dest, src, count );
}
#pragma intrinsic(strcpy)
char* CCompiler::strcpy( char* strDest, const char* strSrouce )
{
return ::strcpy( strDest, strSource );
}
#pragma function(memcpy)
#pragma function(strcpy)
Whereas strcpy is perfectly happy I get a
LNK2019 unresolved external symbol _memcpy referenced in function "public: void * __cdecl nsCompiler::CCompiler::memcpy(void*,void const*,unsigned int)"
when I try to build the this into a Dll.
FYI nsCompiler::CCompiler is exported and I know that's done right.
No warning that memcpy intrinsic is not available despite warning level 4 and no compile error claiming it can't generate nsCompiler::CCompiler::memcpy
Any help, known bug pointers, or workarounds would be much appreciated.