# Failed compile juce with Code:: Blocks

**URL:** <https://forum.juce.com/t/failed-compile-juce-with-code-blocks/5787>\
**Category:** General JUCE discussion\
**Created:** [October 19, 2010, 8:08am UTC](https://forum.juce.com/t/failed-compile-juce-with-code-blocks/5787 "2010-10-19T08:08:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![samsam598](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@samsam598](https://forum.juce.com/u/samsam598)\
**Post date:** [October 19, 2010, 8:08am UTC](https://forum.juce.com/t/failed-compile-juce-with-code-blocks/5787/1 "2010-10-19T08:08:25Z")

</div>

Greetings!

I tried to compile juce with the package accompanied cbp file but it failed.First said it was generated by an older version C::B and will convert it automatically,ok then;during building,the error message show a lot of \*\*\* file’s timestamp can’t be found.I have added all juce’s sources and extras and … into the project’s search path.

It would be grateful if anybody would like to figure me out step by step how to compile juce with C::B +mingw3.4.5 under windows.I use Codeblocks ,the lasted nightly 6709

Regards,  
Sam

---

<div class="post-metadata">

**Author:** ![yosvaniscc](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@yosvaniscc](https://forum.juce.com/u/yosvaniscc)\
**Post date:** [October 19, 2010, 12:53pm UTC](https://forum.juce.com/t/failed-compile-juce-with-code-blocks/5787/2 "2010-10-19T12:53:16Z")

</div>

test project.

---

<div class="post-metadata">

**Author:** ![atom](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/atom/32/113_2.png) [@atom](https://forum.juce.com/u/atom)\
**Post date:** [October 19, 2010, 1:10pm UTC](https://forum.juce.com/t/failed-compile-juce-with-code-blocks/5787/3 "2010-10-19T13:10:19Z")

</div>

I recommend using CodeLite, newer gcc better IDE, juce projects work very nice.

---

<div class="post-metadata">

**Author:** ![samsam598](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@samsam598](https://forum.juce.com/u/samsam598)\
**Post date:** [October 20, 2010, 1:43am UTC](https://forum.juce.com/t/failed-compile-juce-with-code-blocks/5787/4 "2010-10-20T01:43:18Z")

</div>

> [@yosvaniscc](#):
>
> test project.

Thank you so much!!

---

<div class="post-metadata">

**Author:** ![samsam598](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@samsam598](https://forum.juce.com/u/samsam598)\
**Post date:** [October 20, 2010, 1:47am UTC](https://forum.juce.com/t/failed-compile-juce-with-code-blocks/5787/5 "2010-10-20T01:47:32Z")

</div>

> [@atom](#):
>
> I recommend using CodeLite, newer gcc better IDE, juce projects work very nice.

I will try.Thank you !

May I ask how to configure the project,do you have an workable codelite project file for juce?

EDIT:

I tried but failed.

error msg:  
||=== Juce Library, Debug ===|  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h|41|error: #error |  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h||In function ‘safe\_malloc\_mul\_2op\_’😑  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h|120|error: ‘SIZE\_T\_MAX’ undeclared (first use in this function)|  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h|120|error: (Each undeclared identifier is reported only once|  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h|120|error: for each function it appears in.)|  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h||In function ‘safe\_malloc\_mul\_3op\_’😑  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h|130|error: ‘SIZE\_T\_MAX’ undeclared (first use in this function)|  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h||In function ‘safe\_malloc\_mul2add\_’😑  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h|143|error: ‘SIZE\_T\_MAX’ undeclared (first use in this function)|  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h||In function ‘safe\_realloc\_mul\_2op\_’😑  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h|196|error: ‘SIZE\_T\_MAX’ undeclared (first use in this function)|  
||=== Build finished: 7 errors, 0 warnings (0 minutes, 9 seconds) ===|  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h|41|error: #error |  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h||In function ‘safe\_malloc\_mul\_2op\_’😑  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h|120|error: ‘SIZE\_T\_MAX’ undeclared (first use in this function)|  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h|120|error: (Each undeclared identifier is reported only once|  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h|120|error: for each function it appears in.)|  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h||In function ‘safe\_malloc\_mul\_3op\_’😑  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h|130|error: ‘SIZE\_T\_MAX’ undeclared (first use in this function)|  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h||In function ‘safe\_malloc\_mul2add\_’😑  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h|143|error: ‘SIZE\_T\_MAX’ undeclared (first use in this function)|  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h||In function ‘safe\_realloc\_mul\_2op\_’😑  
C:\Personnal\language\cplusplus\juce\juce\_1\_51\juce\src\audio\audio\_file\_formats\flac\libFLAC..\alloc.h|196|error: ‘SIZE\_T\_MAX’ undeclared (first use in this function)|  
||=== Build finished: 14 errors, 0 warnings (0 minutes, 10 seconds) ===|

---

<div class="post-metadata">

**Author:** ![atom](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/atom/32/113_2.png) [@atom](https://forum.juce.com/u/atom)\
**Post date:** [October 21, 2010, 2:23pm UTC](https://forum.juce.com/t/failed-compile-juce-with-code-blocks/5787/6 "2010-10-21T14:23:33Z")

</div>

Here is the CodeLite project, create a new Workspace in CodeLite and add this project to it.  
Extract the zip to juce\extras\juce demo\Builds and open the project from the CodeLite directory and it should work just fine. There is a problem in juce\_String.cpp and \_TRUNCATE/sprintf symbols but i don’t know if this is something here or in general, so just try it
