delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/04/04:47:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <3F2E1D36.5060609@sanger.ac.uk>
Date: Mon, 04 Aug 2003 09:45:42 +0100
From: Rob Clack <rnc AT sanger DOT ac DOT uk>
Organization: Sanger Institute
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030326
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: #define question

Perfect answer, thank you!  I moved the COBJMACROS definition to the top 
of the file and was able to remove the #include <objidl.h> entirely, so 
clearly it's being included by some other file.

Thanks!
Rob

-------- Original Message --------
Subject: Re: #define question
Date: Fri, 01 Aug 2003 12:58:44 -0700
From: Shankar Unni <shankar AT cotagesoft DOT com>
To: cygwin AT cygwin DOT com
References: <3F2A2543 DOT 9060404 AT sanger DOT ac DOT uk>

Rob Clack wrote:

> [...] either objidl.h isn't 
> getting included at all, though I get no error there, or the macro isn't 
> getting #defined, or it's getting undefined somewhere.  

Are you sure objidl.h isn't included somewhere else above that by some
other file, indirectly?

Best to put your COBJMACROS #define at the top of your .c file (or pass
it in via the "gcc" command line).



--
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/


-- 
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  It was a good theory that met all valid criteria
  apart from that of actually being right.
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Rob Clack                        Acedb Development,  Informatics Group
  email: rnc AT sanger DOT ac DOT uk                Wellcome Trust Sanger Institute
  Tel: +44 1223 494780                   Wellcome Trust Genome Campus
  Fax: +44 1223 494919                   Hinxton  Cambridge    CB10 1SA


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019