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 » Developing U++ » Mac OS » [SOLVED] CtrlLib/Ctrl.iml:41:1: error: expected unqualified-id before '{' token
Re: CtrlLib/Ctrl.iml:41:1: error: expected unqualified-id before '{' token [message #35703 is a reply to message #35702] Wed, 14 March 2012 01:30 Go to previous message
fudadmin is currently offline  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 Smile. 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!.. Smile ... 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.. Confused

Thanks a lot mr_ped once again!








 
Read Message
Read Message
Read Message
Previous Topic: changes needed in Upp <Core> to run cocoa properly
Next Topic: Installation, I need Help!
Goto Forum:
  


Current Time: Fri May 17 06:57:22 CEST 2024

Total time taken to generate the page: 0.01335 seconds