public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Paulo Cortes <cortes@uiuc.edu>
To: gcc-help@gcc.gnu.org
Subject: error: redefinition of `class Array<T>'
Date: Mon, 27 Oct 2003 20:30:00 -0000	[thread overview]
Message-ID: <3F9DAB2A.8020205@uiuc.edu> (raw)

Hi

I am building an Array group of classes, I have base Array class with
derived vector, matrix and cube. Each derived class works fine separately,
but if I combine them in a program I get:

error: redefinition of `class Array<T>'

this happend beacuse when I :

#include <vector.h>
#include <matrix.h>
#include <cube.h>


array.h get included too, so the compiler triggers the error. The 
problem is that I have to include
array.h into the matrix, vector and cube header files in order to use 
the array base class.
Any help would be apprecciated. Many thanks

Paulo

             reply	other threads:[~2003-10-27 20:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-27 20:30 Paulo Cortes [this message]
2003-10-27 20:36 lrtaylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F9DAB2A.8020205@uiuc.edu \
    --to=cortes@uiuc.edu \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).