<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Compiling a library</title>
<description> Does anyone have any clear instructions on how to build a library using DevKitPro and Programmers notepad?

I&amp;#039;ve been looking around the web but all the answers that I can find to this question are one liners and are written as command lines. I&amp;#039;d like to read some sort of explanation of what needs to be done.

Thanks</description><link>http://forum.wiibrew.org/read.php?11,4797,4797#msg-4797</link><lastBuildDate>Tue, 08 Sep 2026 14:46:33 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,4797,4843#msg-4843</guid>
<title>Re: Compiling a library</title><link>http://forum.wiibrew.org/read.php?11,4797,4843#msg-4843</link><description><![CDATA[ I would recommend against that make file, it will unconditionally rebuild the library file. Add the .a file as a dependency of "all" instead, that way make can do it&#039;s minimum update magic.]]></description>
<dc:creator>henke37</dc:creator>
<category>Coding</category><pubDate>Thu, 11 Dec 2008 19:05:04 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,4797,4839#msg-4839</guid>
<title>Re: Compiling a library</title><link>http://forum.wiibrew.org/read.php?11,4797,4839#msg-4839</link><description><![CDATA[ adding the following line in your Makefile should (in theory, untested)work:<br /><br /><blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />all:<br />powerpc-gekko-ar -rc "output.a" file1.o file2.o ...</div></blockquote><br /><br />@lordzid: it&#039;s a coding help forum, what is obvious for you may be not for others... oh btw, speaking about shared libraries and -static flag on the Wii could make you appears as quite ignorant yourself ;-)<br /><br /><blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />Strange, I didn&#039;t need that flag, i just needed to add a makefile goal for the libX.a file that had the object files as it&#039;s dependency.</div></blockquote><br />according to gcc doc:<br /><br /><blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />`-static&#039;<br />Do not link against shared libraries. T<b>his is only meaningful on<br />platforms for which shared libraries are supported</b>. The different<br />variants of this option are for compatibility with various<br />systems. You may use this option multiple times on the command<br />line: it affects library searching for `-l&#039; options which follow<br />it. This option also implies `--unresolved-symbols=report-all&#039;.<br />This option can be used with `-shared&#039;. Doing so means that a<br />shared library is being created but that all of the library&#039;s<br />external references must be resolved by pulling in entries from<br />static libraries.</div></blockquote>]]></description>
<dc:creator>ekeeke</dc:creator>
<category>Coding</category><pubDate>Thu, 11 Dec 2008 16:44:15 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,4797,4833#msg-4833</guid>
<title>Re: Compiling a library</title><link>http://forum.wiibrew.org/read.php?11,4797,4833#msg-4833</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>henke37</strong><br />Well, given the fact that it&#039;s kinda hard to use shared libraries on this particular platform, I can&#039;t have been using them.</div></blockquote><br />You didn&#039;t say you weren&#039;t using ar.]]></description>
<dc:creator>lordzid</dc:creator>
<category>Coding</category><pubDate>Thu, 11 Dec 2008 15:49:34 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,4797,4832#msg-4832</guid>
<title>Re: Compiling a library</title><link>http://forum.wiibrew.org/read.php?11,4797,4832#msg-4832</link><description><![CDATA[ Well, given the fact that it&#039;s kinda hard to use shared libraries on this particular platform, I can&#039;t have been using them.]]></description>
<dc:creator>henke37</dc:creator>
<category>Coding</category><pubDate>Thu, 11 Dec 2008 15:48:51 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,4797,4831#msg-4831</guid>
<title>Re: Compiling a library</title><link>http://forum.wiibrew.org/read.php?11,4797,4831#msg-4831</link><description><![CDATA[ Well thanks to all of you who tried to help (I&#039;ll check out the link later) and big fuck you to lordzid.<br /><br />I did google it but like I said in op, all I found was a bunch of unhelpful elitist pricks talking in arguments rather than actually explaining anything.]]></description>
<dc:creator>CurlyPaul</dc:creator>
<category>Coding</category><pubDate>Thu, 11 Dec 2008 14:39:49 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,4797,4830#msg-4830</guid>
<title>Re: Compiling a library</title><link>http://forum.wiibrew.org/read.php?11,4797,4830#msg-4830</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>henke37</strong><br />Strange, I didn&#039;t need that flag, i just needed to add a makefile goal for the libX.a file that had the object files as it&#039;s dependency.</div></blockquote><br />Are you invoking &#039;ar&#039; or making shared lib instead?]]></description>
<dc:creator>lordzid</dc:creator>
<category>Coding</category><pubDate>Thu, 11 Dec 2008 11:47:33 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,4797,4827#msg-4827</guid>
<title>Re: Compiling a library</title><link>http://forum.wiibrew.org/read.php?11,4797,4827#msg-4827</link><description><![CDATA[ Strange, I didn&#039;t need that flag, i just needed to add a makefile goal for the libX.a file that had the object files as it&#039;s dependency.]]></description>
<dc:creator>henke37</dc:creator>
<category>Coding</category><pubDate>Thu, 11 Dec 2008 11:43:23 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,4797,4825#msg-4825</guid>
<title>Re: Compiling a library</title><link>http://forum.wiibrew.org/read.php?11,4797,4825#msg-4825</link><description><![CDATA[ Not having the intelligence to do your own research is counterproductive to programming, he needs to learn that now. Holding his hand will only get him hit by a car.<br /><br />If I were CurlyPaul i&#039;d be quite offended at your, frankly rude, evangelicalism.]]></description>
<dc:creator>lordzid</dc:creator>
<category>Coding</category><pubDate>Thu, 11 Dec 2008 10:57:02 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,4797,4824#msg-4824</guid>
<title>Re: Compiling a library</title><link>http://forum.wiibrew.org/read.php?11,4797,4824#msg-4824</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>lordzid</strong><br />-static is a linker flag. If you can&#039;t figure it out from there, perhaps you should pursue a career in the arts instead.</div></blockquote><br />That is about the most unhelpful, rude comment I&#039;ve seen on this forum; how about you help the guy instead of acting like a know-it-all jackass?<br /><br />Anyway CurlyPaul, this post might be help to you:<br />[<a href="http://forum.wiibrew.org/read.php?11,2815,2870" rel="nofollow">forum.wiibrew.org</a>]]]></description>
<dc:creator>DrTwox</dc:creator>
<category>Coding</category><pubDate>Thu, 11 Dec 2008 10:43:32 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,4797,4823#msg-4823</guid>
<title>Re: Compiling a library</title><link>http://forum.wiibrew.org/read.php?11,4797,4823#msg-4823</link><description><![CDATA[ -static is a linker flag. If you can&#039;t figure it out from there, perhaps you should pursue a career in the arts instead.]]></description>
<dc:creator>lordzid</dc:creator>
<category>Coding</category><pubDate>Thu, 11 Dec 2008 10:21:44 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,4797,4821#msg-4821</guid>
<title>Re: Compiling a library</title><link>http://forum.wiibrew.org/read.php?11,4797,4821#msg-4821</link><description><![CDATA[ @Tantric - I have some fucnctions that I wrote and I want to put them in a library so that I can re-use them.<br /><br />@lordzid - Does that go in the makefile somewhere? and will it give me a file with the &#039;a&#039; extension that I can put in the libogc folder and reference from future projects?]]></description>
<dc:creator>CurlyPaul</dc:creator>
<category>Coding</category><pubDate>Thu, 11 Dec 2008 10:09:25 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,4797,4812#msg-4812</guid>
<title>Re: Compiling a library</title><link>http://forum.wiibrew.org/read.php?11,4797,4812#msg-4812</link><description><![CDATA[ -static]]></description>
<dc:creator>lordzid</dc:creator>
<category>Coding</category><pubDate>Thu, 11 Dec 2008 07:03:30 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,4797,4811#msg-4811</guid>
<title>Re: Compiling a library</title><link>http://forum.wiibrew.org/read.php?11,4797,4811#msg-4811</link><description><![CDATA[ Are you meaning to write your own "library" or cross-compile an existing one?]]></description>
<dc:creator>Tantric</dc:creator>
<category>Coding</category><pubDate>Thu, 11 Dec 2008 06:53:05 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,4797,4797#msg-4797</guid>
<title>Compiling a library</title><link>http://forum.wiibrew.org/read.php?11,4797,4797#msg-4797</link><description><![CDATA[ Does anyone have any clear instructions on how to build a library using DevKitPro and Programmers notepad?<br /><br />I&#039;ve been looking around the web but all the answers that I can find to this question are one liners and are written as command lines. I&#039;d like to read some sort of explanation of what needs to be done.<br /><br />Thanks]]></description>
<dc:creator>CurlyPaul</dc:creator>
<category>Coding</category><pubDate>Wed, 10 Dec 2008 23:57:46 +0100</pubDate></item>
</channel>
</rss>