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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:04:39+00:00 2026-06-01T02:04:39+00:00

I declare an obj : #include abc.h class xxx { public: xxx(); ~xxx(); abc*

  • 0

I declare an obj :

#include "abc.h"

class xxx
{
public: 
  xxx();
  ~xxx();
  abc* q;
...
};

in the .cpp file i do the following

this->q=new abc(); <-error on this line with undefined reference to abc::abc()

In the console it also appears this error:

Dwarf Error: Offset (76195) greater than or equal to .debug_str size
(1472).

anyone knows what could be wrong? i’m using eclipse, fedora 14

  • 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-01T02:04:40+00:00Added an answer on June 1, 2026 at 2:04 am

    undefined reference to abc::abc()

    It is an Linking error which tells you that the linker could not find the definition for abc::abc().

    Most likely, You only declared but did not define the no argument constructor for class abc.
    In your cpp file you should have:

    abc::abc()
    {
    
    }
    

    If you already have it in place then, You should ensure that the source cpp file which has this definition is being properly linked to your project.

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

Sidebar

Related Questions

I have this .h file #ifndef VISUALSETTINGS_H #define VISUALSETTINGS_H #include <QPair> #include <QDataStream> class
Right now, I have to do this private delegate void set(int obj); //declare the
#include <iostream> #include <fstream> using namespace std; class binaryOperators { public: int i; binaryOperators
My problem is in the following context : file1.h #include graphwnd.h #include file2.h class
I have this class with variable configuration parameters. I want to include it in
1>GameWinMain.obj : error LNK2005: bool __cdecl BPredicate(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct
Consider the sample code below: #include <iostream> using namespace std; class core { public:
i have a sub with this signature Public Sub Save(ByVal obj As IPta) now
Consider an object declared in a method: public void foo() { final Object obj
Declare: LPWSTR** lines= new LPWSTR*[totalLines]; then i set using: lines[totalLines]=&totalText; SetWindowText(totalChat,(LPWSTR)lines[totalLines]); totalLines++; Now I

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.