From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1826 invoked by alias); 27 Mar 2017 11:19:08 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 1749 invoked by uid 89); 27 Mar 2017 11:19:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=forums, H*r:8.14.9, H*F:D*eu X-HELO: mx1.phase.eu Received: from mx1.phase.eu (HELO mx1.phase.eu) (212.31.230.35) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 27 Mar 2017 11:19:06 +0000 Received: from nelson.pmc.phase.it (mail.phase.eu [10.0.0.14]) by mx1.phase.eu (8.14.9/8.14.9) with ESMTP id v2RBIsXo024408 for ; Mon, 27 Mar 2017 13:18:54 +0200 Received: from NELSON.pmc.phase.it ([::1]) by nelson.pmc.phase.it ([::1]) with mapi id 14.02.0309.002; Mon, 27 Mar 2017 13:18:50 +0200 From: Davide Piombo To: "'gcc@gcc.gnu.org'" Subject: Plugin development under windows Date: Mon, 27 Mar 2017 11:19:00 -0000 Message-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2017-03/txt/msg00146.txt.bz2 Hello, I'm interested in developing a plugin to parse some custom annotation in C+= =3D + code. I already developed a preliminary version of this plugin under linux and it= =3D works fine. The final platform target of the plugin is (unfortunately ;-)) Windows and = =3D I tried to rebuild the plugin using MinGW compiler (both with the Linux= ver=3D sion as well by using MSYS2 and win-builds MinGW compilers for wind= ows) but=3D the lack of POSIX includes breaks the build. I looked around the documentation but I didn't find any reference regarding= =3D the use of GCC plugins under windows. I only found some old posts on some forums saying that it is possible to d= =3D o that and that exist some old gcc versions (custom windows rebuild of = GCC =3D 4.6.1 to use dragonegg as plugin) that can run plugins. Substantially I'm writing just to ask: Can GCC plugins run on a windows build of GCC compiler (MinGW) ? If it is possible to do that, which is the correct way to build the plugin? Thanks in advance Davide