| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Compile Problem |
Hello David,
On Aug 26 23:43 94, David Johnson of 1:244/317{at} wrote:
DJ> The problem is that they aren't equal.. I changed my exe.h
DJ> to typedef unsigned char BYTE;
you are right, but i still get NO warninig. I've tried:
====== xx1.cpp=======
typedef char BYTE;
typedef unsigned char BYTE;
=====================
and compiled with
icc -Wall -W3 -c xx1.cpp
Notes:
1) OF Course you get a warning if you use .C Code !!!. But your code uses
iostream.h and cout<<"..."; so it MUST BE C++ code. and
this is NO problem in C++.
2.) The headers in toolkt21\c\os2h contains equal definitions!!!
Directory of I:\toolkt21\cplus\os2h
3.05.93 7.59 3201 0 exe.h BYTE=u-char
3.05.93 8.07 15710 0 os2def.h BYTE=char
Directory of I:\toolkt21\c\os2h
12.03.93 18.00 3194 0 exe.h BYTE=u-char
22.03.93 17.24 15720 0 os2def.h BYTE=u-char
interesting, isn't it.
The differences between these files:
a) both files contain different intro/exit sequences (#prama info vs.
#pragma checkout()).
No other diff in exe.h
in os2def.h : all char declarations (PSZ, BYTE,...) are unsigned (!!!) in
c\os2h vs. signed in CPLUS\os2h.
BTW: There's a bug in \c\os2h\os2def.h:
#ifdef _cplusplus.
this is wrong. it must be __cplusplus.
This problem is documented in the C++ 2.0 install for the cplus\os2h file.
Where it is fixed in the meantime.
Mario
---
* Origin: LC/32 Development Team-Vienna-Austria (2:310/14.11)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: 310/14 90 30 2490/1001 24/24 396/1 3615/50 229/2 12/2442 @PATH: 711/409 54/54 711/808 809 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™.