# Unable to Compile New Projects on Linux

**URL:** <https://forum.juce.com/t/unable-to-compile-new-projects-on-linux/64846>\
**Category:** Linux\
**Created:** [January 9, 2025, 10:24pm UTC](https://forum.juce.com/t/unable-to-compile-new-projects-on-linux/64846 "2025-01-09T22:24:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![heintz](https://avatars.discourse-cdn.com/v4/letter/h/b19c9b/32.png) [@heintz](https://forum.juce.com/u/heintz)\
**Post date:** [January 9, 2025, 10:24pm UTC](https://forum.juce.com/t/unable-to-compile-new-projects-on-linux/64846/1 "2025-01-09T22:24:14Z")

</div>

Hello, I am new to JUCE and can’t seem to get any new plugin projects to compile. However, I have no issues compiling the example audio plugin projects.

To rule out my code being the issue, I created a new basic plugin project (made sure the necessary modules were selected, all paths set correctly, and proper exporter selected), removed the default source files from the project, and replaced them with the source code from an example (and verified that these added files were being properly referenced in the .jucer project file). Here are some of the errors I received when attempting to compile:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/f/8/f8524090ad2646fe9489abc4f8b36fe844ea340c.png)

I’ve compared the .jucer files for an example project and a new project and found minute differences, but still tried changing the format of a .jucer file for a new project to match that of an example to no avail.

I’m currently using JUCE 8.0.2 and Ubuntu 24.10. Thank you in advance for any advice.

---

<div class="post-metadata">

**Author:** ![jwatson53](https://avatars.discourse-cdn.com/v4/letter/j/9de053/32.png) [@jwatson53](https://forum.juce.com/u/jwatson53)\
**Post date:** [January 10, 2025, 4:57pm UTC](https://forum.juce.com/t/unable-to-compile-new-projects-on-linux/64846/2 "2025-01-10T16:57:41Z")

</div>

Are you maybe missing include:  
juce\_audio\_basics/synthesisers/juce\_Synthesiser.h

---

<div class="post-metadata">

**Author:** ![heintz](https://avatars.discourse-cdn.com/v4/letter/h/b19c9b/32.png) [@heintz](https://forum.juce.com/u/heintz)\
**Post date:** [January 12, 2025, 7:19pm UTC](https://forum.juce.com/t/unable-to-compile-new-projects-on-linux/64846/3 "2025-01-12T19:19:33Z")

</div>

Hi, thank you for your response. I already have the juce\_audio\_basics module included and the path is set to the JUCE modules folder, so do I need to include each specific file from the module as well?

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [January 12, 2025, 10:14pm UTC](https://forum.juce.com/t/unable-to-compile-new-projects-on-linux/64846/4 "2025-01-12T22:14:01Z")

</div>

> [@heintz](#):
>
> I created a new basic plugin project (made sure the necessary modules were selected, all paths set correctly, and proper exporter selected), removed the default source files from the project, and replaced them with the source code from an example

The examples in the JUCE repository rely on `using namespace juce;` being included in the JuceHeader.h. This makes sense for the built-in examples, because we have full control over name collisions, and it helps to make the code more concise. However, this approach is not recomended for new projects, and so completely new projects create with the Projucer will default to _omitting_ `using namespace juce;` from JuceHeader.h.

In the Projucer, this option is called `Add "using namespace juce" to JuceHeader.h`. You can change this option (not recommended), or manually add `juce::` prefixes to unrecognised classnames (recommended).

> [@heintz](#):
>
> do I need to include each specific file from the module as well?

No, don’t do that. The Projucer should automatically configure the module source files that should be built.

---

<div class="post-metadata">

**Author:** ![heintz](https://avatars.discourse-cdn.com/v4/letter/h/b19c9b/32.png) [@heintz](https://forum.juce.com/u/heintz)\
**Post date:** [January 14, 2025, 4:56pm UTC](https://forum.juce.com/t/unable-to-compile-new-projects-on-linux/64846/5 "2025-01-14T16:56:33Z")

</div>

Thank you very much! I added the `juce::` prefixes and my projects now compile with no errors!
