https://community.kde.org/index.php?title=Guidelines_and_HOWTOs/Debugging/Linker_Errors&feed=atom&action=historyGuidelines and HOWTOs/Debugging/Linker Errors - Revision history2024-03-28T13:07:32ZRevision history for this page on the wikiMediaWiki 1.40.2https://community.kde.org/index.php?title=Guidelines_and_HOWTOs/Debugging/Linker_Errors&diff=53618&oldid=prevOchurlaud: Ochurlaud moved page Development/Tutorials/Debugging Linker Errors to Guidelines and HOWTOs/Debugging/Linker Errors2016-03-11T12:32:45Z<p>Ochurlaud moved page <a href="/Development/Tutorials/Debugging_Linker_Errors" class="mw-redirect" title="Development/Tutorials/Debugging Linker Errors">Development/Tutorials/Debugging Linker Errors</a> to <a href="/Guidelines_and_HOWTOs/Debugging/Linker_Errors" title="Guidelines and HOWTOs/Debugging/Linker Errors">Guidelines and HOWTOs/Debugging/Linker Errors</a></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 12:32, 11 March 2016</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Ochurlaudhttps://community.kde.org/index.php?title=Guidelines_and_HOWTOs/Debugging/Linker_Errors&diff=53571&oldid=prevOchurlaud: 2 revisions imported2016-03-11T12:31:55Z<p>2 revisions imported</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 12:31, 11 March 2016</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Ochurlaudhttps://community.kde.org/index.php?title=Guidelines_and_HOWTOs/Debugging/Linker_Errors&diff=53570&oldid=prev*>AnneW at 16:27, 19 July 20122012-07-19T16:27:50Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 16:27, 19 July 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">{{Template:I18n/Language Navigation Bar|Development/Tutorials/Debugging Linker Errors}}</del></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{TutorialBrowser|</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{TutorialBrowser|</div></td></tr>
</table>*>AnneWhttps://community.kde.org/index.php?title=Guidelines_and_HOWTOs/Debugging/Linker_Errors&diff=53569&oldid=prevDfaure: Tell people how to debug undefined symbols2010-09-29T22:30:19Z<p>Tell people how to debug undefined symbols</p>
<p><b>New page</b></p><div>{{Template:I18n/Language Navigation Bar|Development/Tutorials/Debugging Linker Errors}}<br />
<br />
{{TutorialBrowser|<br />
<br />
series=Getting Started|<br />
<br />
name=Debugging Linker Errors|<br />
<br />
}}<br />
<br />
== Abstract ==<br />
<br />
This tutorial gives precise steps for debugging issues related to linking of applications and libraries.<br />
<br />
== Undefined symbol ==<br />
<br />
When the linker says undefined reference to 'Foo', and you don't understand why, follow the following steps:<br />
<br />
* Check that the library that is supposed to provide this symbol is actually in the link line. To see the full link line with cmake, use <tt>make VERBOSE=1</tt>. If -lkdecore is the link line, then we're at least asking the linker to link to libkdecore.<br />
* Check that the right version of the library is linked in, rather than one from the wrong place. To see which library is actually used by ld, copy/paste the full link line from <tt>make VERBOSE=1</tt>, and add to it: <tt>-Q -v -Wl,-t</tt>. Somewhere in the verbose output you'll see the full path to each library being used.<br />
* Check that the library actually provides the symbol. <tt>nm -D -C /path/to/lib.so | grep Foo</tt> will tell you. If the symbol shows up with a 'T' or a 'W' in the second column, then it is indeed provided by the library. If it shows up with a 'U' then it is undefined in this library, and is supposed to be provided by another.</div>Dfaure