From kjell.ahlstedt@bredband.net Mon Jun 10 07:47:44 2013 Return-Path: X-Original-To: libsigc-list@gnome.org Delivered-To: libsigc-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id 1C88C769BA for ; Mon, 10 Jun 2013 07:47:44 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CITpy6iiicWD for ; Mon, 10 Jun 2013 07:47:30 +0000 (UTC) X-Greylist: delayed 1147 seconds by postgrey-1.34 at restaurant.gnome.org; Mon, 10 Jun 2013 07:47:29 UTC Received: from smtprelay-h22.telenor.se (smtprelay-h22.telenor.se [195.54.99.197]) by restaurant.gnome.org (Postfix) with ESMTP id A9441769B0 for ; Mon, 10 Jun 2013 07:47:21 +0000 (UTC) Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-h22.telenor.se (Postfix) with ESMTP id A11C1CA90 for ; Mon, 10 Jun 2013 09:28:11 +0200 (CEST) X-SMTPAUTH-B2: [kjelahls] X-SENDER-IP: [85.227.234.77] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjIiAJV/tVFV4+pNPGdsb2JhbAANTYM5iRuuXYcKA4EVAwEBAQE4gk+BCB8BHRYYAwIBAgExGg0IAQEXh36nJJFQBI5ZhEYDqjSBXw X-IronPort-AV: E=Sophos;i="4.87,835,1363129200"; d="scan'208,217";a="267469343" Received: from c-4deae355.06-203-73746f44.cust.bredbandsbolaget.se (HELO [192.168.1.64]) ([85.227.234.77]) by ipb4.telenor.se with ESMTP; 10 Jun 2013 09:28:11 +0200 Message-ID: <51B5800A.8020608@bredband.net> Date: Mon, 10 Jun 2013 09:28:10 +0200 From: Kjell Ahlstedt User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: Libsigc++ Content-Type: multipart/alternative; boundary="------------010903070902080105080804" Subject: [sigc] Do you use - or want to use - libsigc++ with Objective-C++? X-BeenThere: libsigc-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Mailing list for libsigc++ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jun 2013 07:47:44 -0000 This is a multi-part message in MIME format. --------------010903070902080105080804 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I was told that there is a problem with libsigc++, if you want to use it in an Objective-C++ program: libsigc++ defines *nil*, which is a keyword in Objective-C++. I filed bug https://bugzilla.gnome.org/show_bug.cgi?id=695235 to try to cope with this problem, but the person who told me about the problem seems to have lost interest in the matter. If you're interested in using libsigc++ in an Objective-C++ program, and want to help test my proposed solution, please see the bug report, and add a comment there or in libsigc-list. --------------010903070902080105080804 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I was told that there is a problem with libsigc++, if you want to use it in an Objective-C++ program: libsigc++ defines nil, which is a keyword in Objective-C++.
I filed bug https://bugzilla.gnome.org/show_bug.cgi?id=695235 to try to cope with this problem, but the person who told me about the problem seems to have lost interest in the matter.

If you're interested in using libsigc++ in an Objective-C++ program, and want to help test my proposed solution, please see the bug report, and add a comment there or in libsigc-list.

--------------010903070902080105080804-- From paul@linuxaudiosystems.com Mon Jun 10 11:00:08 2013 Return-Path: X-Original-To: libsigc-list@gnome.org Delivered-To: libsigc-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id 9F26D769DF for ; Mon, 10 Jun 2013 11:00:08 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sHIP5IzJrNNe for ; Mon, 10 Jun 2013 11:00:04 +0000 (UTC) Received: from mail-qe0-f50.google.com (mail-qe0-f50.google.com [209.85.128.50]) by restaurant.gnome.org (Postfix) with ESMTP id A069E769CA for ; Mon, 10 Jun 2013 10:59:56 +0000 (UTC) Received: by mail-qe0-f50.google.com with SMTP id f6so3976680qej.9 for ; Mon, 10 Jun 2013 03:59:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=B5yjvD8snHFLtoI4hJHc+96yIpmv0tZAGaKbuuKLsT8=; b=COEyRaLEkPRB0320vVFquugJy7dJpGeNY5qA6Tx9YwJGkyZykUCcjSmGYuUlLcZITD ByasvS0wA4aJpujlO1oikdUJXCf1z3En9Wtd7CmBthFsPaDoyhWLw+H5htjxcqdWeNeY 48vsX2DaDi27kbMDM9AorMmr6mx7Td3AomZRdZrVNy51dRMK3UMjnYmbXadK0F3rdw0l LNEvM2++rth01nasuVpO1GU/YTCvsoBBB3C9398t102SpRXUun9NxtJc3UpH0n9O5aIo VdSkj+p6UoB0d1wwACXw2eXTr6q8PuYiiFr5NQoZTzB4orWD5BM3H7Gs67fDCriPnonT fXcw== MIME-Version: 1.0 X-Received: by 10.49.4.194 with SMTP id m2mr10537700qem.3.1370861994778; Mon, 10 Jun 2013 03:59:54 -0700 (PDT) Received: by 10.224.24.129 with HTTP; Mon, 10 Jun 2013 03:59:54 -0700 (PDT) In-Reply-To: <51B5800A.8020608@bredband.net> References: <51B5800A.8020608@bredband.net> Date: Mon, 10 Jun 2013 06:59:54 -0400 Message-ID: From: Paul Davis To: Kjell Ahlstedt Content-Type: multipart/alternative; boundary=047d7bb70dd63c334504decaaedc X-Gm-Message-State: ALoCoQmy9DXsl60OETvwriKCGZL1XqVDEe2MzzmLRGmCN/xtFMmiYfoBiADU8ig2Zqdj71Jb0FmC Cc: Libsigc++ Subject: Re: [sigc] Do you use - or want to use - libsigc++ with Objective-C++? X-BeenThere: libsigc-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Mailing list for libsigc++ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jun 2013 11:00:08 -0000 --047d7bb70dd63c334504decaaedc Content-Type: text/plain; charset=ISO-8859-1 We have used sigc++ with objective C for many years, but always have to apply the following patch to our build of sigc++ before using it: --- ../include/sigc++-2.0/sigc++/functors/functor_trait.h~ +++ ../include/sigc++-2.0/sigc++/functors/functor_trait.h @@ -23,8 +23,9 @@ #ifndef _SIGC_FUNCTORS_MACROS_FUNCTOR_TRAITHM4_ #define _SIGC_FUNCTORS_MACROS_FUNCTOR_TRAITHM4_ #include - - +#ifdef nil +#undef nil +#endif namespace sigc { /** nil struct type. On Mon, Jun 10, 2013 at 3:28 AM, Kjell Ahlstedt wrote: > I was told that there is a problem with libsigc++, if you want to use it > in an Objective-C++ program: libsigc++ defines *nil*, which is a keyword > in Objective-C++. > I filed bug https://bugzilla.gnome.org/show_bug.cgi?id=695235 to try to > cope with this problem, but the person who told me about the problem seems > to have lost interest in the matter. > > If you're interested in using libsigc++ in an Objective-C++ program, and > want to help test my proposed solution, please see the bug report, and add > a comment there or in libsigc-list. > > > _______________________________________________ > libsigc-list mailing list > libsigc-list@gnome.org > https://mail.gnome.org/mailman/listinfo/libsigc-list > > --047d7bb70dd63c334504decaaedc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
We have used sigc++ with objective C for many years, but a= lways have to apply the following patch to our build of sigc++ before using= it:

--- ../include/sigc++-2.0/sigc++/functors/functor_trait.h~
+++ ../include/sigc++-2.0/sigc++/functors/functor_trait.h
@@ -23,8 +23,9= @@
=A0#ifndef _SIGC_FUNCTORS_MACROS_FUNCTOR_TRAITHM4_
=A0#define _SI= GC_FUNCTORS_MACROS_FUNCTOR_TRAITHM4_
=A0#include <sigc++/type_traits.= h>
-
-
+#ifdef nil
+#undef nil
+#endif
=A0namespace sigc {
= =A0
=A0/** nil struct type.
--047d7bb70dd63c334504decaaedc-- From johne53@tiscali.co.uk Fri Jun 14 07:04:36 2013 Return-Path: X-Original-To: libsigc-list@gnome.org Delivered-To: libsigc-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id 38260769F5 for ; Fri, 14 Jun 2013 07:04:36 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.206 X-Spam-Level: X-Spam-Status: No, score=-2.206 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.556, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XwPUQ53Q2VwD for ; Fri, 14 Jun 2013 07:04:31 +0000 (UTC) X-Greylist: delayed 776 seconds by postgrey-1.34 at restaurant.gnome.org; Fri, 14 Jun 2013 07:04:31 UTC Received: from mk-filter-1-a-1.mail.uk.tiscali.com (mk-filter-1-a-1.mail.tiscali.co.uk [212.74.100.52]) by restaurant.gnome.org (Postfix) with ESMTP id 17FB2769DC for ; Fri, 14 Jun 2013 07:04:22 +0000 (UTC) X-Trace: 870468943/mk-filter-1.mail.uk.tiscali.com/B2C/$THROTTLED_DYNAMIC/b2c-CUSTOMER-DYNAMIC-IP/88.104.26.221/None/johne53@tiscali.co.uk X-SBRS: None X-RemoteIP: 88.104.26.221 X-IP-MAIL-FROM: johne53@tiscali.co.uk X-SMTP-AUTH: X-Originating-Country: GB/UNITED KINGDOM X-MUA: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvgCAMa8ulFYaBrd/2dsb2JhbAANTcJIBASBHYNWQD0WGAMCAQIBWAgBARewQ5I9j2SDSgOdTY5G X-IronPort-AV: E=Sophos;i="4.87,863,1363132800"; d="scan'208";a="870468943" Received: from 88-104-26-221.dynamic.dsl.as9105.com (HELO [192.168.1.2]) ([88.104.26.221]) by smtp.tiscali.co.uk with ESMTP; 14 Jun 2013 07:51:23 +0100 X-Vipre-Scanned: 00337188000000003372D5-TDI Message-ID: <51BABD6B.8060803@tiscali.co.uk> Date: Fri, 14 Jun 2013 07:51:23 +0100 From: John Emmas User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: libsigc-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [sigc] Building with MSVC X-BeenThere: libsigc-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Mailing list for libsigc++ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jun 2013 07:04:36 -0000 Hello guys, Yesterday I did a git clone of the sigc++ code (from gnome) with the intention of building with MSVC. I'd already built with MSVC several years ago so I'm familiar with the general process. However, I was very pleased to see that VC solutions and project files are now available for the more recent MSVC compilers. To save myself some time I loaded up the solution for VS2005 and tried a build. But the build fails because the following files are missing:- sigc++/signal.h sigc++/functors/slot.h sigc++/functors/functor_trait.h From what I can tell (looking at my older build) it seems like those files must get auto-generated. So is there some preliminary step that I need to carry out before my MSVC build? John From kjell.ahlstedt@bredband.net Fri Jun 14 08:56:55 2013 Return-Path: X-Original-To: libsigc-list@gnome.org Delivered-To: libsigc-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id 4D866769DC for ; Fri, 14 Jun 2013 08:56:55 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.901 X-Spam-Level: X-Spam-Status: No, score=-1.901 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3l_XuRD5n08n for ; Fri, 14 Jun 2013 08:56:41 +0000 (UTC) Received: from smtprelay-b31.telenor.se (smtprelay-b31.telenor.se [213.150.131.20]) by restaurant.gnome.org (Postfix) with ESMTP id E7099760A7 for ; Fri, 14 Jun 2013 08:56:32 +0000 (UTC) Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-b31.telenor.se (Postfix) with ESMTP id DFB9ECBB8 for ; Fri, 14 Jun 2013 10:56:30 +0200 (CEST) X-SMTPAUTH-B2: [kjelahls] X-SENDER-IP: [85.227.234.77] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtUkANfZulFV4+pNPGdsb2JhbAANTYM5vyADAYEcAwEBAQE4glkBAQQ4QAEQCyEWDwkDAgECATEUBg0BBwEBF4d/qBeSPo5pXweDYAOsFA X-IronPort-AV: E=Sophos;i="4.87,864,1363129200"; d="scan'208";a="566111335" Received: from c-4deae355.06-203-73746f44.cust.bredbandsbolaget.se (HELO [192.168.1.64]) ([85.227.234.77]) by ipb2.telenor.se with ESMTP; 14 Jun 2013 10:56:30 +0200 Message-ID: <51BADABE.4090203@bredband.net> Date: Fri, 14 Jun 2013 10:56:30 +0200 From: Kjell Ahlstedt User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: John Emmas References: <51BABD6B.8060803@tiscali.co.uk> In-Reply-To: <51BABD6B.8060803@tiscali.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: libsigc-list@gnome.org Subject: Re: [sigc] Building with MSVC X-BeenThere: libsigc-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Mailing list for libsigc++ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jun 2013 08:56:55 -0000 Many source code files in libsigc++ are generated from the .m4 files in the macros/ directories. You need an M4 macro processor for that. The released versions at http://ftp.gnome.org/pub/GNOME/sources/libsigc++/ contain the generated .h and .cc files, as well as generated documentation and a few other generated files. It's easier to use one of those released versions, but then of course you won't get the very latest updates. Kjell 2013-06-14 08:51, John Emmas skrev: > Hello guys, > > Yesterday I did a git clone of the sigc++ code (from gnome) with the > intention of building with MSVC. I'd already built with MSVC several > years ago so I'm familiar with the general process. However, I was > very pleased to see that VC solutions and project files are now > available for the more recent MSVC compilers. > > To save myself some time I loaded up the solution for VS2005 and tried > a build. But the build fails because the following files are missing:- > > sigc++/signal.h > sigc++/functors/slot.h > sigc++/functors/functor_trait.h > > From what I can tell (looking at my older build) it seems like those > files must get auto-generated. So is there some preliminary step that > I need to carry out before my MSVC build? > > John From johne53@tiscali.co.uk Fri Jun 14 09:14:19 2013 Return-Path: X-Original-To: libsigc-list@gnome.org Delivered-To: libsigc-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id 4D57E769DC for ; Fri, 14 Jun 2013 09:14:19 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.207 X-Spam-Level: X-Spam-Status: No, score=-2.207 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.556, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y_Y1CRmX47D2 for ; Fri, 14 Jun 2013 09:14:15 +0000 (UTC) Received: from mk-filter-3-a-1.mail.uk.tiscali.com (mk-filter-3-a-1.mail.tiscali.co.uk [212.74.100.54]) by restaurant.gnome.org (Postfix) with ESMTP id EBEEE760A7 for ; Fri, 14 Jun 2013 09:14:06 +0000 (UTC) X-Trace: 857551009/mk-filter-3.mail.uk.tiscali.com/B2C/$THROTTLED_DYNAMIC/b2c-CUSTOMER-DYNAMIC-IP/88.104.27.134/None/johne53@tiscali.co.uk X-SBRS: None X-RemoteIP: 88.104.27.134 X-IP-MAIL-FROM: johne53@tiscali.co.uk X-SMTP-AUTH: X-Originating-Country: GB/UNITED KINGDOM X-MUA: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 To: libsigc-list@gnome.org X-IP-Added: To/mk-filter-3.mail.uk.tiscali.com X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqQBAHjeulFYaBuG/2dsb2JhbAANTYM5vyQZgQODDwgBAQEEODwEARALGAkWDwkDAgECAUUTAQcBAYVygiSoE5I+j0gHglqBBgOdTY5G X-IronPort-AV: E=Sophos;i="4.87,864,1363132800"; d="scan'208";a="857551009" Received: from 88-104-27-134.dynamic.dsl.as9105.com (HELO [192.168.1.2]) ([88.104.27.134]) by smtp.tiscali.co.uk with ESMTP; 14 Jun 2013 10:14:03 +0100 X-Vipre-Scanned: 00B60F1000000000B6105D-TDI Message-ID: <51BADEDB.9000701@tiscali.co.uk> Date: Fri, 14 Jun 2013 10:14:03 +0100 From: John Emmas User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 CC: libsigc-list@gnome.org References: <51BABD6B.8060803@tiscali.co.uk> <51BADABE.4090203@bredband.net> In-Reply-To: <51BADABE.4090203@bredband.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [sigc] Building with MSVC X-BeenThere: libsigc-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Mailing list for libsigc++ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jun 2013 09:14:19 -0000 On 14/06/2013 09:56, Kjell Ahlstedt wrote: > Many source code files in libsigc++ are generated from the .m4 files > in the macros/ directories. You need an M4 macro processor for that. > > The released versions at > http://ftp.gnome.org/pub/GNOME/sources/libsigc++/ contain the > generated .h and .cc files, as well as generated documentation and a > few other generated files. It's easier to use one of those released > versions, but then of course you won't get the very latest updates. > Thanks for the prompt reply, Kjell. For the time being I'll use those files that you pointed to but it'd be nice to be able to build fully from source, eventually. As an aside, I'm pretty experienced now at building GNU stuff with MSVC. Certain libraries (glib / gtk etc) have made this much easier with a combination of perl scripts and template files for building the auto-generated stuff (or 'glib-mkenus' for enumeration files). In fact I can now build the entire GTK+ stack (pango / cairo / gdk-pixbuf etc) with a combination of just MSVC, python and perl. It'd be really nice to get libsigc++ to that stage too, at some point in the future. Thanks again for your help. John