Hi guys,
As you're probably aware, I use IQ's 64k C++ framework as a base. This uses the NODEFAULTLIB linker flag to keep the size down.
There are ASM replacements for a lot of standard functions, all prefixed with "msys_" i.e. msys_memset etc. My issue is that VC is being smart and identifying certain blocks of code as doing something specific (like memset) and replacing the code block with a call to memset during compilation.
This results in things such as:
Error 3 error LNK2019: unresolved external symbol _memset referenced in function "int __fastcall build_huffman(struct huffman *,int *)" (?build_huffman@@YIHPAUhuffman@@PAH@Z) stb_image.obj phenomenaEclipse
Is there an easy way to avoid this happening without mashing up the code so the compiler cannot recognise it that will not impact badly on overall performance?
I'm adding some image handling stuff using stbi (stb Image), which is the source of these headaches.
Any advice gratefully appreciated

EDIT: I found a similar post where Hellfire suggest adding the /QIfist compiler flag. This flag is already present and doesn't resolve the issue.