Code::Blocks

User forums => Using Code::Blocks => Topic started by: enoch on June 19, 2006, 10:56:41 pm

Title: aliases / source trees / definitions? not sure what they're called
Post by: enoch on June 19, 2006, 10:56:41 pm
If the feature exists I must be missing it.

Here's a description of my problem: I've got a subversion repository containing project files, source files and header files

now, each person will check out the repository to a different location.. so the path to the source files are different for each user

in codwarrior, you could create a symbol like "myLib" which you could then change to a particular path.. and when you added the files to your project, you'd add them like $myLib/mySources/main.cpp

so on each system, the user could distinguish where myLib points and then all the source paths would work correctly

does code::blocks have anything like this?
Title: Re: aliases / source trees / definitions? not sure what they're called
Post by: thomas on June 19, 2006, 11:18:19 pm
Yes, you can define variables in the exact same way. These will be per-project variables.

In addition, you can define global user variables, which are best used to represent recurring paths.

See the WiKi for more information.