home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!rutgers!ub!acsu.buffalo.edu!ubvmsb.cc.buffalo.edu!oistony
- From: oistony@ubvmsb.cc.buffalo.edu (Anthony M. Petro)
- Newsgroups: comp.os.os2.misc
- Subject: Re: GNU GCC 2.1
- Message-ID: <BtuqKr.2vF@acsu.buffalo.edu>
- Date: 31 Aug 92 14:21:00 GMT
- References: <tdhnfmg.genie@netcom.com>
- Sender: nntp@acsu.buffalo.edu
- Organization: University at Buffalo
- Lines: 51
- News-Software: VAX/VMS VNEWS 1.41
- Nntp-Posting-Host: ubvmsb.cc.buffalo.edu
-
- In article <tdhnfmg.genie@netcom.com>, genie@netcom.com (The Genie) writes...
- >
- >Hi. I just downloaded the GNU GCC 2.1 package from hobbes and
- >successfully installed it into my 386 OS/2 system. Playing around
- >with C, I couldn't get even the simplest hello.c (not from the
- >sample) program to compile correctly. I'm sure there are
- >no errors in the 4 line program.
- >
- >I type "gcc hello.c"
- >After 3-4 seconds of disk usage, OS/2 responds:
- >SYS1808:
- >The process has stopped. The software diagnostic
- >code (exception code) is 0006.
-
- 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.
-
- 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.
-
- 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.
-
- other than that i'm completely clueless. does anyone have any
- documentation (or reference thereto) for link386.exe?
-
- >
- >What is wrong here? Is it because I need a math co-processor?
- >Help! And thanks in advance.
- >
- >Gene
- anthony m. petro "beethoven" i can say what i want; i'm just an undergrad
- oistony@UBVMSD.BITNET "frame by frame,
- oistony@mednet.bitnet death by drowning,
- petro@sun.acsu.buffalo.edu in your own
- in your own...
- analysis..."
-