Need help with linker error

Milian Wolff mail at milianw.de
Sun Apr 5 19:50:17 UTC 2009


Hi guys!

I just stumbled upon an error I cannot resolve...

I can't use any functions (note: not methods, plain functions!) from 
php/duchain/helper.h inside completion/context.cpp...

I've added helper.h as an #include yet the linker complains about an undefined 
reference...

The library (i.e. the cmake target) containing helper.cpp is definitly linked 
to. What I think the error is:

objdump -t libkdev4phpduchain.so | grep -i findDeclarationImport
0006275d l     F .text  00000a5a              .hidden 
_ZN3Php27findDeclarationImportHelperEPN8KDevelop9DUContextENS0_19QualifiedIdentifierENS_15DeclarationTypeEPNS_7AstNodeEPNS_16EditorIntegratorE

Note the .hidden - how can I remove that? I tried the KDEVPHPDUCHAIN_EXPORT 
makro on the function but only get

In file included from 
/home/milian/projects/kde4/php/duchain/includebuilder.cpp:23:
/home/milian/projects/kde4/php/duchain/helper.h:50: warning: ‘visibility’ 
attribute ignored on non-class types

So I'm lost... What do I have to do to get that function workin in other 
places?

-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20090405/df14daed/attachment.sig>


More information about the KDevelop-devel mailing list