delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/29/10:46:21

From: "Matthew Conte" <spam AT somebody DOT else>
Newsgroups: comp.os.msdos.djgpp
Subject: STL unsupported by djgpp?
Date: Wed, 29 Apr 1998 10:42:48 -0400
Organization: Netcom
Lines: 33
Message-ID: <6i7e2v$hvk@sjx-ixn6.ix.netcom.com>
NNTP-Posting-Host: alb-ny6-49.ix.netcom.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Forgive me if this has been asked before, but I've been having considerable
problems compiling a (somewhat) simple program under djgpp, that compiles
perfectly under gcc under UNIX.

My problem is that I define an STL priority_queue using a vector of pointers
to Events, a class that I've created, like this:

    priority_queue<vector<Event *>, greater<Event *> > theEvents;

This works *fine* in UNIX, but when I try to compile under djgpp, I get this
error:

c:/djgpp/lang/cxx/heap.h: In function `void __push_heap_aux(class Event **,
class Event **, struct greater<Event *>, class Event **)':
c:/djgpp/lang/cxx/heap.h:57: type unification failed for function template
`template <class RandomAccessIterator, class Distance, class T> void
__push_heap(RandomAccessIterator, Distance, Distance, T)'


This sucks.  I've tried gcc/gxx 2.7.2.1, 2.8.0, and PGCC.  2.7.2.1 and 2.8.0
both give the same error.  PGCC gives me pages and pages, and I don't even
want to go into how it bombs out of compilation.  Does PGCC not even support
STL?

Has anyone else had this problem?  I know it's not my installation, because
I've installed fresh from the distfiles.

Any help would be appreciated, just post here, my e-mail address is munged.

Later,
Matt.


- Raw text -


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