Hello,

Is it possible to make plugins for the C compiler (not the C++)
compiler? I was trying the (old) sample code at
https://github.com/hlandau/compex to make a plugin, but the plugin
only works with C++. when trying to use the C compiler it complains
about

 gcc -fplugin=/usr/local/lib/compex_gcc.so -D__COMPEX__=1
-fplugin-arg-compex_gcc-o=test_c.compex  -o test_c test_c.c
cc1: error: cannot load plugin /usr/local/lib/compex_gcc.so
   /usr/local/lib/compex_gcc.so: undefined symbol: cp_global_trees

Is the mechanism differently, or are plugins even supported on the C compiler?

- Maurice

Reply via email to