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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:12:17+00:00 2026-05-29T15:12:17+00:00

enter code here i am using dev c++ for my programming. as i am

  • 0
enter code here

i am using dev c++ for my programming. as i am using some library developed on dev c++ i want to use the same compiler.

for my own dev project, i wanted some new classes. so i have added 2 classes "TriangleLists, TriangleList" (h file and cpp files) to the library. when i compiled the library it worked without any error and able to create new library file. but, when i am compiling my own project i got the linker error problem.

[Linker error] undefined reference to `TriangleLists::Erase()' 
[Linker error] undefined reference to `TriangleList::TriangleList(TriangleList const&)' 
[Linker error] undefined reference to `TriangleList::operator=(TriangleList const&)' 
ld returned 1 exit status 

actually, in the library there were similar classes called RectangleList, RectangleLists.. so, i copied those 2 classes and modify to fit with my class TriangleList.

any suggestion to solve this please. thanks in advance,

  • 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-05-29T15:12:17+00:00Added an answer on May 29, 2026 at 3:12 pm

    Is class TriangleLists made by you or does it belong to the library?

    Often a class object is not intended to be copied, and just cannot be done. To prevent library users to copy uncopyable objects creator may declare copy constructor and assignment operator (usually as private), but omit the the definition. If this is the case then just don’t copy objects, and don’t use them in a way that involves copying (like putting them in some std container). You may create objects on the heap and put pointers to those objects to a container.

    EDIT: If those are your classes then answer is simple. Add function Erase to class TriangleLists and add copy constructor and assignment operator to class TriangleList. Since you’re copying functionality from similar class RectangleList search for its copy constructor and assignment operator, RectangleList::RectangleList(RectangleList const&) and RectangleList::operator=(RectangleList const&).

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

Sidebar

Related Questions

enter code here I have a table on SQL server 2005 with bigint primary
enter code here Hi All, I have a simple windows service application that connects
enter code hereHiya, so far I didn't use JSP at all and I find
I let user enter some code in my Flex3 (Flash 10) app and I
I am writing a terminal emulator in ruby using the PTY library. /dev/tty0 is
enter code here hi. i am trying to implment custom paging in datalist control
I have the following entry in my c:\Oracle\product\11.1.0\network\ADMIN\TNSNAMES.ORA file. enter code here pvtest.world =
enter code hereIn my Application I am using Sqlite as an externel data base.
enter link description here enter code here My problem is that the radio buttons
I have a very small form where a user can enter their zip code

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.