TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: mark lewis
from: David Noon
date: 1999-01-12 21:42:04
subject: making dmake with emx 0.

In a message dated 01-10-99, mark lewis said to David Noon about "making
dmake with emx 0.9"

Hi mark,

ml>===== snip =====
ml>H:\dmake >gcc -c -I. -Iemx -DOS2 -U__GNUC__ -Zmtd -O infer.c
ml>In file included from extern.h:66,
ml>                 from infer.c:40:
ml>emx\public.h:161: conflicting types for `_chdir'
ml>H:\EMX\INCLUDE\stdlib.h:194: previous declaration of `_chdir'
ml>===== snip =====

ml>in looking at \DMAKE\EMX\PUBLIC.H, i see this...

ml>   int _chdir ANSI((char *));

ml>in looking at \EMX\INCLUDE\STDLIB.H, i see this...

ml>   int _chdir (__const__ char *);

ml>they are definitely not the same and the message doesn't 
ml>really mean anything to me other than there is an error...

The one in PUBLIC.H is wrong. The difference is caused by the missing
__const__ qualifier, which does the same this as distinguishing between VAR
and CONST in Pascal parameter lists. The ISO/ANSI standard form of this is
simply const.

Regards

Dave

___
 * MR/2 2.25 #353 * Radioactive cats have 18 half-lives.

--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-717904) (2:440/4)
SEEN-BY: 396/1 632/0 371 633/260 262 267 270 371 635/444 506 728 639/252
SEEN-BY: 670/218
@PATH: 440/4 255/1 251/25 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.