| Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » BUG?: .cpp local typedefs mess up /w BLITZ$ Goto Forum:
	| 
		
			| Re: BUG?: .cpp local typedefs mess up /w BLITZ$ [message #31120 is a reply to message #31119] | Sun, 06 February 2011 14:48   |  
			|  |  
	| | kohait00 wrote on Sun, 06 February 2011 10:16 |  | hi guys
 
 i'm getting compilation errors when using blitz enabled in a szenario like the one in attachment.
 
 i always thought cpp local typedefs were what they are.
 blitz seems to mess them up intrenally.
 
 compile w/ blitz -> error (i.e. msc9, shared)
 compile w/o blitz -> ok..
 
 same for GCC
 
 any idea?
 
 | 
 Hi kohati,
 
 You are right, typedef should work only in scope where it is defined, that is single file if it is at global level. The problem is how the files are combined when using BLITZ. Since typedef can't be "undone", it is impossible for BLITZ to solve such situation.
 
 There are two simple solutions you can try (simple==not requiring to rewrite half of your program
  ) 1) Use macros for the same effect: "typedef int _MyType_;" -> "#define _MyType_ int"
 2) Switch BLITZ off for the files where you use this by adding "#pragma BLITZ_PROHIBIT"
 
 Hope that helps,
 Honza
 |  
	|  |  | 
 
 Current Time: Fri Oct 31 00:36:24 CET 2025 
 Total time taken to generate the page: 0.07344 seconds |