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++ Library : Other (not classified elsewhere) » How to compile a upp program in MS Visual Studio?
Re: How to compile a upp program in MS Visual Studio? [message #8045 is a reply to message #8042] Mon, 05 February 2007 20:02 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
okigan wrote on Mon, 05 February 2007 12:57


I have problem with library init code which sits in the *.icpp
files (why the need for separate extention?). For example the
png/bmp lugins do not get loaded... what gives?
-okigan


Well, .icpp solved an interesting problem:

Global variables have to be constructed before program starts. This can be used to put initialization code into constructors of dymmt empty variables. So far so good.

Anyway, U++ packages are compiled into .lib files so that linker can eliminate unreferenced = unused .obj (in release mode) files. Unfortunately, files with initialization are quite often unreferenced, because it is the initialization that binds them with the rest of library (e.g. raster encoder/decoder plugins register image format). Means linker kicks them out of project.

.icpp is the solution to this poblem as it tells build system to always link in the object file.

Mirek
 
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: Not really sure where to put this: How to compile U++ library as a DLL?
Next Topic: Excel to CVS convertion
Goto Forum:
  


Current Time: Sun Jun 22 05:31:15 CEST 2025

Total time taken to generate the page: 0.03862 seconds