# Build problem on windows simulator

**URL:** <https://forums.freertos.org/t/build-problem-on-windows-simulator/6350>\
**Category:** Kernel\
**Created:** [January 5, 2017, 9:40pm UTC](https://forums.freertos.org/t/build-problem-on-windows-simulator/6350 "2017-01-05T21:40:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [January 5, 2017, 9:40pm UTC](https://forums.freertos.org/t/build-problem-on-windows-simulator/6350/1 "2017-01-05T21:40:18Z")

</div>

**[simointe](https://sourceforge.net/u/simointe/)** wrote on [Thursday, January 05, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/2240839c/#4bc3):

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

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [January 5, 2017, 10:38pm UTC](https://forums.freertos.org/t/build-problem-on-windows-simulator/6350/2 "2017-01-05T22:38:22Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Thursday, January 05, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/2240839c/#4bc3/8176):

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?

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [January 6, 2017, 3:11pm UTC](https://forums.freertos.org/t/build-problem-on-windows-simulator/6350/3 "2017-01-06T15:11:57Z")

</div>

**[simointe](https://sourceforge.net/u/simointe/)** wrote on [Friday, January 06, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/2240839c/#6518):

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](http://cytranet.dl.sourceforge.net)

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [January 6, 2017, 3:48pm UTC](https://forums.freertos.org/t/build-problem-on-windows-simulator/6350/4 "2017-01-06T15:48:40Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Friday, January 06, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/2240839c/#6518/98ed):

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.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [January 6, 2017, 6:10pm UTC](https://forums.freertos.org/t/build-problem-on-windows-simulator/6350/5 "2017-01-06T18:10:54Z")

</div>

**[simointe](https://sourceforge.net/u/simointe/)** wrote on [Friday, January 06, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/2240839c/#41ef):

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

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [January 6, 2017, 8:38pm UTC](https://forums.freertos.org/t/build-problem-on-windows-simulator/6350/6 "2017-01-06T20:38:55Z")

</div>

**[edwards3](https://sourceforge.net/u/edwards3/)** wrote on [Friday, January 06, 2017](https://sourceforge.net/p/freertos/discussion/382005/thread/2240839c/#c500):

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”.
