#include <windows.h>
void foo()
{
MessageBoxW(NULL, L"foo", NULL, 0);
}
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nShowCmd)
{
return 0;
}
I have my code as shown in the above snippet, after I compile and link the foo function that is unused is still there as well as its associated imports. I do not see an option in the compiler/linker settings to remove unused code...
Any experienced users have some advice for me? Thank you.