This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problems executing programs which includes rpcndr.h


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@proximity.com.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]