get rid of relative paths to JUCE

Discussion and support for general JUCE issues

get rid of relative paths to JUCE

Postby bithead » Sat Sep 11, 2004 5:48 pm

In the interest of moving projects around, I think that instead of having
Code: Select all
#include "../../juce.h"

everyone should use
Code: Select all
#include "juce.h"

and add the paths for includes (and libs) in the toolchain project file.
bithead
JUCE Geek
 
Posts: 42
Joined: Sat Sep 04, 2004 6:04 am
Location: Clearwater FL

Postby ModuLR » Sat Sep 11, 2004 5:50 pm

it is a bit more friendly that way... :wink:
ModuLR::iDontKnow->whatImDoing();
ModuLR
JUCE UberWeenie
 
Posts: 137
Joined: Sat Sep 04, 2004 6:18 am

Postby SigmaDeltaRob » Sat Sep 11, 2004 6:13 pm

Or we can all adopt a standard directory structure for projects.


I simply put all my projects in /juce/projects/projectname

it makes the most sense, and it can easily be universal.
For some reason my compiler thinks main() is the destructor.
SigmaDeltaRob
JUCE UberWeenie
 
Posts: 100
Joined: Sat Sep 04, 2004 5:03 am
Location: St. Petersburg, Florida

Postby ost12666 » Sat Sep 11, 2004 6:41 pm

In C/C++ when you use an external library you use:



and define the paths to external headers in the project options or compiler options



should be used for the project headers with relative paths
ost12666
JUCE UberWeenie
 
Posts: 150
Joined: Thu Sep 09, 2004 10:14 pm

Postby bithead » Sat Sep 11, 2004 8:44 pm

Well I for one put all my sample editor projects in one master folder and workspace, then create sub folders to contain each project and source tree. So every time I want to check a new version (Rob likes renaming everything apparently) everything breaks.

It's really more than just an semantic annoyance or personal preference--ost12666 stated it 100% correctly. Standard includes should be <filename> and project includes should be "filename". And the only time it is appropriate to prepend a relative path to filename is when the file location is known to be fixed relative to the project root, otherwise all paths should be defined in the tool settings or makefile.
bithead
JUCE Geek
 
Posts: 42
Joined: Sat Sep 04, 2004 6:04 am
Location: Clearwater FL

Postby SigmaDeltaRob » Sat Sep 11, 2004 9:03 pm

next version Ill change all that stuff then.
For some reason my compiler thinks main() is the destructor.
SigmaDeltaRob
JUCE UberWeenie
 
Posts: 100
Joined: Sat Sep 04, 2004 5:03 am
Location: St. Petersburg, Florida


Return to General JUCE discussion

Who is online

Users browsing this forum: Google Feedfetcher and 0 guests