Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8783437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:49:50+00:00 2026-06-13T20:49:50+00:00

I´m new to c++. i´m getting an error Symbol ‘List’ could not be resolved

  • 0

I´m new to c++. i´m getting an error “Symbol ‘List’ could not be resolved”
I´m working on eclipse i can´t figure out what is the problem…

List.h here is the declaration of the father class which is a generic class, which Vector
will inherit

#ifndef LIST_H_
#define LIST_H_

template <class E> class List {
protected:
    int size;

public:
    virtual ~List();
    virtual void add(E o) = 0;
    virtual E get(int index) = 0;
    int getSize();
};

template <class E> List<E>::~List() {
}

template <class E> int List<E>::getSize() {
    return size;
}

#endif /* LIST_H_ */

Vector.h Vector header file, which inherits from List, and it will implement the pure virtual methods of List
im getting the error, when i inherit from List, in the class declaration of Vector, “Symbol ‘List’ could not be resolved”

#include "List.h"
template <class E> class Vector: public List<E>{
private:
    class Node {
    public:
        E value;
        Node* next;
        Node(E value): value(value), next(0) {}
    };

    typedef Node* PNode;
    PNode first;

public:
    Vector();
    virtual ~Vector();
    void add(E o);
    E get(int index);
    virtual void add(E o);
    virtual E get(int index);
};
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:49:51+00:00Added an answer on June 13, 2026 at 8:49 pm

    Quick search on google yelds that Symbol ‘List’ could not be resolved is not a compilation error, it’s (stupid) eclipse is trying to rebuild a cross reference for you. Try a menu command Index->Rebuild.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hi im new to c# and was trying to code but getting error can
I am getting these two errors. Error: Could not find or load main class
I am getting this compilation error: cannot find symbol Constructor JSONObject(java.lang.String) Can any one
I am getting this error when a new user account is getting created: ActiveRecord::StatementInvalid
New to android programming. Getting Following error. 04-07 14:49:05.452: ERROR/AndroidRuntime(1566): FATAL EXCEPTION: main java.lang.OutOfMemoryError
I am new to php and I am getting this error trying to load
I'm new to AS3 and I'm getting this error while trying to implement OO
Is it possible to create a new document instead of getting an error when
I'm getting a 403 error on my new rails testing page: removed.com:8080. I installed
I'm getting a compiler error for this line: Collections.sort(terms, new QuerySorter_TFmaxIDF(myInteger)); My customized Comparator

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.