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: Compiling, Linking, Debugging of your packages » problem with compilation/linking - Duplicate .cpp file in single package
Re: problem with compilation/linking - Duplicate .cpp file in single package [message #11598 is a reply to message #11461] Tue, 18 September 2007 21:05 Go to previous messageGo to previous message
mr_ped is currently offline  mr_ped
Messages: 826
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
Ok, I tried to split the package into main UnitTest++ and two small UnitTest++[Posix|Win32].
Than I added them in package manager to UnitTest++ main package with "WHEN" on !WIN32 and WIN32.
And finally I changed the #include in sources to point to correct directories.

The result does work as expected, everything is ok.

The problem is it still does not *feel* right.
I will rather stick to renamed files to avoid duplicity, and have them all in one package.

I still think there should be a way to exclude/include files into build process, it feels very weak to have a developing tool where you can't easily force for example file named "generated_templates_with_wrong.extension" to compile as a .cpp.
Including the feature of excluding any .cpp file with "when" just like you can include/exclude whole package at this moment.

Or maybe I'm just too much used to power of Makefiles. Sad

P.S.
If I will ever look into adding "exclude when" for files ... will you use such patch, or you explicitly don't like the idea to have such feature?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to link to external libraries
Next Topic: A question about packages
Goto Forum:
  


Current Time: Wed Aug 27 00:10:47 CEST 2025

Total time taken to generate the page: 0.05366 seconds