Visit the LQ Articles and Editorials section
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 01-24-2011, 01:04 AM   #1
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,
Old 01-24-2011, 06:35 PM   #2
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, 08:24 PM   #3
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

class aclass
    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)

#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!


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 12:49 PM
dwarf error:cannot handle dwarf error rjeyakodi Linux - Software 0 06-11-2009 11:27 PM
GDB Dwarf error no debuging symbols found niteshg Programming 3 10-10-2008 02:51 AM
Getting basic usb to work under White Dwarf Linux spencerwaterman Linux - General 1 01-22-2005 01:40 PM
gdb complains about dwarf error bdc79 Linux - Software 0 09-15-2004 11:09 PM

All times are GMT -5. The time now is 05:14 PM.

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