Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » theide does not show content of external headers
theide does not show content of external headers [message #28492] |
Fri, 03 September 2010 11:11 |
slashmais
Messages: 20 Registered: January 2007 Location: south africa
|
Promising Member |
|
|
I'm creating some libraries with header (.h) files that I want to use in different projects.
I place the libs and headers each into global directories which I then point to in the normal way:
[Setup|Build methods]->INCLUDE directories
[Setup|Build methods]->LIB directories
and I add the specific library names to:
[Project|Package organizer]->(right-click)-New libraries ..
I the use #include "header-file-name.h" in my new project's source.
Everything compiles and executes fine.
The problem:
Theide does not show show the methods and objects when I reference them in my code. E.g.: if I have a class, say 'TestClass' with a public function, say 'TestFunc()' defined in "header-file-name.h",
and then create an instance in my new source 'TestClass tc;' then I would expect that when I type 'tc. ' that theide should list the public methods and attributes, in this case 'TestFunc()'.
It does not do so.
How can I fix this?
PS. I do not want to copy the headers into my new package directories - kind of defeats the purpose of having them centrally available. Please help.
|
|
|
Re: theide does not show content of external headers [message #28493 is a reply to message #28492] |
Fri, 03 September 2010 11:28 |
|
Hi Slashmais,
Theide/Assist++ scans only the files in packages, to keep things fast. Scanning all the included files would take too long.
But there is a simple workaround, I use it sometimes too. Just create a dummy package with all the headers (in their global directory, use Special > Insert any files) and add this package to your project. If there are no .c/.cpp files, nothing from this package will be compiled, but the Assist++ will scan the headers and will be aware of their contents
Best regards,
Honza
[Updated on: Fri, 03 September 2010 11:29] Report message to a moderator
|
|
|
|
Re: theide does not show content of external headers [message #28496 is a reply to message #28494] |
Fri, 03 September 2010 12:26 |
|
It is better than copying the sources all around, since once you have the dummy package, you can use it in all your projects. But yes, it is only workaround.
I don't know exact numbers about the time/memory consumption of the full parsing, but Mirek tried it some time ago and decided not to use it. But it might be possible to make it work on selected files/directories. I must confess that having the standard library functions in Assist++ would help me a lot...
I wonder what do the main developers think about this?
honza
|
|
|
Goto Forum:
Current Time: Fri Apr 26 00:38:17 CEST 2024
Total time taken to generate the page: 0.05629 seconds
|