Project Managers not working anymore

Andreas Pakulat apaku at gmx.de
Sun May 6 18:20:38 UTC 2007


On 06.05.07 16:08:44, Andreas Pakulat wrote:
> Hi,
> 
> I need some help from a template guru, out of a sudden the project
> managers cannot be used anymore here on my system. What seems to happen
> is that code from the macro
> 
> KDEV_DECLARE_EXTENSION_INTERFACE() 
> 
> is not executed. What the macro does, if I understand correctly, is
> create a specialized template function called qt_extension<>() where the
> parameter given to the KDEV_DECLARE_EXTENSION_INTERFACE is used, i.e.
> for IProjectFileManager I get
> 
> qt_extension<IProjectFileManager*>()
> 
> however during debugging this function is not executed, but instead the
> "default" one taking a parameter "T", which returns 0 instead of a
> proper object.
> 
> Now I upgraded gcc recently to 4.1.3 on Debian unstable and wonder
> wether it might be a gcc bug that the specialized template function
> isn't executed.

It seems its not a gcc bug. All other interfaces work fine, its just
IProjectFileManager that doesn't work and I can't see why. Its
completely the same as for example IBuildSystemManager.

For some unknown reason the specialized template function is not called,
even if I put that specialized template function directly into the
iprojectfilemanager.h and don't use the macro. No matter wether I use
the KDevelop namespace in qt_extension call or not. 

Is there some way to debug this template stuff? It seems as if the
specialized template function is not linked into the library...

Andreas

-- 
You will become rich and famous unless you don't.




More information about the KDevelop-devel mailing list