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++ TheIDE » U++ TheIDE: Packages » Project package dependencies
Project package dependencies [message #26306] Fri, 23 April 2010 09:14 Go to next message
koldo is currently offline  koldo
Messages: 3033
Registered: August 2008
Ultimate Member
Hello Mirek

When a package is referenced by other packages in TheIde, it appears in upper left packages list.

However, imagine this package structure:
MyProject	-Core
		-CtrlCore
		-CtrlLib
		-MyPackage1		-MyPackage2


If MyProject would use directly MyPackage2 functions, there would be linking errors. However MyPackage2 appears in package list.

This way the above package structure and the one below look the same in package list, but only second works.

MyProject	-Core
		-CtrlCore
		-CtrlLib
		-MyPackage1		-MyPackage2
		-MyPackage2


Perhaps package list would have to be like a tree, or in any way it would have to show the package dependencies to avoid misunderstandings as you see a package in the list, but it cannot be really used by main package.


Best regards
IƱaki
Re: Project package dependencies [message #26315 is a reply to message #26306] Fri, 23 April 2010 17:12 Go to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1758
Registered: August 2008
Location: Czech Republic
Senior Contributor

Hi Koldo!

I've never had a problem like this (if I understand you correctly) with the package system. It does not matter at all which package includes which. The first structure is completely OK, you just have to keep in mind that whenever you want to use some functions, you must include the header file where they are defined.

As for organizing packages in tree: it might be good idea, but the problem is that some packages would be shown in many branches - e.g. Core is included many times. I can not imagine any way how to display dependencies while showing each package only once.

Regards,
Honza
Previous Topic: Application stub template
Next Topic: Acceptflags and ".FLAG" syntax
Goto Forum:
  


Current Time: Thu Nov 21 17:08:31 CET 2019

Total time taken to generate the page: 0.02621 seconds