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 8459875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:26:56+00:00 2026-06-10T13:26:56+00:00

I have an abstract class called LibItem, and a DVD class that is derived

  • 0

I have an abstract class called LibItem, and a DVD class that is derived from this class.

Here is my code:

DVD.h:

//---------------------------------------------------------------------------

#ifndef DVDH
#define DVDH

class DVD : public LibItem
{
public:
    DVD(const std::string&, const std::string&, const std::string&, const std::string&, const std::string&, const std::string&, int, const std::string&, const std::string&, const std::string&);
    void setRunningTime(int RunningTimeDetails);
    int getRunningTime();
    void setDirector(const std::string&);
    std::string getDirector();
    void setStudio(const std::string&);
    std::string getStudio();
    void setProducer(const std::string&);
    std::string getProducer();
    void PrintDetails();

private:
    DVD();
    int RunningTime;
    std::string Director;
    std::string Studio;
    std::string Producer;

};


//---------------------------------------------------------------------------
#endif

DVD.cpp:

//---------------------------------------------------------------------------

#pragma hdrstop

#include "DVD.h"

DVD::DVD(const std::string& setItemTitle, const std::string& setItemAuthor, const std::string& setItemReleaseDate, const std::string& setItemCopyright, const std::string& setItemGenre, const std::string& setItemStatus, int setItemRunningTime, const std::string& setItemDirector, const std::string& setItemStudio, const std::string& setItemProducer)
{
setDetails(setItemTitle, setItemAuthor, setItemReleaseDate, setItemCopyright, setItemGenre, setItemStatus);
setRunningTime(setItemRunningTime);
setDirector(setItemDirector);
setStudio(setItemStudio);
setProducer(setItemProducer);
}
void DVD::setRunningTime(int RunningTimeDetails)
{
RunningTime = RunningTimeDetails;
}
int DVD::getRunningTime()
{
return RunningTime;
}
void DVD::setDirector(const std::string& DirectorDetails)
{
Director = DirectorDetails;
}
std::string DVD::getDirector()
{
return Director;
}
void DVD::setStudio(const std::string& StudioDetails)
{
Studio = StudioDetails;
}
std::string DVD::getStudio()
{
return Studio;
}
void DVD::setProducer(const std::string& ProducerDetails)
{
Producer = ProducerDetails;
}
std::string DVD::getProducer()
{
return Producer;
}
void DVD::PrintDetails()
{
cout << "Title: " << getTitle() << endl;
cout << "Author: " << getAuthor() << endl;
cout << "Release Date: " << getReleaseDate() << endl;
cout << "Copyrite: " << getCopyright() << endl;
cout << "Genre: " << getGenre() << endl;
cout << "Status: " << getStatus() << endl;
cout << "Running Time: " << getRunningTime() << endl;
cout << "Director: " << getDirector() << endl;
cout << "Studio: " << getStudio() << endl;
cout << "Producer: " << getProducer() << endl;
}

//---------------------------------------------------------------------------
#pragma package(smart_init)

I am getting this error:

[ILINK32 Error] Error: Unresolved external ‘DVD::DVD(std::basic_string, std::allocator >&, std::basic_string, std::allocator >&, std::basic_string, std::allocator >&, std::basic_string, std::allocator >&, std::basic_string, std::allocator >&, std::basic_string, std::allocator >&, int, std::basic_string, std::allocator >&, std::basic_string, std::allocator >&, std::basic_string, std::allocator >&)’ referenced from H:\2012\TRIMESTER 2\IT6253 – C++ PROGRAMMING\ASSESMENT\QUESTION 5\WIN32\DEBUG\QUESTION 5.OBJ

Can I please have some help in fixing this error?

  • 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-10T13:26:58+00:00Added an answer on June 10, 2026 at 1:26 pm

    You are missing DVD.o from your linking.
    If you post the way you link your program or your Makefile file I will tell you where and how to add it.

    In general, let’s say your program consists of main.cpp file, and it includes your DVD.h, as well as other headers. Let’s also assume that you compile (and link) it using command:

    g++ main.cpp -o myprogram
    

    In order to be able to have the DVD body available in your program you need to do:

    g++ main.cpp DVD.cpp -o myprogram
    

    Of course your Makefile, if you use it, may differ, and you may see something like this in the place where you link your myprogram code: g++ main.o -o myprogram. In this case you need to find where you build main.o, and do the same for DVD.o.

    I hope it will help.

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

Sidebar

Related Questions

I have a class that inherits from Page, called APage. public abstract class APage:
For example, I have a class called Clothing that inherits from a abstract class
I have an abstract class called DatabaseRow that, after being derived and constructed, is
Let say I have abstract class called: Tenant and Customer. The tenant in this
I have an abstract class called Node . It contains a constructor that takes
I have an abstract base class called Curve . There are three classes that
I have one abstract class named contact and another class called client that inherits
Let's say I have an abstract parent class called shape, and that there are
I have an abstract class called Fruit. I then have a derived class called
The story goes like this: I have an abstract class called Algorithms and a

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.