Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Packages » howto duplicate main package and rename classes "in bulk"?
Re: howto duplicate main package and rename classes "in bulk"? [message #2711 is a reply to message #2705] Sat, 22 April 2006 11:23 Go to previous messageGo to previous message
gprentice is currently offline  gprentice
Messages: 260
Registered: November 2005
Location: New Zealand
Experienced Member
fudadmin wrote on Sat, 22 April 2006 19:21

The trick:
#define PACKAGEDIR <ForlanoVega1

doesn't work correctly with at least optimal modes and BLITZ.
Does anybody know the reason?



I did a quick test using VC7.1 and GCC 3.4 and this "trick" seems to work with both, but I did it outside of U++. Did you try turning off Blitz? (I haven't caught up with what Blitz does yet).

According to the standard I think what you're doing should work but I'm fairly sure it doesn't work with at least the Borland compiler - which doesn't matter here. The bit that's implementation defined is how the tokens between the <> or the "" are interpreted, so as far as I can see, the string folowing the #include should be substituted and re-substituted at least until it has <> and ""

http://gcc.gnu.org/onlinedocs/cpp/Computed-Includes.html#Com puted-Includes

I believe one thing to watch out for is the possibility that
#define QUOTE "
might be rejected by a compiler because " by itself is not a valid token - it requires two " to be valid - I'm not entirely sure about this though.

Also the difference between <> and "" with U++ supported compilers is that use of <> means the "current" directory isn't looked in, but with "" it is.

Graeme
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Link error when building ide\Debuggers module? [SOLVED] -not main package
Next Topic: Bug
Goto Forum:
  


Current Time: Fri Apr 19 14:33:08 CEST 2024

Total time taken to generate the page: 0.12292 seconds