www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/27/19:24:17

Newsgroups: comp.os.msdos.djgpp
From: Mike Habicher <MHABICHE AT ELECOM2 DOT Watstar DOT UWaterloo DOT CA>
Subject: Problem linking multi-file program with templates
Sender: news AT novice DOT uwaterloo DOT ca (Mr. News)
Message-ID: <32ED3279.36EC@ELECOM2.Watstar.UWaterloo.CA>
Date: Mon, 27 Jan 1997 22:55:53 GMT
Reply-To: mhabiche AT novice DOT uwaterloo DOT ca
Nntp-Posting-Host: lunamoth.watstar.uwaterloo.ca
Mime-Version: 1.0
Organization: University of Waterloo
Lines: 28
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'm having a problem convincing DJGPP to link a program of mine.

The structure of the program is a header file which contains a class
declaration.
The class uses a template.  This header is then included in a file which
defines
the member functions of the class, and in a program file designed to
exercise
the functionality of the class.

All the files compile properly, but when I go to link them, I get a
whole string
of error messages complaining about unresolved functions [all of them
are calls
to the class member functions].

I was wondering if anyone could tell me if there are any command line
switches
or other special considerations I need to implement to address this
problem.  I've
been through this newsgroup and the FAQ to no avail.

Any help you can provide would be greatly appreciated, especially if you
Email a
reply.  [It might be a while before I get back here.]

Thanks in advance,
  --Mike. :)

- Raw text -


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