This is the mail archive of the gcc-help@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]

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")


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