delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/06/25/13:09:39

Date: Fri, 25 Jun 93 13:02:52 EDT
From: DJ Delorie <dj AT ctron DOT com>
To: peprbv AT cfa0 DOT harvard DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: several questiond from new user

> what is happening.  I'd like to say
>    #define getcwd(a,b)  #error...
> but I don't think that works.  Maybe
>    #define getcwd(a,)  (SELECT_ONE_OF | DOS_GETCWD | UNIX_GETCWD)

How about:

	#define getcwd you_must_set_either_DOS_GETCWD_or_UNIX_GETCWD !

One look at the .h after the screen full of error messages:

C> gcc test.c
test.c: In function `main':
test.c:5: `you_must_set_either_DOS_GETCWD_or_UNIX_GETCWD' undeclared (first use this function)
test.c:5: parse error before `!'

and I think they'll figure it out.

- Raw text -


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