fudadmin Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
Ultimate Contributor Administrator
mr_ped wrote on Tue, 13 March 2012 21:47
It's macro, so it may be redefined in mac headers? Did you check preprocessor output?
SOLVED! (and maybe this is the only way)
Thanks, mr_ped. Your preprocessor idea directed me towards a victory against my forgetfullness . Btw, your idea had one more side-effect - to discover that theide has got gcc -E built-in! I was aware of gcc -E but never used it. So, the code generated output was big and didn't look suspicious to me. I didn't study it too much. But while exploring I started thinking about *.h files. And then the lightning struck!.. ... Started thinking about other packages.. XCode objc and..
I added one more *.h file to the package and included into TEST.mm -eureka!
So, if you have *.cpp and .mm files in your packages 1(one!) *.h file is not enough! And mostly *.mm and *.h go in pairs.
By accident I have been using that way all the time...
It would be good to understand what is inside the compiler thinking in this case..