Strange namespace errors after re-saving using intorjucer

Discuss topics relating to the Introjucer (or Jucer) application

Strange namespace errors after re-saving using intorjucer

Postby billythekid » Thu Feb 16, 2012 1:34 pm

Using current modules tip, I get strange "Expected a class or namespace" errors after I open and existing introjucer project using the introjucer, add a new CPP and H file and then save the project. The errors are all related to enums. I get the errors on lines such as this . .

Code: Select all
Desktop::getInstance().setOrientationsEnabled( Desktop::DisplayOrientation::upright | Desktop::DisplayOrientation::upsideDown );


or this . . .

Code: Select all
stereoLabel->setColour(Label::ColourIds::textColourId, Colours::grey);


The build worked fine before I added the new source files. The build is also fine if I manually add the new source files using XCode. What am I doing wrong?
billythekid
JUCE UberWeenie
 
Posts: 140
Joined: Wed Sep 29, 2010 4:33 pm
Location: South east England

Re: Strange namespace errors after re-saving using intorjuce

Postby jules » Thu Feb 16, 2012 1:36 pm

Are you actually including the juce headers in these new files?
User avatar
jules
Fearless Leader
 
Posts: 17218
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Strange namespace errors after re-saving using intorjuce

Postby billythekid » Thu Feb 16, 2012 1:51 pm

Ug, sorry for wasting your time. Realised that I had not recompiled the introjucer for a couple of weeks. Just retested and the strange errors have gone.

PS - the custom PList stuff is cool. Thanks.
billythekid
JUCE UberWeenie
 
Posts: 140
Joined: Wed Sep 29, 2010 4:33 pm
Location: South east England


Return to The Introjucer/Jucer

Who is online

Users browsing this forum: No registered users and 2 guests