• Hello MLAers! We've re-enabled auto-approval for accounts. If you are still waiting on account approval, please check this thread for more information.

MacTCP.h compilation problem

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

 
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
 
Last edited by a moderator:
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.

 
Back
Top