68kMLA Classic Interface
This is a version of the 68kMLA forums for viewing on your favorite old mac. Visitors on modern platforms may prefer the main site.
| Click here to select a new forum. | | MacTCP.h compilation problem | Posted by: CodeMonkeyZA on 2017-10-21 16:18:14 Hi guys,
I have been planning on programming an internet-aware application on my SE/30 for a while now, but I have been stuck on one issue: I cannot seem to find a version of MacTCP.h that will compile! I have tried compiling using THINK C 5.0, as well as MPW. I currently have the header file for version 2.0.6, and when I try to include it during compilation I get the following exception:
invalid declaration
for the line:
typedef UInt8 b_8;
I have looked through the forums, and this same problem seems to have been mentioned before (https://68kmla.org/forums/index.php?/topic/6280-system-6-browser-development-opinions/page-15?hl=uint8&do=findComment&comment=103224), stating the solutions is using an older version of the header files. Unfortunately, a link to the older version was never provided, so now I am at a loss.
Is there maybe someone that has a copy of the header files of an older version of MacTCP, or does someone maybe have a suggestion how I can proceed?
Thanks a lot for the help!
CM
| Posted by: TarableCode on 2017-10-21 21:21:33 Just for s*s and giggles, change it to:
typedef unsigned char b_8; | Posted by: CodeMonkeyZA on 2017-10-22 01:12:01 I guess I could do that, but there are more declarations that follow, which pose the same question.
/* 8-bit quantity */
typedef UInt8 b_8;
/* 16-bit quantity */
typedef UInt16 b_16;
/* 32-bit quantity */
typedef UInt32 b_32;
Would just changing them to:
/* 8-bit quantity */
typedef unsigned char b_8;
/* 16-bit quantity */
typedef unsigned short b_16;
/* 32-bit quantity */
typedef unsigned long b_32;
actually fix my problem, or just postpone it?
CM | Posted by: TarableCode on 2017-10-22 09:11:04 It should, but you wouldn't know until you went to compile.
Hacks like that can be useful to get up and running but eventually you'd fix the underlying issue.
| Posted by: CodeMonkeyZA on 2017-10-22 23:30:29 Okay, I guess I'll try that out just so I can get going, and just keep looking for the older headers in the mean time.
| Posted by: ants on 2017-12-17 21:34:01 I recently pulled together some MacTCP helper functions which compiles on Retro68: https://github.com/antscode/MacTCPHelper
| | 1 |
|