www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/21/04:23:14

From: Mordo Ezagouri <mordo AT yarden DOT yarden DOT ac DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: DJGPP and STL
Date: Thu, 21 Nov 1996 05:11:54 +0200
Organization: Jordan Valley Academic College
Lines: 25
Message-ID: <3293C87A.7AEF@yarden.yarden.ac.il>
NNTP-Posting-Host: pc33.yarden.ac.il
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Can someone help me using STL with DJGPP ?

Here is my sample program (vector.cpp):

#include <stl.h>

int main()
{
	vector<int> v(10);
	return 0;
}

I get a linking error:
vector.cc(.text+0xa0f): undefined reference to 'operator new(unsigned
long, void *)'

The same source is OK with Borland C++ 4.52, 5.01 and g++ on Linux 2.0.0
so what's wrong ?

Thanks in advance

Mordo Ezagouri
Lan Administrator
Computer department 
Jordan Valley Academic College - 15132 - ISRAEL

- Raw text -


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