This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

question: c++ extern equivalent..


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@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]