home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!psuvax1!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
- From: dic5340@hertz.njit.edu (David Charlap)
- Newsgroups: comp.os.os2.misc
- Subject: Re: GNU GCC 2.1
- Message-ID: <1992Sep1.133321.2063@njitgw.njit.edu>
- Date: 1 Sep 92 13:33:21 GMT
- References: <tdhnfmg.genie@netcom.com> <BtuqKr.2vF@acsu.buffalo.edu>
- Sender: news@njit.edu
- Organization: New Jersey Institute of Technology, Newark, N.J.
- Lines: 52
- Nntp-Posting-Host: hertz.njit.edu
-
- In article <BtuqKr.2vF@acsu.buffalo.edu> oistony@ubvmsb.cc.buffalo.edu (Anthony M. Petro) writes:
- >i downloaded gcc 2.1 and installed it, and then installed the 2.2.2
- >binaries over the 2.1 binaries. according to the note in the 2.2.2
- >directory, one needs only the files gccbin.zoo and gcclib.zoo to
- >upgrade from 2.1; i found the content of gcclib.zoo to be identical to
- >the ones provided by 2.1 and installed only the binaries.
- >
- >there are two text files entitled readme and install in the \doc
- >directory (created by extracting the zoo files). one of them, readme
- >i believe, gives a few hints about using gcc in os/2, like not using
- >the gcc linker but instead using link386.exe provided by os/2.
-
- There is no gcc/2 linker. That's why you must use link386.exe.
-
- >the other file describes environment variables that must be
- >initialized for proper gcc operation. i copied these into my
- >config.sys, rebooted, and was able to compile sample1.c and sample2.c.
-
- OK.
-
- >linking these with link386.exe gave me runnable executables. however,
- >i can't find any documentation on link386.exe. when i linked
- >sample1.o, link386 bitched that i didn't specify an executable file
- >type or something like that, and warned that it was assuming the app
- >was WINDOWSCOMPAT or something like that. regardless, sample1.exe
- >worked from an os/2 prompt, but "Hello world" isn't exactly a robust
- >test.
-
- You didn't specify an executable type. Either include a "/PM:<type>"
- line on the link386 command line or (prefereably) linke with a .DEF
- file.
-
- The executable type is assumed to be WINDOWCOMPAT if you don't specify
- one. WINDOWCOMPAT means that it is a text-mode app which can run full
- screen or windowed. The other types are NONWINDOWCOMPAT, which can
- only run in full-screen sessions, and WINDOWAPI, which is a PM app.
-
- All these are specified in the .DEF file that is used by the linker
- (the fifth parameter to link386.exe).
-
- >other than that i'm completely clueless. does anyone have any
- >documentation (or reference thereto) for link386.exe?
-
- Documentation is on-line in the OS/2 Toolkit. Descriptions of .DEF
- files are in almost any book on programming OS/2 (any version).
-
- For a (very brief) syntax for link386, type "link386 /help"
- --
- |) David Charlap "I don't even represent myself
- /|_ dic5340@hertz.njit.edu sometimes so NJIT is right out!.
- ((|,)
- ~|~ Hi! I am a .signature virus, copy me into your .signature file.
-