I created a simple dll in VS2010 with the following function:
extern "C"
{
__declspec(dllexport) int myFunc()
{
return 1;
}
}
I compared the generated dll and lib files for both x64 and Win32 platforms and I found a result I don't understand.
Using Dependency Walker I see that both dlls will show undecorated "myFunc". When opening both lib files in Notepad++ though, the Win32 lib shows "_myFunc" when the x64 shows simply "myFunc".
Could somebody explain me why the lib signatures are different? Is it possible to remove the underscore in the 32-bit lib file?