02-10-2015 12:34 AM
Hi, I am trying to compile a formerly builded project without changing anything. But I get the following error for function declarations in the header file.
int DLLSTDCALL DLLEXPORT Test_InitDevDll (int invertByteOrder);
"test.h"(36,16) Invalid use of '__declspec'.
What can be the reason of this error?
Solved! Go to Solution.
02-10-2015 03:00 AM
Try reordering it:
DLLEXPORT int DLLSTDCALL Test_InitDevDll (int invertByteOrder);
I assume you now use CVI 2013 with Clang which is more strict.
02-10-2015 03:14 AM
Thank you very much it fixed my problem. In fact on my pc both CVI 2013 and CVI 9.0 is installed. I was building the project with CVI 9.0 but it was still giving error. Can the cause be the engine of 2013 ?