This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc -fplugin-arg
- From: Cheng Renquan <crquan at gmail dot com>
- To: Pietro Incardona <asmprog32 at hotmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 16 Jul 2010 22:02:10 +0800
- Subject: gcc -fplugin-arg
* From: Pietro Incardona <asmprog32 at hotmail dot com>
* To: <gcc-help at gcc dot gnu dot org>
* Date: Wed, 14 Jul 2010 22:47:13 +0200
* Subject: gcc -fplugin-arg
> g++ -S -fplugin=test.so -fplugin-arg-test=0 example.cpp
> cc1plus: error: Malformed option -fplugin-arg-test=0 (missing -<key>[=<value>])
> why is a malformed option ? how to use -fplugin-arg ?
use -fplugin-arg-test-arg=0, and your plugin would get a (key,value)
is ("arg","0")