delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <49B94459.4070208@lysator.liu.se> |
Date: | Thu, 12 Mar 2009 18:20:25 +0100 |
From: | Peter Rosin <peda AT lysator DOT liu DOT se> |
User-Agent: | Thunderbird 2.0.0.19 (Windows/20081209) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: [ANNOUNCEMENT] Updated: experimental package: gcc4-4.3.2-2 |
References: | <49B90A2B DOT 3050907 AT alice DOT it> <49B92D24 DOT 3000802 AT gmail DOT com> <49B93C71 DOT 50809 AT gmail DOT com> <49B93FEB DOT 5030305 AT gmail DOT com> |
In-Reply-To: | <49B93FEB.5030305@gmail.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Den 2009-03-12 18:01 skrev Dave Korn: > Dave Korn wrote: > >> Why is a -D for _DLL present? That is a reserved definition in the >> implementation's namespace, > > Hmmm, I may have misunderstood that. Does -D_DLL mean something special to > MSVC, does anyone know? When you compile with shared libc on MSVC (e.g. -MD), it defines _DLL for you. $ cat << EOF > dll.c #ifdef _DLL choke me #endif int foo; EOF $ cl -MD -c dll.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. dll.c dll.c(2) : error C2061: syntax error : identifier 'me' dll.c(2) : error C2059: syntax error : ';' $ cl -c dll.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. dll.c $ Cheers, Peter -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |