[hellogcc] gcc on windows --enable-plugin 实验性构建

  • From: xunxun <xunxun1982@xxxxxxxxx>
  • To: hellogcc@xxxxxxxxxxxxx
  • Date: Mon, 17 Oct 2011 10:35:39 +0800

Hi, all

我编译出一个windows平台--enable-plugin(gcc插件)的gcc,有兴趣的可以试用下
因为我知道的插件例子比较少,所以不清楚是否符合所有的情况,欢迎大家测试,我好进行修改
下面是使用方法

download link:
https://pcxprj.googlecode.com/files/MinGW_GCC4.6.1_enable_plugin_experimental.7z

There is an example in the package, and this is in the example directory.
Makefile.gcc is linked with cc1
Makefile.g++ is linked with cc1plus

So the gcc has some problems, when you use gcc to call plugin, you
should link plugin with libcc1.a, and if you use g++ to call plugin,
you should link plugin with libcc1plus.a. You can't mixed linking, or
you will get segment fault.

Thanks.

-- 
Best Regards,
xunxun

Other related posts: