Thanks,
Jeff Shrode
jwsh...@starbase.spd.louisville.edu
Jeff: I think you will find that IBM C Set ++ for OS/2 ver 2.1 is the way to
go if you want to write os/2 programs. And yes, the code would be compatible,
just leave off the os/2 specific stuff. After all, C++ is supposed to be C++.
--
Later . . .
. . . Bill
bill_...@mindlink.bc.ca
all...@mala.bc.ca
I'm not sure if the introductory CSet has the debugger, which would
make your life a lot easier. But IBM C is ANSI compatible, and the
OS/2 file system is pretty much that used by MSDOS, so you should
be able to port non-windowed programs with no difficulty. You'll
need a DOS compiler, though. OS/2 compilers produce OS/2 binaries.
JWS>Von : jwsh...@starbase.spd.louisville.edu (Sa, 29.01.94 17:23)
JWS>Name: Jeffrey W. Shrode
JWS>MId : jwshro01....@starbase.spd.louisville.edu
JWS>
JWS>I want to learn to program in C. I really like OS/2, but I was not
JWS>sure if Borland C for OS/2 was any good. I believe that I read that
JWS>there are several bugs in C for OS/2. Also, if I get C for OS/2 would
JWS>any of the programs I write work in DOS. I don't like DOS very much,
JWS>but several friends use it. Any comments and suggestions are welcome.
I think that Eberhard Mattes' Port of the GNU C compiler is what you need. The
up-to-date version is EMX-GCC 0.8h, I think. It's free and it's also possible
to produce DOS programs with it. You can find it on Hobbes.
Ciao, Matthias
>Jeff: I think you will find that IBM C Set ++ for OS/2 ver 2.1 is the way to
>go if you want to write os/2 programs. And yes, the code would be compatible,
>just leave off the os/2 specific stuff. After all, C++ is supposed to be C++.
>--
>Later . . .
> . . . Bill
>bill_...@mindlink.bc.ca
>all...@mala.bc.ca
Some OS/2 compilers produce code for DOS as well. Both Watcom and
gcc/EMX have 32bit DOS extenders included. It's much easier to port
from OS/2 to 32bit DOS than to 16bit DOS, after programming in OS/2
one really learns to hate the segmented DOS stuff. And you won't have
to buy a separate DOS compiler to have your DOS-friends use your
programs. (gcc/EMX is actually free, so you won't have to buy anything
at all :-)
Jon Martin Solaas
(jo...@ifi.uio.no)
I really can't recommend you the Borland C++ for OS/2... but,
on the contray, I recommend you the IBM C Set++ FirstStep.
It's a rock-solid C/C++ compiler and it's very cheap!
---
Xavier Caballe - Terrassa (Barcelona, Catalonia, Europe) [* Team OS/2 *]
FidoNet: 2:343/106.12 RIME: ->ABAFORUM Internet: xavier....@abaforum.es
* DeLuxe2 1.25 #11608 * OS/2: No more segments... Flat programming!
----
!--------------------------------------------------------------------!
! * This message was sent from ABAFORUM, Barcelona, SPAIN (Europe) * !
! Fax (34-3) 589.4483 * Host (34-3) 589.3888 * X25 (02145) 233082320 !
!--------------------------------------------------------------------!
>Will
>c...@crash.cts.com
I reply:
Yes, C Set ++ /ver 2.1 has the debugger in it. And yes non-windowed programs
port easily, I've tried it with a few stupid examples and they work fine.