Skip to content

Releases: neozeed/gcc-2.8.1_OS2

untested initial build

18 Feb 11:10
Compare
Choose a tag to compare

I only did a very simple test, but make sure you have set:

SET TMP=C:\TEMP
SET C_INCLUDE_PATH=C:\OS2\H

Or wherever you keep headers. You'll need some kind of Makefile receipie like:

CC = gcc
CFLAGS = -O2

OBJ = hi.obj

%.obj: %.c
        $(CC) $(CFLAGS) -c $*.c
        o2obj $*.o
        rm -f $*.o


hi: hi.obj
        wlink @hi.wlk

clean:
        rm -f $(OBJ) hi.exe hi.o

The Watcom linker is HIGHLY recommended

SYS os2v2
NAME hi
OP ST=256000
FILE hi.obj
LIBR libc.lib
LIBR os2386.lib
LIBR gnulib.lib
LIBR gnulib2.lib

gcc-2.8.1_OS2.zip
h_lib.zip
linux64-os2-2-18-2024.tar.gz