User forums > Using Code::Blocks

Need to use $

(1/2) > >>

Jordar:
Hi,

This is probably a silly question but I am trying to configure my linker options to add "@test.r$p" to the command line.  However the program interprets the "$p" as a macro and all that gets placed is "@test.r"
How do I get around this?  I have tried "@test.r$$p" and it displays "@test.r$".  No matter what else I try I can't get this to work

the file test.r$p is a file that is automatically named when I change project options.  So if I can't figure this out I can always just manually rename the file everytime I change the project..... :(

Thanks for any help.

X

thomas:
Currently, there is no way to escape $ in compiler/linker paths etc, sorry.

This is a known issue and will be fixed some day, but it requires rewriting quite a bit of code, unluckily.

lonesock:
just some random thoughts:

* can you define the macro $p to be equal to the text "$p"?
* can you use the "pre-build steps" build option for the project to automatically rename the file for you?

thomas:

--- Quote from: lonesock on October 31, 2006, 11:21:21 pm ---* can you define the macro $p to be equal to the text "$p"?
--- End quote ---
Don't! This means terribly bad Karma. You will cause an infinite recursion.
That's the reason why we have trouble implementing an escape sequence, too.

lonesock:

--- Quote from: thomas on November 01, 2006, 09:23:06 am ---
--- Quote from: lonesock on October 31, 2006, 11:21:21 pm ---* can you define the macro $p to be equal to the text "$p"?
--- End quote ---
Don't! This means terribly bad Karma. You will cause an infinite recursion.
That's the reason why we have trouble implementing an escape sequence, too.

--- End quote ---
Doh!!  [8^)

Navigation

[0] Message Index

[#] Next page

Go to full version