TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mario Semo
from: Jonathan de Boyne Pollard
date: 1994-08-26 00:27:12
subject: Compile Problem

MS>
  >  JY> #define INCL_DOS
  >  JY> #include 
  >  JY> #include 
  >
  > so you have the problem of:
  >
  > typedef unsigned char BYTE;
  > typedef unsigned char BYTE;
MS>

  Not in my copies.  Mine have :

     typedef          char BYTE;      // \toolkt21\cplus\os2h\os2def.h
     typedef unsigned char BYTE;      // \toolkt21\cplus\os2h\exe.h

  and

     typedef          char BYTE;      // \bcos2\include\os2def.h
     typedef unsigned char BYTE;      // \bcos2\include\exe.h

  Note that the original poster used Borland C++, where the default for
  char is signed.  I say this knowing that you know as well as I do
  that unsigned char and char aren't type identical in C++ anyway.  (-:

  Also note that the headers that ship with Borland C++ are from the 2.0
  Developers' Toolkit, not the 2.1 Developers' Toolkit.  So he's not
  likely to have the latest CSDs.  (-:

MS>
  > This is NEITHER an error, nor a warning in C++.
MS>

  What you said isn't, but what's in the actual headers is.  ARM section
  7.1.3.  (-:

  I think that the right answer was whoever said not to include 
  in the first place.  (-:

  > JdeBP <
___
 X MegaMail 2.10 #0:
--- Maximus/2 2.01wb

* Origin: DoNoR/2,Woking UK (0483-725167) (2:440/4)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 712/353 623 713/888 800/1
@PATH: 440/4 141/209 865 820 3615/50 229/2 12/2442 711/409 54/54 711/808 809
@PATH: 711/934

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™.