LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 01-24-2011, 02:04 AM   #1
chinho
Member
 
Registered: Dec 2010
Distribution: fedora, openSUSE
Posts: 49

Rep: Reputation: 1
What is a Dwarf error? Got it while compiling c++


Hi guys,

I got the below error
/usr/bin/ld: Dwarf Error: Offset (1195) greater than or equal to .debug_str size (320)

What exactly does it mean?

I got it while compiling my c++ sources, at the linking phase.

Warmest Regards,
Chinho
 
Old 01-24-2011, 07:35 PM   #2
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,014

Rep: Reputation: 115Reputation: 115
DWARF is the name of the format for debugging information that GCC uses. Try doing a clean rebuild, and also check your build dependencies. This could be interference from newly rebuilt code and stale code that isn't being properly rebuilt.
 
Old 01-26-2011, 09:24 PM   #3
chinho
Member
 
Registered: Dec 2010
Distribution: fedora, openSUSE
Posts: 49

Original Poster
Rep: Reputation: 1
Alright, thansk for the explanation.

I managed to solve this error. My problem was

I had a function declaration in a .hpp in a class

Code:
class aclass
{
    public:
    void myfunc();
};
Then, in my .cpp where i include my header file and also my implementation of myfunc(), I had the below (which is wrong)

Code:
#include my.hpp

void myfunc() //this line is WRONG, I should use void aclass::myfunc() instead
{
    //do something here
}
And all is well now. Cheers!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xinelib compile failure Fedora 11 - /usr/bin/ld: Dwarf Error rylan76 Linux - Software 3 07-18-2009 01:49 PM
dwarf error:cannot handle dwarf error rjeyakodi Linux - Software 0 06-12-2009 12:27 AM
GDB Dwarf error no debuging symbols found niteshg Programming 3 10-10-2008 03:51 AM
Getting basic usb to work under White Dwarf Linux spencerwaterman Linux - General 1 01-22-2005 02:40 PM
gdb complains about dwarf error bdc79 Linux - Software 0 09-16-2004 12:09 AM


All times are GMT -5. The time now is 11:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration