Build problem on windows simulator

simointe wrote on Thursday, January 05, 2017:

Using Microsoft Visual Studio and windows port (MSVC-MingW directory), I’ve got this error related on the #include <Windows.h> in portmacro.h:

warning C4002: too many actual parameters for macro GetTickCount
error C2059: syntax error ‘constant’

It points to winbase.h declaration:

WINBASEAPI
DWORD
WINAPI
GetTickCount(
VOID
);

Any suggestion ?

Simon

rtel wrote on Thursday, January 05, 2017:

No suggestions, only questions, please post all information required for
somebody to provide the information you are after:

Which tool chain are you using (you mention a port that can be built
with MSVC and GCC)

Which version of the tools are you using?

Which version of FreeRTOS are you using?

Where did you get your FreeRTOS files?

simointe wrote on Friday, January 06, 2017:

Build information:
Visual C++ 2012, version 11.0.5, so the Visual C++ toolchain
FreeRTOS version is V9.0.0
Code comes from cytranet.dl.sourceforge.net

rtel wrote on Friday, January 06, 2017:

Please try using the code from our distribution, then report back. We cannot comment on code obtained from anybody else as it is unknown to us.


simointe wrote on Friday, January 06, 2017:

Could-you give me a link to download your distribution, thanks.

edwards3 wrote on Friday, January 06, 2017:

You must be on SourceForge to be using the forum, just click on the Files menu item at the top. Otherwise the normal way would be to search “freertos download”.