| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Compile Problem |
Hello Jim, On Aug 16 19:22 94, Jim Yahnke of 1:202/204 wrote: JY> We have run into a problem including exe.h. This proble JY> manifests itself with both Borland OS2 1.5 and IBM Cset JY> compilers. (This is expected, since Borland has right to JY> IBM's headers!) JY> #include so, its a C++ file! JY> #define INCL_DOS JY> #include JY> #include so you have the problem of: typedef unsigned char BYTE; typedef unsigned char BYTE; This is NEITHER an error, nor a warning in C++. JY> Generates these errors with IBM CSet: JY> 20 26 |typedef unsigned char BYTE; JY> d:\toolkt21\cplus\os2h\exe.h(26:1) : error EDC3023: "BYTE" JY> has already been defined. I've compiled your program with CSET++ 2.1 and it compiles warning and error free. I'm running CSET++ 2.1 CTC9. (the include files are equal, line 26 in exe.h, line 96 in os2def.h) JY> Looking into the include file os2def.h BYTE is typedef'ed and not JY> #defined. thats right. but 2 typedef's are no problem if everything is equal. icc -Fd+ -Sm -Si+ -Tl30 -Q+ -Wall+cls-cns-cpy-eff-gnr-lan-par-ppt-uni-vft- xx.cpp 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™.