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


Michalis Giannakidis <mgiannakidis@gmail.com> writes:

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

You should probably e-mail Bernhard Reutner-Fischer, who wrote the
plugin.

> 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

By naming the plugin rm_includes.cpp you are compiling it as a C++
file.  That is probably not what you want to do.

Ian


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