This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: v2: plugin to warn about surplus includes


Hello,

I am trying your plugin to? to warn about surplus includes:
http://gcc.gnu.org/ml/gcc/2010-05/msg00418.html

I have some problems compiling against gcc v4.5.1.

~/local/gcc-4.5.1/bin/g++ -I`~/local/gcc-4.5.1/bin/gcc
-print-file-name=plugin`/include -fPIC -shared -O2 rm_includes.cpp -o
plugin.so

 ~/local/gcc-4.5.1/bin/g++ -fplugin=./plugin.so test_rm_includes.cpp
-o test_rm_includes
cc1plus: error: Cannot load plugin ./plugin.so
./plugin.so: undefined symbol: _Z14linemap_lookupP9line_mapsj

?nm -C plugin.so
0000000000201dc8 a _DYNAMIC
0000000000201fe8 a _GLOBAL_OFFSET_TABLE_
???????????????? w _Jv_RegisterClasses
???????????????? U warning_at(unsigned int, int, char const*, ...)
???????????????? U fancy_abort(char const*, int, char const*)
0000000000001400 T handle_struct(void*, void*)
???????????????? U linemap_lookup(line_maps*, unsigned int)
<-----------------------------

Could you please instruct me of what I should link against to get
linemap_lookup ?


Thank you,
--
Michalis Giannakidis
http://mgiannakidis.blogspot.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]