Generating unique header guard name failes completely

Discuss topics relating to the Introjucer (or Jucer) application

Generating unique header guard name failes completely

Postby kjetil » Fri Jan 12, 2007 2:10 pm

It allways generates: __JUCER_COMPONENTTEMPLATE_JUCEHEADER__:

#ifndef __JUCER_COMPONENTTEMPLATE_JUCEHEADER__
#define __JUCER_COMPONENTTEMPLATE_JUCEHEADER__

According to the code, this shouldn't happen. Any idea?
kjetil
JUCE Obsessive
 
Posts: 67
Joined: Wed Sep 13, 2006 4:46 pm

Postby jules » Fri Jan 12, 2007 2:14 pm

The template should contain

Code: Select all
#ifndef %%headerGuard%%
#define %%headerGuard%%


There was a bug where one version of the jucer templates had the wrong thing at the top of the header, but I thought this was ok in the latest release.
User avatar
jules
Fearless Leader
 
Posts: 17192
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Postby kjetil » Fri Jan 12, 2007 2:20 pm

jules wrote:The template should contain

Code: Select all
#ifndef %%headerGuard%%
#define %%headerGuard%%


There was a bug where one version of the jucer templates had the wrong thing at the top of the header, but I thought this was ok in the latest release.


Its working now. It was because my templates directory was set wrong.

Perhaps its possible to use some versioning scheme to avoid this problem?
kjetil
JUCE Obsessive
 
Posts: 67
Joined: Wed Sep 13, 2006 4:46 pm

Postby jules » Fri Jan 12, 2007 2:33 pm

yes, a versioning scheme might not be a bad idea..
User avatar
jules
Fearless Leader
 
Posts: 17192
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK


Return to The Introjucer/Jucer

Who is online

Users browsing this forum: No registered users and 0 guests