delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/12/28/10:48:14

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <3.0.6.32.19991228235347.0082bd40@pop.SoftHome.net>
Date: Tue, 28 Dec 1999 23:53:47 +0800
To: cygwin AT sourceware DOT cygnus DOT com
From: Chan Kar Heng <khchan AT cyberdude DOT com>
Subject: question: c++ extern equivalent..
Mime-Version: 1.0

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.





--------------------------------------------
i don't suffer from stress... i'm a carrier.
http://home.backroom.net/~bozo

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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