www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/13/12:17:12

From: Endlisnis <s257m AT unb DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: #pragma interface
Date: Sun, 13 Sep 1998 12:35:41 -0300
Organization: NBTel Internet
Lines: 15
Message-ID: <35FBE64D.12EF6970@unb.ca>
NNTP-Posting-Host: fctnts08c48.nbnet.nb.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'm trying to use interface and implementation to make my h files into
libraries.  I have a file "Svga.h".  I added "#pragma interface" before any of
the code.  I then made "Svga.cc" which only has:
#pragma implementation "Svga.h"
#include "Svga.h"

I then build a library out of that, but when I try to use the library, I get
"multiple declaration" errors for every function in the h file.  Has anyone
here used interfaces succesfully?  What am I doing wrong?
-- 
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT GeoCities DOT com
          Endlis AT nbnet DOT nb DOT ca

- Raw text -


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