delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/17/11:35:15

Date: Fri, 17 Mar 2000 09:30:48 -0600
From: Weiqi Gao <weiqi DOT gao AT edwardjones DOT com>
Subject: Re: Differences between DJGPP & Visual C++
To: djgpp AT delorie DOT com
Message-id: <38D24FA8.47C7925F@edwardjones.com>
Organization: Edward Jones
MIME-version: 1.0
X-Mailer: Mozilla 4.51 [en]C-CCK-MCD (WinNT; U)
X-Accept-Language: en
References: <20000316232148 DOT 13563 DOT 00000081 AT ng-fm1 DOT aol DOT com>
Reply-To: djgpp AT delorie DOT com

RoadRaat wrote:
> 
> Hi,
> 
> I'm a C++ student.  In class we develop our C++ projects on MS Visual C++.  I
> use DJGPP on my notebook at home.  I'm baffled by some of the differences.
> I've been reading the documentation, but I can't find everything I'm looking
> for.  Would a kind person please clear  up some of these questions?

Sure.

> 1. Does DJGPP lack the Standard Header Files that are current for?  (Must I use
> <iostream.h> instead of <iostream> and <iomanip.h> instead of <iomanip>?)

You can use
 #include <iostream>
, although not _all_ standard C++ headers are present at the current
time.

> 2. If #1 is Yes, does that mean I can't be referring to namespaces (like 'using
> namespace std;')?

"using namespace std;" works.

> I'm having trouble figuring out libraries and headers.  If I can make sense out
> of this, then I can make versions of my exercises for home and for school.

As long as you use standard C++, you should have minimal trouble doing
that.  If you use GNU entensions or Microsoft extensions, then you have
to mark them with #ifdef's.

> Thanks for anybody's help.

More help on C++ can be gotten by reading the C++ FAQ, the GCC FAQ and
the DJGPP FAQ.

--
Weiqi Gao
weiqigao AT a DOT crl DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019