www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/02/23:51:18

From: Endlisnis <s257m AT unb DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Template Question...
Date: Wed, 03 Mar 1999 00:03:28 -0400
Organization: BrunNet
Lines: 37
Message-ID: <36DCB490.57DF6C75@unb.ca>
References: <7bhohk$l6f$1 AT news3 DOT infoave DOT net> <7bhop7$lo0$1 AT news3 DOT infoave DOT net> <7bi1fe$o9o$1 AT news3 DOT infoave DOT net>
NNTP-Posting-Host: ftnts2c4.brunnet.net
Mime-Version: 1.0
X-Mailer: Mozilla 4.04 [en] (Win95; U)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Paganini wrote:

> Paganini <Nathan E. Banks> <paganini AT madisontelco DOT com> wrote
>
> <snip>
>
> I've got to stop replying to myself like this... :)
>
> Hehe...silly me...I forgot that windows likes to put filename extensions in
> uppercase...that was the problem.
>
> However, I do have a question about separate compilation. Under TC++ 4.5,
> you put the definition of a class in a header file (classsname.h) by
> itself...then you put the code for the functions in a source (classname.cpp)
> file. To actually use the class in your program, you #include the header in
> the program code file (main.cpp) and in the source file (classname.cpp) for
> the class. You create a project that includes the source files for the class
> and the program...then you compile and link them.
>
> I tried this in DJGPP, but I get errors that say the functions are
> undefined. Is there a way to implement this kind of separate compilation
> with DJGPP?

    I think there are some limitations with DJGPP and template compiling.
[AFAIK] you can precompile template stuff in DJGPP.  You may need to include the
"cpp" in your program.

--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT GeoCities DOT com
          Endlisnis AT BrunNet DOT Net
          Endlisnis AT HotMail DOT com




- Raw text -


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