<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Boost Libraries</title>
<description> Has anyone managed to use the Boost libraries with devkitPPC? [www.boost.org]

I would have thought at least the &quot;header only&quot; parts should just work straight out of the box, but I get lots of errors like this:


error: expected &amp;#039;=&amp;#039;, &amp;#039;,&amp;#039;, &amp;#039;;&amp;#039;, &amp;#039;asm&amp;#039; or &amp;#039;__attribute__&amp;#039; before &amp;#039;boost&amp;#039;

That error is repeated many times over, when attempting to compile even the simplest of example progs using one of the header only parts of the library. Eg, this simple example:


#include 
#include 
#include 
#include 

int main()
{
using namespace boost::lambda;
typedef std::istream_iterator in;

std::for_each(
in(std::cin), in(), std::cout &amp;lt;&amp;lt; (_1 * 3) &amp;lt;&amp;lt; &quot; &quot; );
}
</description><link>http://forum.wiibrew.org/read.php?11,16478,16478#msg-16478</link><lastBuildDate>Sat, 11 Jul 2026 09:53:28 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,16478,23930#msg-23930</guid>
<title>Re: Boost Libraries</title><link>http://forum.wiibrew.org/read.php?11,16478,23930#msg-23930</link><description><![CDATA[ i know AerialX has been able to compile some of the boost libs for wii and that he used a tutorial aimed to compiling boost for ds<br /><br />[<a href="http://wiibrew.org/wiki/User:AerialX/Coding_Sandbox" rel="nofollow">wiibrew.org</a>]]]></description>
<dc:creator>SteelSLasher</dc:creator>
<category>Coding</category><pubDate>Mon, 06 Jul 2009 12:12:04 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,16478,23856#msg-23856</guid>
<title>Re: Boost Libraries</title><link>http://forum.wiibrew.org/read.php?11,16478,23856#msg-23856</link><description><![CDATA[ If anyone could help me that would be great. Right now I&#039;ve just downloaded the hpp files and copied them to my libogc/include folder, but pretty soon I&#039;m going to want to compile it.]]></description>
<dc:creator>matthewbauer</dc:creator>
<category>Coding</category><pubDate>Sun, 05 Jul 2009 22:37:14 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,16478,21547#msg-21547</guid>
<title>Re: Boost Libraries</title><link>http://forum.wiibrew.org/read.php?11,16478,21547#msg-21547</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>matthewbauer</strong><br />Is it possible to get threading support through Boost? The application I&#039;m trying to port (Gnash) uses Boost and it&#039;s threading.</div></blockquote><br />Unfortunately, boost::thread is a compiled library, not header only. Boost also uses "bjam" compatible with Perforce Jam (kinda like make, or ant) so I would have no idea on how to even compile boost::thread targeted for the gekko.<br /><br />Your best bet (in my opinion) would be to read up on the threading implementation that is within libogc.]]></description>
<dc:creator>MrPeanut</dc:creator>
<category>Coding</category><pubDate>Sun, 21 Jun 2009 17:34:44 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,16478,21463#msg-21463</guid>
<title>Re: Boost Libraries</title><link>http://forum.wiibrew.org/read.php?11,16478,21463#msg-21463</link><description><![CDATA[ Is it possible to get threading support through Boost? The application I&#039;m trying to port (Gnash) uses Boost and it&#039;s threading.]]></description>
<dc:creator>matthewbauer</dc:creator>
<category>Coding</category><pubDate>Sat, 20 Jun 2009 22:14:58 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,16478,21358#msg-21358</guid>
<title>Re: Boost Libraries</title><link>http://forum.wiibrew.org/read.php?11,16478,21358#msg-21358</link><description><![CDATA[ Having a look into this myself. Will report back with instructions if I get anywhere. Hopefully the info here makes it straight forward enough.]]></description>
<dc:creator>PhoenixTank</dc:creator>
<category>Coding</category><pubDate>Sat, 20 Jun 2009 00:08:07 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,16478,21307#msg-21307</guid>
<title>Re: Boost Libraries</title><link>http://forum.wiibrew.org/read.php?11,16478,21307#msg-21307</link><description><![CDATA[ Could somebody take me step by step on how to do this? I don&#039;t understand how to cross-compile very well.]]></description>
<dc:creator>matthewbauer</dc:creator>
<category>Coding</category><pubDate>Fri, 19 Jun 2009 17:39:07 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,16478,17533#msg-17533</guid>
<title>Re: Boost Libraries</title><link>http://forum.wiibrew.org/read.php?11,16478,17533#msg-17533</link><description><![CDATA[ hrmm.. utility is a file included with the C++ standard library and should be on your computer<br /><br /><pre class="bbcode">
// Test file to see if I have <utility>

#include <iostream>
#include <utility>        // this says utility

int main(int argc, char *argv[])
{
     std::cout &lt;&lt; "test\n";
     return 1;
}</pre><br /><br /><br />And it works<br /><br /><pre class="bbcode">

C:\Projects&gt;make
test.cpp
Using built-in specs.
Target: powerpc-gekko
Configured with: ../../gcc-4.2.4/configure --enable-languages=c,c++,objc --with-
cpu=750 --without-headers --disable-nls --disable-shared --enable-threads --disa
ble-multilib --disable-win32-registry --disable-libstdcxx-pch --target=powerpc-g
ekko --with-newlib --prefix=c:/devkitPro/devkitPPC --disable-dependency-tracking
 --with-bugurl=http://wiki.devkitpro.org/index.php/Bug_Reports --with-pkgversion
=devkitPPC release 17
Thread model: single
gcc version 4.2.4 (devkitPPC release 17)
 c:/devkitpro/devkitppc/bin/../libexec/gcc/powerpc-gekko/4.2.4/cc1plus.exe -quie
t -v -Ic:/Projects/build -Ic:/devkitPro/libogc/include -iprefix c:\devkitpro\dev
kitppc\bin\../lib/gcc/powerpc-gekko/4.2.4/ -MMD test.d -MF c:/Projects/build/tes
t.d -MP -MQ test.o -D__wii__ -DHW_RVL -ffunction-sections -fdata-sections -DGEKK
O c:/Projects/test.cpp -mcall-sysv -quiet -dumpbase test.cpp -mrvl -mcpu=750 -me
abi -mhard-float -auxbase-strip test.o -O2 -Wall -version -o C:/Users/Nick/AppDa
ta/Local/Temp/cccRi5ff.s
ignoring nonexistent directory "c:\devkitpro\devkitppc\bin\../lib/gcc/powerpc-ge
kko/4.2.4/../../../../powerpc-gekko/sys-include"
ignoring nonexistent directory "c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-ge
kko/4.2.4/../../../../powerpc-gekko/sys-include"
#include "..." search starts here:
#include &lt;...&gt; search starts here:
 c:/Projects/build
 c:/devkitPro/libogc/include
 c:\devkitpro\devkitppc\bin\../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-g
ekko/include/c++/4.2.4
 c:\devkitpro\devkitppc\bin\../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-g
ekko/include/c++/4.2.4/powerpc-gekko
 c:\devkitpro\devkitppc\bin\../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-g
ekko/include/c++/4.2.4/backward
 c:\devkitpro\devkitppc\bin\../lib/gcc/powerpc-gekko/4.2.4/include
 c:\devkitpro\devkitppc\bin\../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-g
ekko/include
 c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-g
ekko/include/c++/4.2.4
 c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-g
ekko/include/c++/4.2.4/powerpc-gekko
 c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-g
ekko/include/c++/4.2.4/backward
 c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.4/include
 c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-g
ekko/include
End of search list.
GNU C++ version 4.2.4 (devkitPPC release 17) (powerpc-gekko)
        compiled by GNU C version 4.3.0 20080305 (alpha-testing) mingw-20080502.

GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=130880
Compiler executable checksum: 8ece19643dad013c41621791a7a4ed14
 c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-g
ekko/bin/as.exe -mppc -many -V -Qy -o test.o C:/Users/Nick/AppData/Local/Temp/cc
cRi5ff.s
GNU assembler version 2.19.1 (powerpc-gekko) using BFD version (GNU Binutils) 2.
19.1
linking ... boot.elf
output ... boot.dol

C:\Projects&gt;</pre><br />I recommend reinstalling devkitppc]]></description>
<dc:creator>MrPeanut</dc:creator>
<category>Coding</category><pubDate>Thu, 21 May 2009 15:23:31 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,16478,17521#msg-17521</guid>
<title>Re: Boost Libraries</title><link>http://forum.wiibrew.org/read.php?11,16478,17521#msg-17521</link><description><![CDATA[ Thanks MtPeanut - that solved the first warning in the output - about utility.hpp - which I thought might have something to do with all the other errors.<br /><br />Unfortunately not, I&#039;m still getting tons of "error: expected &#039;=&#039;, &#039;,&#039;, &#039;;&#039;, &#039;asm&#039; or &#039;__attribute__&#039; before &#039;boost&#039;" from most of the boost hpp files.]]></description>
<dc:creator>musicinstinct</dc:creator>
<category>Coding</category><pubDate>Thu, 21 May 2009 09:27:07 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,16478,17457#msg-17457</guid>
<title>Re: Boost Libraries</title><link>http://forum.wiibrew.org/read.php?11,16478,17457#msg-17457</link><description><![CDATA[ In boost/config/select_stdlib_config.hpp<br /><br />comment out #include boost/config/no_tr1/utility.hpp<br /><br />and try #define&#039;ing BOOST_STDLIB_CONFIG "boost/config/stdlib/libstdcpp3.hpp"]]></description>
<dc:creator>MrPeanut</dc:creator>
<category>Coding</category><pubDate>Wed, 20 May 2009 16:28:22 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,16478,17026#msg-17026</guid>
<title>Re: Boost Libraries</title><link>http://forum.wiibrew.org/read.php?11,16478,17026#msg-17026</link><description><![CDATA[ In this file (part of Boost):<br /><br /><pre class="bbcode">
boost/config/no_tr1/utility.hpp</pre><br />There is this include:<br /><br /><pre class="bbcode">
#ifndef BOOST_CONFIG_UTILITY
#  define BOOST_CONFIG_UTILITY

#  ifndef BOOST_TR1_NO_RECURSION
#     define BOOST_TR1_NO_RECURSION
#     define BOOST_CONFIG_NO_UTILITY_RECURSION
#  endif

#  include &#60;utility&#62;

#  ifdef BOOST_CONFIG_NO_UTILITY_RECURSION
#     undef BOOST_TR1_NO_RECURSION
#     undef BOOST_CONFIG_NO_UTILITY_RECURSION
#  endif

#endif</pre><br />Which causes this error:<br /><br /><pre class="bbcode">
... devkitpro/libogc/include/boost/config/no_tr1/utility.hpp:21:21: warning: utility: No such file or directory</pre><br />Anyone help find the missing include file?]]></description>
<dc:creator>musicinstinct</dc:creator>
<category>Coding</category><pubDate>Sat, 16 May 2009 12:55:20 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,16478,16856#msg-16856</guid>
<title>Re: Boost Libraries</title><link>http://forum.wiibrew.org/read.php?11,16478,16856#msg-16856</link><description><![CDATA[ I know i accidentally included boost in .C files. I was absolutely clueless what the error messages meant.<br />Not everything may work but i do know shared_ptr works and i assume many other libs work.]]></description>
<dc:creator>mavakadachi</dc:creator>
<category>Coding</category><pubDate>Fri, 15 May 2009 09:24:15 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,16478,16701#msg-16701</guid>
<title>Re: Boost Libraries</title><link>http://forum.wiibrew.org/read.php?11,16478,16701#msg-16701</link><description><![CDATA[ What&#039;s the rest of the output when you try to compile that example? And what&#039;s the exact command that runs to create that output.<br /><br />I have limited experience with this as I was working on an aleph one port for the psp which used the boost library (headers only) I got it to compile fine but someone else was working on their version simultaneously and released his first lol.]]></description>
<dc:creator>MrPeanut</dc:creator>
<category>Coding</category><pubDate>Thu, 14 May 2009 21:47:57 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,16478,16478#msg-16478</guid>
<title>Boost Libraries</title><link>http://forum.wiibrew.org/read.php?11,16478,16478#msg-16478</link><description><![CDATA[ Has anyone managed to use the Boost libraries with devkitPPC? [<a href="http://www.boost.org/" rel="nofollow">www.boost.org</a>]<br /><br />I would have thought at least the "header only" parts should just work straight out of the box, but I get lots of errors like this:<br /><br /><pre class="bbcode">
error: expected &#039;=&#039;, &#039;,&#039;, &#039;;&#039;, &#039;asm&#039; or &#039;__attribute__&#039; before &#039;boost&#039;</pre><br />That error is repeated many times over, when attempting to compile even the simplest of example progs using one of the header only parts of the library. Eg, this simple example:<br /><br /><pre class="bbcode">
#include <boost/lambda/lambda.hpp>
#include <iostream>
#include <iterator>
#include <algorithm>

int main()
{
    using namespace boost::lambda;
    typedef std::istream_iterator<int> in;

    std::for_each(
        in(std::cin), in(), std::cout &lt;&lt; (_1 * 3) &lt;&lt; " " );
}
</pre>]]></description>
<dc:creator>musicinstinct</dc:creator>
<category>Coding</category><pubDate>Wed, 13 May 2009 11:21:37 +0200</pubDate></item>
</channel>
</rss>