I see below linking error on compiling with x64 environment set.
somefile.def : error LNK2001: unresolved external symbol _somesymbol
somepath\somefile.lib : fatal error LNK1120: 1 unresolved externals
gmake[2]: *** [somepath\somefile.dll] Error 1120
When I checked somefile.def generated in x86, it too had the same above symbol, difference being there it had double underscores ('__somesymbol'). Whats the reason behind this? The code contains both C & C++ files.
Can anyone help in resolving this issue preferably with elaborate explanation?
Thanks