delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/04/02:28:15

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Tue, 4 Sep 2001 16:28:00 +1000
From: David Salotti <david AT proximity DOT com DOT au>
To: cygwin AT cygwin DOT com
Subject: Re: Problems executing programs which includes rpcndr.h
Message-Id: <20010904162800.5c2ed37a.david@proximity.com.au>
In-Reply-To: <20010903185145.0dc8de2f.david@proximity.com.au>
References: <20010903185145 DOT 0dc8de2f DOT david AT proximity DOT com DOT au>
X-Mailer: Sylpheed version 0.4.61 (GTK+ 1.2.10; Linux 2.4.2-2; i686)
Organization: Proximity
Mime-Version: 1.0

Ok, this is pretty weird - but if I rearrange the #include's, I am able to run
the program successfully??? Does anyone know what's in rpcndr.h that's
conflicting with iostream??

the arrangement that works is:

	#include <rpc.h>
	#include <rpcndr.h>
	#include <iostream>

ta
Dave

On Mon, 3 Sep 2001 18:51:45 +1000, David Salotti <david AT proximity DOT com DOT au>
proclaimed:

> Hi all,
> 
...
> 
> Here's a sample program that will cause a failure:
> 
> #include <iostream>
> #include <rpc.h>
> #include <rpcndr.h>
> 
> using namespace std;
> 
> int
> main (int argc, char **argv)
> {
>     cout << "Made it!" << endl;
>     return EXIT_SUCCESS;
> }
> 
> 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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