Programming Question

Posted by: CommOri

Programming Question - 13/05/2004 19:27

Howdy all,

I'm trying to compile a modified piece of MS source code that came with Platform Builder 4.2. Specifically, I'm trying to compile LOADCEPC.EXE for DOS. It's a basic C program with some inline assembly.

I assumed I was going to be able to compile using VS with the MSDOS option, but the switch no longer exists for MS compilers.

I don't have a copy of a VC 1.5 or earlier compiler, but I do have Open Watcom. Problem is, there seems to be some MS extensions/assumptions in use and the code won't compile without a good chunk of porting. I'm getting a bunch of errors in the ASM portions of the code: 'operands must be the same size' and '[label-name] not declared' (for jumps to a label outside of the ASM segment), and an 'invalid octal value' (I assume this one is because the compiler doesn't recognize the 'h' for hex, maybe a compiler switch?).

The wording of the errors may be a bit off, but you'll recognize the problem if you can help. I need one of two things to happen:

1) Get my hands on the correct MS compiler. -OR-
2) Learn how to get the code to compile under Open Watcom.

Any help is appreciated.
Posted by: Roger

Re: Programming Question - 14/05/2004 02:23

Get my hands on the correct MS compiler

I've got a copy of VC++ 1.52 around here somewhere. Lemme see if I can dig it out later today.

Posted by: CommOri

Re: Programming Question - 14/05/2004 17:07

Oh wow, that would save my butt. I appreciate you checking.
Posted by: Roger

Re: Programming Question - 15/05/2004 04:08

I appreciate you checking.

Well, I found where it's supposed to be, but the CD isn't there any more.

Sorry.


Posted by: CommOri

Re: Programming Question - 15/05/2004 17:14

Hehe, isn't that always the way with old software.

Thank you VERY much for checking.