From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11603 invoked by alias); 14 Nov 2013 20:48:41 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 11590 invoked by uid 89); 14 Nov 2013 20:48:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: mail-ob0-f175.google.com Received: from Unknown (HELO mail-ob0-f175.google.com) (209.85.214.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 14 Nov 2013 20:48:40 +0000 Received: by mail-ob0-f175.google.com with SMTP id va2so2856588obc.34 for ; Thu, 14 Nov 2013 12:48:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Rd6HsZ5i9t+Idhpj+Rrpwy6zDAuuJtuJFxvaVZPLyFY=; b=ipqfVRg2IhVrXC2bn/qDLYoPyaCLv8tuGeUlor5T/b0qh1OpVutbEjVjcO1tbq9RzK UHPEcb2dwUlY+NUcufl/IAPlYXX35lylNJ76FAY8HeDzXYVvKVuXs+pJd4wmFGcIqRhh 9EWgXbvO2rnAYh/peQQZjxz9M2CiZ6IM+dFuvSztpalT6hxcBdNYDL3FUcUJyGoC3X9R 5rGIpwFQuZv0rssn1/zdW1PW63Pu4nlaQcMPsMScNUv7xUUANkeKtwjYFa/y1QCiC305 BfiJxv1cG2m7vnn0BdE6zMgsi1mRQ/BRgIrmT1H86PjAo/pKKaqyXbE5nIYsR76h87gb n5Ug== X-Gm-Message-State: ALoCoQmnUEDjWfwnyfCecr/sIcP4VHyCJjywaBOJyW7HOE9djC373+GsPszIGRR0PjlP3OAMmJWHzN7rr/io8VKQ++Mdohu6f2qb8egG1d7X7xo84nqWovg6/CANv5EBBMTT+487bFB5bhaUbph672nx1L/4UCq4zRQZorLx8sIQowJ0LfijmgE251JnkEBN3OP2K2VYjl4n MIME-Version: 1.0 X-Received: by 10.182.80.196 with SMTP id t4mr3481481obx.1.1384462112254; Thu, 14 Nov 2013 12:48:32 -0800 (PST) Received: by 10.60.145.144 with HTTP; Thu, 14 Nov 2013 12:48:32 -0800 (PST) In-Reply-To: <1384455013190-985280.post@n5.nabble.com> References: <1384451207204-985245.post@n5.nabble.com> <1384453621013-985272.post@n5.nabble.com> <1384455013190-985280.post@n5.nabble.com> Date: Thu, 14 Nov 2013 20:48:00 -0000 Message-ID: Subject: Re: Wierd compile problem From: Ian Lance Taylor To: awsdert Cc: "gcc-help@gcc.gnu.org" Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00100.txt.bz2 On Thu, Nov 14, 2013 at 10:50 AM, awsdert wrote: > Thank you, unfortunately it does not solve the problem I originally posted > which is: > >>include\zx\window\..\std\vector\dec_fun.h|19|note: #pragma message: > ZX__INIT( zxVECTOR, void, __attribute__((dllexport)), )| > > is the output I get, > > include\zx\window\..\std\vector\dec_fun.h|19|note: #pragma message: > ZX__INIT( zxVECTOR, void, __attribute__((dllexport)), zxVECTOR__init)| > > is the output I expect, > > #define ZXV___INIT( NAME, T, DLL, FUN ) DLL void \ > FUN( NAME *src, T const *cpy, size_t count ) > #define ZXV__INIT( NAME, T, DLL, CALL ) \ > ZXV___INIT( NAME, T, DLL, CALL NAME##__init ) > > is the code I'm using. > Am I doing something wrong here or is GCC? In MSC this comes out as expected > but in GCC I get a bunch of missing functions due the problem. It sounds like the Microsoft compiler expands preprocessor macros in the "#pragma message" output and GCC does not. As far as I know there is no standard for how "#pragma message" works. If you can provide a standalone self-contained test case, I suggest that you open a GCC bug report as described at http://gcc.gnu.org/bugs . Ian