# Juce 1.29 example project errors

**URL:** <https://forum.juce.com/t/juce-1-29-example-project-errors/759>\
**Category:** MacOSX and iOS\
**Created:** [March 30, 2006, 5:24pm UTC](https://forum.juce.com/t/juce-1-29-example-project-errors/759 "2006-03-30T17:24:23Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![igor](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@igor](https://forum.juce.com/u/igor)\
**Post date:** [March 30, 2006, 5:24pm UTC](https://forum.juce.com/t/juce-1-29-example-project-errors/759/1 "2006-03-30T17:24:23Z")

</div>

I’m compiling Juce 1.29 on an intel iMac, and get two build errors  
from Main.cpp: neither windowAppearsOnTaskbar nor windowHasDropShadow are defined.

What’s the correct way to fix this issue?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [April 3, 2006, 8:17am UTC](https://forum.juce.com/t/juce-1-29-example-project-errors/759/2 "2006-04-03T08:17:36Z")

</div>

That’s not intel specific - I moved all the window style flags into the ComponentPeer class in the last build - just add ComponentPeer:: in front of the names and it’ll be fine.

---

<div class="post-metadata">

**Author:** ![igor](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@igor](https://forum.juce.com/u/igor)\
**Post date:** [April 3, 2006, 1:52pm UTC](https://forum.juce.com/t/juce-1-29-example-project-errors/759/3 "2006-04-03T13:52:19Z")

</div>

> [@jules](#):
>
> add ComponentPeer:: in front of the names and it’ll be fine.

Great! That took care of that problem.

Then there were a bunch of missing AGL symbols, so I added the AGL framework. Could this be added to the mac juce\_application project by default?

Now juce::component::createNewPeer() is undefined in the juce\_application demo project. What’s the best way to resolve that missing symbol?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [April 3, 2006, 2:59pm UTC](https://forum.juce.com/t/juce-1-29-example-project-errors/759/4 "2006-04-03T14:59:10Z")

</div>

createNewPeer just lives in the mac platform specific code - sounds like a link error to me, or something not rebuilt correctly?

---

<div class="post-metadata">

**Author:** ![igor](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@igor](https://forum.juce.com/u/igor)\
**Post date:** [April 3, 2006, 3:44pm UTC](https://forum.juce.com/t/juce-1-29-example-project-errors/759/5 "2006-04-03T15:44:57Z")

</div>

I’m a new user to your framework, so I’m still figuring out how the platform specific code is handled. Perhaps that’s the root of my problem.

In the mac application example, the class HelloWorldWindow is defined  
as a Component. Component.h defines createNewPeer(), but doesn’t have an implementation, hence the link error.

Should the mac demo app use the MacWindowComponentPeer class instead of the Component class? The mac specific version has createNewPeer() implemented.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [April 3, 2006, 3:53pm UTC](https://forum.juce.com/t/juce-1-29-example-project-errors/759/6 "2006-04-03T15:53:52Z")

</div>

The example app should work fine, this isn’t a bug in the code, it sounds more like the juce library itself hasn’t compiled properly, or you’re linking to an older version, perhaps? Try cleaning and rebuilding the juce project completely, in both debug and release configs.

---

<div class="post-metadata">

**Author:** ![Randy](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@Randy](https://forum.juce.com/u/Randy)\
**Post date:** [April 3, 2006, 4:19pm UTC](https://forum.juce.com/t/juce-1-29-example-project-errors/759/7 "2006-04-03T16:19:16Z")

</div>

I’ve noticed that if I rebuild the JUCE library and then rebuild my project, the updated JUCE library doesn’t get linked in. So make sure you also do a clean and rebuild of your project as well. That works for me.

---

<div class="post-metadata">

**Author:** ![igor](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@igor](https://forum.juce.com/u/igor)\
**Post date:** [April 3, 2006, 5:51pm UTC](https://forum.juce.com/t/juce-1-29-example-project-errors/759/8 "2006-04-03T17:51:13Z")

</div>

OK, I cleaned and recompiled both the JUCE subproject and the juce\_application example project for the mac, and I still get an undefined symbol error for createNewPeer().

The build is taking place inside the juce folder I downloaded from the website with 1.29. If I were having versioning problems, wouldn’t I see additional link errors, beyond this one missing symbol?

The JUCE library subproject compiles without a problem.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [April 3, 2006, 6:04pm UTC](https://forum.juce.com/t/juce-1-29-example-project-errors/759/9 "2006-04-03T18:04:12Z")

</div>

The method is defined in juce\_mac\_Windowing.cpp. If that file isn’t compiled, there’s a hell of a lot of other things that won’t link too!

Could you have perhaps damaged the file? It should contain:

`ComponentPeer* Component::createNewPeer (int styleFlags, void* windowToAttachTo)
{
    return new MacWindowComponentPeer (this, styleFlags, (WindowRef) windowToAttachTo);
}
`

---

<div class="post-metadata">

**Author:** ![igor](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@igor](https://forum.juce.com/u/igor)\
**Post date:** [April 3, 2006, 6:45pm UTC](https://forum.juce.com/t/juce-1-29-example-project-errors/759/10 "2006-04-03T18:45:07Z")

</div>

I think I’ve fixed the problem.

I downloaded 1.29 again, and this time _didn’t_ change the name of  
the juce folder. Now all is well in juce\_application land.

Just for kicks I changed the name of the containing juce folder, and that  
cause a number of problems, so it seems that there are some paths that aren’t completely project relative, but that’s another issue.

Thanks for all the help!

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [April 3, 2006, 6:46pm UTC](https://forum.juce.com/t/juce-1-29-example-project-errors/759/11 "2006-04-03T18:46:41Z")

</div>

probably your library search path that’s not relative, so it’d be using the old library…

---

<div class="post-metadata">

**Author:** ![igor](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@igor](https://forum.juce.com/u/igor)\
**Post date:** [April 3, 2006, 7:07pm UTC](https://forum.juce.com/t/juce-1-29-example-project-errors/759/12 "2006-04-03T19:07:41Z")

</div>

> [@jules](#):
>
> probably your library search path that’s not relative, so it’d be using the old library…

I think that was it. I two juce folders, one named “juce” with an older version of the library, and a new one that I had renamed “juce 1.29”. Both were living on my desktop. Because the path for the library search paths is “…/…/…/juce/bin”, it was picking up the older library.

I tried changing that path to “…/…/bin”, but it didn’t work. Why’s that? Is there a way to remove “juce” from the library path name?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 12, 2017, 10:03am UTC](https://forum.juce.com/t/juce-1-29-example-project-errors/759/13 "2017-05-12T10:03:00Z")

</div>

Closed on May 12, 2017, 10:03am UTC


