User forums > Using Code::Blocks

Compilation troubles with the wxWidgets and Imagemagick scripts

<< < (2/2)

Urxae:

--- Quote from: rickg22 on December 02, 2005, 01:19:19 am ---Perhaps we could emulate the backticks when executing the commands?

--- End quote ---

Shouldn't be too hard to implement, but what effect would it have on performance? I don't much like the idea of spawning processes for each command line generated...
Of course, if we could assume the result of identical commands would be the same for every run in a batch job then it could be cached. Generally you can't make that assumption, but for the limited use it would probably be put to in C::B (things like wx-config and the like) it might just be good enough.
If caching is used it might be a good idea to put a warning about it somewhere though, and perhaps even a way to circumvent it.
If it isn't used (by default), perhaps there should be a different syntax to force caching? Something like ${`my-command arg1 arg2`} maybe?

mandrav:

--- Quote from: Urxae on December 02, 2005, 12:30:25 am ---They're not supported when invoking the compiler directly (It's a make feature).

--- End quote ---

As a matter of fact, it is supported in direct mode under unix platforms because backticks are a shell feature...

Urxae:

--- Quote from: mandrav on December 02, 2005, 10:50:34 am ---
--- Quote from: Urxae on December 02, 2005, 12:30:25 am ---They're not supported when invoking the compiler directly (It's a make feature).

--- End quote ---

As a matter of fact, it is supported in direct mode under unix platforms because backticks are a shell feature...

--- End quote ---

Maybe I should have said "when invoking the compiler directly under Windows", but since we're in the Windows forum I assumed that part was given...

mandrav:

--- Quote from: Urxae on December 02, 2005, 11:34:31 am ---
--- Quote from: mandrav on December 02, 2005, 10:50:34 am ---
--- Quote from: Urxae on December 02, 2005, 12:30:25 am ---They're not supported when invoking the compiler directly (It's a make feature).

--- End quote ---

As a matter of fact, it is supported in direct mode under unix platforms because backticks are a shell feature...

--- End quote ---

Maybe I should have said "when invoking the compiler directly under Windows", but since we're in the Windows forum I assumed that part was given...


--- End quote ---

Sure, I just wanted to emphasize that this is *not* a 'make' feature, but rather the shell's...

Navigation

[0] Message Index

[*] Previous page

Go to full version