Home » U++ TheIDE » U++ TheIDE: Packages » Project package dependencies
Project package dependencies [message #26306] |
Fri, 23 April 2010 09:14 |
|
koldo
Messages: 3355 Registered: August 2008
|
Senior Veteran |
|
|
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 |
|
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
|
|
|
Goto Forum:
Current Time: Fri Mar 29 10:22:43 CET 2024
Total time taken to generate the page: 0.01663 seconds
|