delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/29/21:09:53

Newsgroups: comp.os.msdos.djgpp
From: Mike Habicher <MHABICHE AT ELECOM2 DOT Watstar DOT UWaterloo DOT CA>
Subject: Linking Multi-File Project w/Templates
Sender: news AT novice DOT uwaterloo DOT ca (Mr. News)
Message-ID: <32EFCB46.11FC@ELECOM2.Watstar.UWaterloo.CA>
Date: Wed, 29 Jan 1997 22:12:22 GMT
Nntp-Posting-Host: centiped.watstar.uwaterloo.ca
Mime-Version: 1.0
Organization: University of Waterloo
Lines: 25
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I still can't get ld to link my multi-file
project.  The project involves a class that
has its declarations stored in a .h file,
which is included in two C++ files: the first
one containing the actual code of the class'
member functions, and the second one which is
supposed to exercise the class to locate any
possible coding errors.

The class uses templates, and while the source
files compile without errors, I get a whole
bunch of "unresolved" errors when I try to link
them together.

Is there some sort of parameter I need to
specify during the compile to get templates
to compile properly?  Or some modification I
need to make to source files?

The documentation that comes with  DJGPP and
the FAQ have been of no help.

This is URGENT!!
Thanks,
  --Mike. :)

- Raw text -


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