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 » including cpp-files
including cpp-files [message #3983] Thu, 13 July 2006 17:04 Go to next message
piotr5 is currently offline  piotr5
Messages: 107
Registered: November 2005
Experienced Member
somehow u++ tries to compile cpp-files which are marked as files on which some other cpp-file does depend. meanwhile I fixed this problem by renaming them to *.cpp.i, but those don't get the c++ syntax highliting automatically. what happened to the custom build-steps menu-item for cpp-files? I would wish there was an ignore-option along with the delete and remove entries of the menu. linking 2 identical objects into one file isn't nice...
Re: including cpp-files [message #3987 is a reply to message #3983] Thu, 13 July 2006 18:09 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
All files with .cpp or .c or .cc extensions are compiled... (let us say it is defined by U++ packages system). Dependency does not have any impact on this.

I suggest to use .hpp extension.

Custom build steps are still there, but are not helpful in this case.

Mirek
Re: including cpp-files [message #4176 is a reply to message #3987] Thu, 27 July 2006 17:06 Go to previous messageGo to next message
piotr5 is currently offline  piotr5
Messages: 107
Registered: November 2005
Experienced Member
Thanks, you're right that .hpp would be more apropriate for an
include-file -- even when it isn't used as a header-file. some
option for making source-files invisible to the compiler could
be useful though. just imagine some open-source file you've
imported into your project with the goal of combining it with
the project. then those files would merely serve as a reference
to copy the relevant parts into the project, and not as real
source-files of any object to create. If a "hide" option is
out of question, how about a new extension like .hcpp or
something, which would then get displayed as cpp, but which
does get ignored during compilation?
Re: including cpp-files [message #4178 is a reply to message #4176] Thu, 27 July 2006 18:57 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I can consider that, however, for the purpose you describe there are "pseudopackages" - if you need to open the file that is not to be compiled, put it to prj-aux or ide-aux. (Do you really think we do not need to study non-U++ sources while developing ? Wink

Mirek
Previous Topic: Compiling Errors 607-dev2 on Ubuntu(Edgy)
Next Topic: Debugger ignore breakpoint in headerfile
Goto Forum:
  


Current Time: Thu Apr 18 12:55:13 CEST 2024

Total time taken to generate the page: 0.02037 seconds