This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: v2: plugin to warn about surplus includes
- From: Ian Lance Taylor <iant at google dot com>
- To: Michalis Giannakidis <mgiannakidis at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 09 Dec 2010 11:10:20 -0800
- Subject: Re: v2: plugin to warn about surplus includes
- References: <AANLkTinC6v0LHqd=dEgjwdkyB0D7FQdZpbH81ag6-bwZ@mail.gmail.com>
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