H:\dmake >gcc -c -I. -Iemx -DOS2 -U__GNUC__ -Zmtd -O infer.c
In file included from extern.h:66,
from infer.c:40:
emx\public.h:161: conflicting types for `_chdir'
H:\EMX\INCLUDE\stdlib.h:194: previous declaration of `_chdir'
JdBP> It would appear that "emx\public.h" is a private header file
JdBP> that is part of the source of the program that you are
JdBP> building.
yes, it is...
JdBP> One has to ask why it thinks that it is necessary
JdBP> for it to provide its *own* declaration of _chdir() .
JdBP> Or even why it is using such a function at all.
i don't know the answers to either of those... however, here's what emx\public.h contains for that var... plus the header comments... hummm??
==================== quote ====================
/* RCS -- $Header$
-- WARNING -- This file is AUTOMATICALLY GENERATED DO NOT EDIT IT
--
-- SYNOPSIS -- Local functions exported to be visible by others.
--
-- DESCRIPTION
-- This file is generated by 'genpub'. Function declarations
-- that appear in this file are extracted by 'genpub' from
-- source files. Any function in the source file whose definition
-- appears like:
--
-- PUBLIC return_type
-- function( arg_list );
-- type_expr1 arg1;
-- ...
--
-- has its definition extracted and a line of the form:
--
-- return_type function ANSI((type_expr1,type_expr2,...));
--
-- entered into the output file.
--
-- AUTHOR
-- Dennis Vadura,
dvadura@watdragon.uwaterloo.ca
-- CS DEPT, University of Waterloo, Waterloo, Ont., Canada
--
-- COPYRIGHT
-- Copyright (c) 1992,1994 by Dennis Vadura. All rights reserved.
--
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- (version 1), as published by the Free Software Foundation, and
-- found in the file 'LICENSE' included with this distribution.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warrant of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
--
-- LOG
-- $Log$
*/
[ trim lots ]
int _chdir ANSI((char *));
================== end quote ==================
and here's what H:\EMX\INCLUDE\stdlib.h has for that var...
==================== quote ====================
/* stdlib.h (emx+gcc) */
[ trim lots ]
int _chdir (__const__ char *);
================== end quote ==================
i can see the differences but they don't mean anything to me...
)\/(ark
* Origin: (1:3634/12)