Compiling and Linking

ProBoard executables have to be compiled using the LARGE memory model.

For example (Turbo C++) : tcc -c -ml myprog.c

Once you have your .OBJ file (in this case MYPROG.OBJ), you have to link it with the ProBoard SDK library (PB_SDK.LIB). You have to specify a filename as output filename. The linked executable must have extension .PEX. It is important to disable linking of the default compiler libraries!! It is also required to turn on case sensitivity.

e.g. Turbo C++ : TLINK MYPROG,MYPROG.PEX,,PB_SDK /N /C
Microsoft : LINK MYPROG,MYPROG.PEX,,PB_SDK /NOD /NOI;
Zortech : BLINK MYPROG,MYPROG.PEX,,PB_SDK /NOD /NOI;

That's all there is to it. Now you can run your program through ProBoard's menu function 60.

I will now give the compiler syntax for some popular compilers:

Zortech C/C++ : ztc -c -a -ml myprog.c
Microsoft C : cl -Zep -Gs -c -AL myprog.c
Turbo C/C++ : tcc -c -ml myprog.c
Borland C++ : bcc -c -ml myprog.c

And linker syntax:

Borland : TLINK PB_SDK MYPROG,MYPROG.PEX /N /C
Microsoft : LINK MYPROG,MYPROG.PEX,,PB_SDK /NOD /NOI;
Zortech : BLINK MYPROG,MYPROG.PEX,,PB_SDK /NOD /NOI;

Note that the syntax for Borland C++ has changed from previous versions of the SDK. It is required that you specify PB_SDK.OBJ BEFORE your object files, and don't link PB_SDK.LIB.