Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Date: Tue, 28 Dec 1999 11:41:25 -0500 From: Christopher Faylor To: Chan Kar Heng Cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: question: c++ extern equivalent.. Message-ID: <19991228114125.A10523@cygnus.com> Reply-To: cygwin AT sourceware DOT cygnus DOT com Mail-Followup-To: Chan Kar Heng , cygwin AT sourceware DOT cygnus DOT com References: <3 DOT 0 DOT 6 DOT 32 DOT 19991228235347 DOT 0082bd40 AT pop DOT SoftHome DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3.0.6.32.19991228235347.0082bd40@pop.SoftHome.net>; from khchan@cyberdude.com on Tue, Dec 28, 1999 at 11:53:47PM +0800 I'm sorry. This is *really* off-topic for this newsgroup. Please try some other forum. You should be able to find any number of C++ related forums at deja.com or egroups.com. cgf On Tue, Dec 28, 1999 at 11:53:47PM +0800, Chan Kar Heng wrote: >hi. > >i'm sorta new to c++... been wondering how i can do the following with >c++... tried looking around, but didn't really find any sort of >documentation for this.. > >to do the following: > >gcc mylib.c -o mylib.o >gcc mylib2.c -o mylib2.o >gcc mylib.o my.ib2.o main.c -o main > >i make mylib.h, mylib2.h and declare functions in mylib.c and mylib2.c >using extern.. something like: > >extern int myfunc(void); > >how about in c++? how do i declare a class? i mean, i can't do this right? > >extern class MyString >{ > ... >}; > > >thanks in advance. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com