| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Making OS/2 apps with a DOS compiler |
FYI:
This batch file will create an OS/2 app using MS QuickC 2.5, a DOS-only compiler:
I intend to pick up the 1.3 headers from Fernwood, since I don't have the
1.3 toolkit. I'll be writing the C library on an as-needed basis. I haven't
tested this with /NOI, but it should work.
qcl /Gs /G2 /Ox /W4 /c tmp.c
g:\binb\link /info tmp+tmpa,tmp,tmp,doscalls;
bind tmp g:\include\doscalls.lib
Here are the files it uses:
qcl - QC version of cl
link - bound version of link -- comes (came) with MASM
bind - bind -- ditto
tmp.c-------
int _acrtused=0;
void _pascal _far DosExit(short,short);
void _pascal _far VioWrtTTY(char _far *,short,short);
void main(void) {
VioWrtTTY("Hello, World!",sizeof("Hello, World!"),0);
DosExit(1,5);
}
tmpa.asm--------
.286
.model small
.stack 100h
.data
.code
extrn _main:proc
end _main
loSmaH cha'
--- timEd-B9
* Origin: Until the People Come Home (1:283/120.1)SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 283/120 396/1 270/101 105/103 42 712/515 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™.