<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>How to load a dol into memory and launch it</title>
<description> Hi, I&amp;#039;m working on a launcher for wiicraft with version selection etc. And I wonder if its possible to launch a dol within a dol. Also free the memory that the launcher used. Thanks :)</description><link>http://forum.wiibrew.org/read.php?11,73473,73473#msg-73473</link><lastBuildDate>Mon, 13 Jul 2026 09:02:56 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,73473,74626#msg-74626</guid>
<title>Re: How to load a dol into memory and launch it</title><link>http://forum.wiibrew.org/read.php?11,73473,74626#msg-74626</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>filfat</strong><br />WiinterSomthing has talked this and its a bug in GCC or Devkitppc. So nope i havent done anything wrong XD</div></blockquote><br />Sorry for bringing up this old thread but I don&#039;t think the linking problem is due to a bug with the compiler as I got a similar error when trying to link a library I wrote in C to a C++ project until I added extern "C" and placed my external function prototypes within it.<br /><br />Basically, you are supposed to declare your external C functions like this:<br /><pre class="bbcode">
#ifdef __cplusplus
extern "C" {
#endif

extern void __exception_setreload(int t);
extern void __exception_closeall();
extern const u8 app_booter_bin[];
extern const u32 app_booter_bin_size;

#ifdef __cplusplus
}
#endif</pre>
So that the C++ compiler will treat them as C functions which is what the object file you are trying to link to (app_booter.bin.o) contains.]]></description>
<dc:creator>TheCodingBrony</dc:creator>
<category>Coding</category><pubDate>Sat, 10 Jan 2015 14:05:46 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,73473,73660#msg-73660</guid>
<title>Re: How to load a dol into memory and launch it</title><link>http://forum.wiibrew.org/read.php?11,73473,73660#msg-73660</link><description><![CDATA[ I will add him to the credits for the launcher :)]]></description>
<dc:creator>filfat</dc:creator>
<category>Coding</category><pubDate>Tue, 03 Sep 2013 20:42:00 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,73473,73659#msg-73659</guid>
<title>Re: How to load a dol into memory and launch it</title><link>http://forum.wiibrew.org/read.php?11,73473,73659#msg-73659</link><description><![CDATA[ Here&#039;s the version with argument support: [<a href="http://fix94.no-ip.org/fw_src/forwarder_no_splash_v12.7z" rel="nofollow">fix94.no-ip.org</a>]<br /><br />Note that both versions are written by FIX94, should have credited him in my previous post as well.]]></description>
<dc:creator>SifJar</dc:creator>
<category>Coding</category><pubDate>Tue, 03 Sep 2013 17:33:11 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,73473,73658#msg-73658</guid>
<title>Re: How to load a dol into memory and launch it</title><link>http://forum.wiibrew.org/read.php?11,73473,73658#msg-73658</link><description><![CDATA[ I want to boot the dol with Arguments if it possible XD]]></description>
<dc:creator>filfat</dc:creator>
<category>Coding</category><pubDate>Tue, 03 Sep 2013 15:37:17 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,73473,73657#msg-73657</guid>
<title>Re: How to load a dol into memory and launch it</title><link>http://forum.wiibrew.org/read.php?11,73473,73657#msg-73657</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>filfat</strong><br />Q: can I in someway set the Arc&#039;s? Using this metod.</div></blockquote><br />As I am not a psychic, I have no clue what you are talking about (as usual ;) )]]></description>
<dc:creator>antibyte</dc:creator>
<category>Coding</category><pubDate>Tue, 03 Sep 2013 15:24:47 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,73473,73653#msg-73653</guid>
<title>Re: How to load a dol into memory and launch it</title><link>http://forum.wiibrew.org/read.php?11,73473,73653#msg-73653</link><description><![CDATA[ No. I got it working in C++ and that is fine to me XD<br /><b>A Q:</b> can I in someway set the Arc&#039;s? Using this metod.]]></description>
<dc:creator>filfat</dc:creator>
<category>Coding</category><pubDate>Mon, 02 Sep 2013 17:39:09 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,73473,73652#msg-73652</guid>
<title>Re: How to load a dol into memory and launch it</title><link>http://forum.wiibrew.org/read.php?11,73473,73652#msg-73652</link><description><![CDATA[ I&#039;m not sure what you are talking about exactly. I have linked third party C code with my C++ framework several times without any issues. Do you care to elaborate on that gcc/devkitppc bug?]]></description>
<dc:creator>antibyte</dc:creator>
<category>Coding</category><pubDate>Mon, 02 Sep 2013 17:02:58 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,73473,73651#msg-73651</guid>
<title>Re: How to load a dol into memory and launch it</title><link>http://forum.wiibrew.org/read.php?11,73473,73651#msg-73651</link><description><![CDATA[ WiinterSomthing has talked this and its a bug in GCC or Devkitppc. So nope i havent done anything wrong XD]]></description>
<dc:creator>filfat</dc:creator>
<category>Coding</category><pubDate>Mon, 02 Sep 2013 12:50:56 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,73473,73650#msg-73650</guid>
<title>Re: How to load a dol into memory and launch it</title><link>http://forum.wiibrew.org/read.php?11,73473,73650#msg-73650</link><description><![CDATA[ C is a subset of C++, you should have no problem linking C code to C++, so I guess the problem is in your makefile.]]></description>
<dc:creator>antibyte</dc:creator>
<category>Coding</category><pubDate>Mon, 02 Sep 2013 12:33:20 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,73473,73649#msg-73649</guid>
<title>Re: How to load a dol into memory and launch it</title><link>http://forum.wiibrew.org/read.php?11,73473,73649#msg-73649</link><description><![CDATA[ Yes it does. But only in C and not C++. WAIT! That means that I have created my first C program XD]]></description>
<dc:creator>filfat</dc:creator>
<category>Coding</category><pubDate>Mon, 02 Sep 2013 10:34:28 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,73473,73648#msg-73648</guid>
<title>Re: How to load a dol into memory and launch it</title><link>http://forum.wiibrew.org/read.php?11,73473,73648#msg-73648</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>filfat</strong><br />EDIT 2: The code dosent work in C++ Thats why i got these errors XD</div></blockquote><br />You know that this is a linker error, and the code did compile, right?]]></description>
<dc:creator>antibyte</dc:creator>
<category>Coding</category><pubDate>Mon, 02 Sep 2013 09:21:04 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,73473,73644#msg-73644</guid>
<title>Re: How to load a dol into memory and launch it</title><link>http://forum.wiibrew.org/read.php?11,73473,73644#msg-73644</link><description><![CDATA[ i guess i am an idiot this morning XD<br /><pre class="bbcode">
&gt; "make" 
main.cpp
background_image.c
devicemounter.c
pngu.c
video.c
background.png
app_booter.bin
linking ... WiiCraft_Launcher.elf
main.o: In function `main&#039;:
main.cpp:(.text.startup.main+0x54): undefined reference to `GetImageData()&#039;
main.cpp:(.text.startup.main+0x5c): undefined reference to `fadein(unsigned char*)&#039;
main.cpp:(.text.startup.main+0xcc): undefined reference to `fadeout(unsigned char*)&#039;
main.cpp:(.text.startup.main+0xe0): undefined reference to `StopGX()&#039;
main.cpp:(.text.startup.main+0x138): undefined reference to `fadeout(unsigned char*)&#039;
main.cpp:(.text.startup.main+0x14c): undefined reference to `StopGX()&#039;
main.cpp:(.text.startup.main+0x194): undefined reference to `fadeout(unsigned char*)&#039;
main.cpp:(.text.startup.main+0x1a0): undefined reference to `StopGX()&#039;
main.cpp:(.text.startup.main+0x2b0): undefined reference to `__exception_closeall()&#039;
main.cpp:(.text.startup.main+0x310): undefined reference to `__exception_closeall()&#039;
collect2: ld returned 1 exit status
make[1]: *** [/c/Users/Filiph/Desktop/WiiCraft/WiiCraft_Launcher/WiiCraft_Launcher.elf] Error 1
"make": *** [build] Error 2

&gt; Process Exit Code: 2
&gt; Time Taken: 00:04</pre><br />becuse the example comiles well but not my code...<br /><br />EDIT: My 100:th post =)<br />EDIT 2: The code dosent work in C++ Thats why i got these errors XD]]></description>
<dc:creator>filfat</dc:creator>
<category>Coding</category><pubDate>Sat, 31 Aug 2013 16:31:17 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,73473,73643#msg-73643</guid>
<title>Re: How to load a dol into memory and launch it</title><link>http://forum.wiibrew.org/read.php?11,73473,73643#msg-73643</link><description><![CDATA[ Thanks =)]]></description>
<dc:creator>filfat</dc:creator>
<category>Coding</category><pubDate>Sat, 31 Aug 2013 16:02:21 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,73473,73642#msg-73642</guid>
<title>Re: How to load a dol into memory and launch it</title><link>http://forum.wiibrew.org/read.php?11,73473,73642#msg-73642</link><description><![CDATA[ [<a href="http://fix94.no-ip.org/fw_src/forwarder_splash_v12_no_args.7z" rel="nofollow">fix94.no-ip.org</a>] - very simple DOL loader, if you can&#039;t figure out how to adapt that to your purposes, you have a problem ;)<br /><br />EDIT: Credits to FIX94 for this forwarder]]></description>
<dc:creator>SifJar</dc:creator>
<category>Coding</category><pubDate>Sat, 31 Aug 2013 15:28:44 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,73473,73482#msg-73482</guid>
<title>Re: How to load a dol into memory and launch it</title><link>http://forum.wiibrew.org/read.php?11,73473,73482#msg-73482</link><description><![CDATA[ The pj I&#039;m working on is a launcher that will launch wiicraft from SD:/wiicraft/wiicraft.dol so yeah... Restarting the app is not an option :(]]></description>
<dc:creator>filfat</dc:creator>
<category>Coding</category><pubDate>Sun, 04 Aug 2013 22:40:11 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,73473,73481#msg-73481</guid>
<title>Re: How to load a dol into memory and launch it</title><link>http://forum.wiibrew.org/read.php?11,73473,73481#msg-73481</link><description><![CDATA[ Just quit tell the user to re-launch the application and then quit the current program. Why go through the trouble and addition code?]]></description>
<dc:creator>owen</dc:creator>
<category>Coding</category><pubDate>Sun, 04 Aug 2013 22:06:32 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,73473,73479#msg-73479</guid>
<title>Re: How to load a dol into memory and launch it</title><link>http://forum.wiibrew.org/read.php?11,73473,73479#msg-73479</link><description><![CDATA[ I have looked inot all "homebrew loaders" on the wiki(http://wiibrew.org/wiki/List_of_homebrew_loaders) but without help i cant understand them. all i want is a smal simple script to load a dol(sd:/wiicraft/wiicraft.dol). Thanks =)]]></description>
<dc:creator>filfat</dc:creator>
<category>Coding</category><pubDate>Sun, 04 Aug 2013 13:27:40 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,73473,73473#msg-73473</guid>
<title>How to load a dol into memory and launch it</title><link>http://forum.wiibrew.org/read.php?11,73473,73473#msg-73473</link><description><![CDATA[ Hi, I&#039;m working on a launcher for wiicraft with version selection etc. And I wonder if its possible to launch a dol within a dol. Also free the memory that the launcher used. Thanks :)]]></description>
<dc:creator>filfat</dc:creator>
<category>Coding</category><pubDate>Sat, 03 Aug 2013 15:34:43 +0200</pubDate></item>
</channel>
</rss>