| www.delorie.com/archives/browse.cgi | search |
| From: | "Walter Wiedmann" <walter DOT wiedmann AT gmx DOT de> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Compilerproblem (templates) |
| Date: | Mon, 12 Aug 2002 11:30:36 +0000 (UTC) |
| Organization: | Mailgate.ORG Server - http://www.Mailgate.ORG |
| Lines: | 47 |
| Message-ID: | <ba44844780b8b21457a3241c0953ddcc.106023@mygate.mailgate.org> |
| NNTP-Posting-Host: | 213.240.161.106 |
| X-Trace: | news.mailgate.org 1029131792 25384 213.240.161.106 (Mon Aug 12 13:30:35 2002) |
| X-Complaints-To: | abuse AT mailgate DOT org |
| NNTP-Posting-Date: | Mon, 12 Aug 2002 11:30:36 +0000 (UTC) |
| Injector-Info: | news.mailgate.org; posting-host=213.240.161.106; posting-account=106023; posting-date=1029131792 |
| User-Agent: | Mailgate Web Server |
| X-URL: | http://mygate.mailgate.org/mynews/comp/comp.os.msdos.djgpp/ba44844780b8b21457a3241c0953ddcc.106023%40mygate.mailgate.org |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Hello,
sorry for my bad english, but I have o question.
I have a following programm, and canīt copiele with gpp from DJGPP. Can
me sameown say, how is my error, respectively with parameter I must gpp
give.
code:
test.cc--------------------------------------
#include <Rational.h>
#include <vector>
int main()
{
return 0;
}
-------------------------------------------
Runing the compiler with:
gcc test.cc
and receive following error messages:
-------------------------------------------------------------
In file included from c:/djgpp/lang/cxx/vector.h:19,
from c:/djgpp/lang/cxx/vector:6,
from test.cc:2:
c:/djgpp/lang/cxx/function.h:91: `template class negate' redeclared a
different kind of symbol
c:/djgpp/lang/cxx/Integer.h:459: previous declaration of `void
negate(const cla
s Integer &, class Integer &
<http://www.fun-soft.de//forum/images/icon/wink_new.gif> '
---------------------------------------------------------------
Thank you
Walter
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
| webmaster | delorie software privacy |
| Copyright Đ 2019 by DJ Delorie | Updated Jul 2019 |