So I’m trying to compile a project in Visual Studio 2010 and I seem to be running into problems compiling the code.
I have this chunk of code
#ifdef WIN_X64
extern "C" int gainAndFindMax (int cnt,int gain,PSHORT pInput,PSHORT pOutput);
#else
extern "C" int __fastcall gainAndFindMax (int cnt,int gain,PSHORT pInput,PSHORT pOutput);
#endif
which is a pair of assembly functions written by a coworker.
However, for some reason, it keeps compiling toward the #else statement as if it is not compiling in 64 bit.
I have all my project settings set to 64 bit and it should all be set up correctly however for some reason the
” extern “C” int gainAndFindMax (int cnt,int gain,PSHORT pInput,PSHORT pOutput);” is grayed out it doesn’t seem to compile.
Help would be much obliged
The macros you should look at are
_WIN64(or at least_M_X64), taken from here