delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2012/05/28/18:15:19

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Rugxulo <rugxulo AT gmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: vector.h
Date: Mon, 28 May 2012 14:52:49 -0700 (PDT)
Organization: http://groups.google.com
Lines: 36
Message-ID: <9f06ed1a-b139-4d38-9918-9781f321d2e0@x10g2000yqg.googlegroups.com>
References: <a141b2cd-d68f-4215-9796-e51762c21510 AT f30g2000vbz DOT googlegroups DOT com>
NNTP-Posting-Host: 65.13.115.246
Mime-Version: 1.0
X-Trace: posting.google.com 1338242074 12801 127.0.0.1 (28 May 2012 21:54:34 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Mon, 28 May 2012 21:54:34 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: x10g2000yqg.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16
(KHTML, like Gecko) Chrome/10.0.630.0 Safari/534.16,gzip(gfe)
Bytes: 2279
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q4SMF1OO017952
Reply-To: djgpp AT delorie DOT com

Hi,

On May 28, 3:31 pm, Georg <dos DOT  DOT  DOT  AT googlemail DOT com> wrote:
>
> I try to port a Linux program that includes <vector.h>. This file is
> not in my djgpp include directory.
>
> Do I need to download a library that provides this header and its
> functions for djgpp? Or what should I do?

A quick search finds this topic on Stack Overflow, which says this:

http://stackoverflow.com/questions/6729428/cannot-open-include-file-vector-h-no-such-file-or-directory

> You need to use
>
> #include <vector>
>
> instead, without the .h file extension. Furthermore, the vector
> template lives in the std namespace, so you should define
> your vector like
>
> std::vector<vtarg> targVector;
>
> Also make sure to include whatever headers are necessary for vtarg.

P.S. "find /djgpp -iname 'vector*' " gives me this:

/djgpp/include/cxx/4.63/bits/vector.tcc
/djgpp/include/cxx/4.63/debug/vector
/djgpp/include/cxx/4.63/profile/vector
/djgpp/include/cxx/4.63/vector

So it's there, I guess, but beyond that I don't know (as I'm not into C
++).

- Raw text -


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