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++ Library support » U++ Core » Incorrect implementation of INITBLOCK (and similar macros) in case when flagBLITZ is not defined.
Re: Incorrect implementation of INITBLOCK (and similar macros) in case when flagBLITZ is not defined [message #31956 is a reply to message #31954] Mon, 11 April 2011 11:59 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
well thats exacltly the question/problem.

as long as your INITBLOCK EXITBLOCK stuff resides in a cpp file which is actually used (the code is referenced somewhere) the linker will link it. if the INITBLOCK EXITBLOCK is the only thing in a cpp file, no more other code, it will be dropped by the linker. since there is no code referenced by some oder code.

the stuff in INITBLOCK actually registers itself in a init facility from upper code.. so no code ref downwards exists. such files should be icpp files.

as mirek stated out, this is a general problem, that has to be taken in account.

 
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: why not "T & Add(const T & x)" in all containers
Next Topic: ADDs: ValueMap
Goto Forum:
  


Current Time: Fri Aug 22 20:16:20 CEST 2025

Total time taken to generate the page: 0.06221 seconds