<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Undefined reference errors Allegro 5</title>
		<link>http://www.allegro.cc/forums/view/618188</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 21 Jul 2020 03:47:24 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;ve been trying to compile a project using Allegro 5 but getting &quot;undefined reference to __cxa_guard_acquire&quot; and &quot;undefined reference to __cxa_guard_release&quot; errors. I am using the allegro binaries from here: <a href="https://bitbucket.org/bugsquasher/unofficial-allegro-5-binaries/downloads/Allegro525_GCC81_MinGW_W64_i686_posix_dwarf.7z">https://bitbucket.org/bugsquasher/unofficial-allegro-5-binaries/downloads/Allegro525_GCC81_MinGW_W64_i686_posix_dwarf.7z</a></p><p>and mingw gcc version 8.1.0 (i686-posix-dwarf-rev0, Built by MinGW-W64 project)</p><p>using codeblocks. Any ideas?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob Keane)</author>
		<pubDate>Sun, 19 Jul 2020 01:26:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/618188/1046749#target">Bob Keane</a> said:</div><div class="quote"><p> Any ideas?</p></div></div><p>Hate to give the obvious danky allegro.cc answer but, don&#39;t use codeblocks. 🤷‍♂️</p><p>I&#39;m actually curious, though, what features specifically do you like about CodeBlocks?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Sun, 19 Jul 2020 06:36:19 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Codeblocks is great dude. Don&#39;t listen to him.</p><p>Which compiler did you download? Does it match the binaries? It looks like you have the right one.</p><p>Are you compiling as C++? Allegro is C++ on Windows.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Sun, 19 Jul 2020 08:30:41 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;ve only tried one or two ides and settled with codeblocks. There is no specific reason I use it. The output from gcc -v is_</p><div class="source-code snippet"><div class="inner"><pre>Using built-in specs.
COLLECT_GCC<span class="k3">=</span>gcc
COLLECT_LTO_WRAPPER<span class="k3">=</span>C:<span class="k3">/</span>MINGW<span class="k3">/</span>i686-8.1.0-release-posix-dwarf-rt_v6-rev0<span class="k3">/</span>mingw32<span class="k3">/</span>bin<span class="k3">/</span>..<span class="k3">/</span>libexec<span class="k3">/</span>gcc<span class="k3">/</span>i686-w64-mingw32<span class="k3">/</span><span class="n">8</span>.<span class="n">1</span>.<span class="n">0</span><span class="k3">/</span>lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: ..<span class="k3">/</span>..<span class="k3">/</span>..<span class="k3">/</span>src<span class="k3">/</span>gcc-8.1.0<span class="k3">/</span>configure <span class="k3">-</span><span class="k3">-</span>host<span class="k3">=</span>i686-w64-mingw32 <span class="k3">-</span><span class="k3">-</span>build<span class="k3">=</span>i686-w64-mingw32 <span class="k3">-</span><span class="k3">-</span>target<span class="k3">=</span>i686-w64-mingw32 <span class="k3">-</span><span class="k3">-</span>prefix<span class="k3">=</span><span class="k3">/</span>mingw32 <span class="k3">-</span><span class="k3">-</span>with-sysroot<span class="k3">=</span><span class="k3">/</span>c<span class="k3">/</span>mingw810<span class="k3">/</span>i686-810-posix-dwarf-rt_v6-rev0<span class="k3">/</span>mingw32 <span class="k3">-</span><span class="k3">-</span>enable-shared <span class="k3">-</span><span class="k3">-</span>enable-static <span class="k3">-</span><span class="k3">-</span>disable-multilib <span class="k3">-</span><span class="k3">-</span>enable-languages<span class="k3">=</span>c,c<span class="k3">+</span><span class="k3">+</span>,fortran,lto <span class="k3">-</span><span class="k3">-</span>enable-libstdcxx-time<span class="k3">=</span>yes <span class="k3">-</span><span class="k3">-</span>enable-threads<span class="k3">=</span>posix <span class="k3">-</span><span class="k3">-</span>enable-libgomp <span class="k3">-</span><span class="k3">-</span>enable-libatomic <span class="k3">-</span><span class="k3">-</span>enable-lto <span class="k3">-</span><span class="k3">-</span>enable-graphite <span class="k3">-</span><span class="k3">-</span>enable-checking<span class="k3">=</span>release <span class="k3">-</span><span class="k3">-</span>enable-fully-dynamic-string <span class="k3">-</span><span class="k3">-</span>enable-version-specific-runtime-libs <span class="k3">-</span><span class="k3">-</span>disable-sjlj-exceptions <span class="k3">-</span><span class="k3">-</span>with-dwarf2 <span class="k3">-</span><span class="k3">-</span>disable-libstdcxx-pch <span class="k3">-</span><span class="k3">-</span>disable-libstdcxx-debug <span class="k3">-</span><span class="k3">-</span>enable-bootstrap <span class="k3">-</span><span class="k3">-</span>disable-rpath <span class="k3">-</span><span class="k3">-</span>disable-win32-registry <span class="k3">-</span><span class="k3">-</span>disable-nls <span class="k3">-</span><span class="k3">-</span>disable-werror <span class="k3">-</span><span class="k3">-</span>disable-symvers <span class="k3">-</span><span class="k3">-</span>with-gnu-as <span class="k3">-</span><span class="k3">-</span>with-gnu-ld <span class="k3">-</span><span class="k3">-</span>with-arch<span class="k3">=</span>i686 <span class="k3">-</span><span class="k3">-</span>with-tune<span class="k3">=</span>generic <span class="k3">-</span><span class="k3">-</span>with-libiconv <span class="k3">-</span><span class="k3">-</span>with-system-zlib <span class="k3">-</span><span class="k3">-</span>with-gmp<span class="k3">=</span><span class="k3">/</span>c<span class="k3">/</span>mingw810<span class="k3">/</span>prerequisites<span class="k3">/</span>i686-w64-mingw32-static <span class="k3">-</span><span class="k3">-</span>with-mpfr<span class="k3">=</span><span class="k3">/</span>c<span class="k3">/</span>mingw810<span class="k3">/</span>prerequisites<span class="k3">/</span>i686-w64-mingw32-static <span class="k3">-</span><span class="k3">-</span>with-mpc<span class="k3">=</span><span class="k3">/</span>c<span class="k3">/</span>mingw810<span class="k3">/</span>prerequisites<span class="k3">/</span>i686-w64-mingw32-static <span class="k3">-</span><span class="k3">-</span>with-isl<span class="k3">=</span><span class="k3">/</span>c<span class="k3">/</span>mingw810<span class="k3">/</span>prerequisites<span class="k3">/</span>i686-w64-mingw32-static <span class="k3">-</span><span class="k3">-</span>with-pkgversion<span class="k3">=</span><span class="s">'i686-posix-dwarf-rev0, Built by MinGW-W64 project'</span> <span class="k3">-</span><span class="k3">-</span>with-bugurl<span class="k3">=</span>https:<span class="c">//sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/i686-810-posix-dwarf-rt_v6-rev0/mingw32/opt/include -I/c/mingw810/prerequisites/i686-zlib-static/include -I/c/mingw810/prerequisites/i686-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/i686-810-posix-dwarf-rt_v6-rev0/mingw32/opt/include -I/c/mingw810/prerequisites/i686-zlib-static/include -I/c/mingw810/prerequisites/i686-w64-mingw32-static/include' CPPFLAGS=' -I/c/mingw810/i686-810-posix-dwarf-rt_v6-rev0/mingw32/opt/include -I/c/mingw810/prerequisites/i686-zlib-static/include -I/c/mingw810/prerequisites/i686-w64-mingw32-static/include' LDFLAGS='-pipe -fno-ident -L/c/mingw810/i686-810-posix-dwarf-rt_v6-rev0/mingw32/opt/lib -L/c/mingw810/prerequisites/i686-zlib-static/lib -L/c/mingw810/prerequisites/i686-w64-mingw32-static/lib -Wl,--large-address-aware'</span>
Thread model: posix
gcc version <span class="n">8</span>.<span class="n">1</span>.<span class="n">0</span> <span class="k2">(</span>i686-posix-dwarf-rev0, Built by MinGW-W64 project<span class="k2">)</span>
</pre></div></div><p>
I&#39;m coding in C, is Allegro only C++ on Windows? That would limit its usability in my opinion. If the problem is the compiler, do you have a link to the correct one? There are several on the download page.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob Keane)</author>
		<pubDate>Sun, 19 Jul 2020 16:02:17 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You can code in C all you want, but on Windows you have to compile any Allegro program as C++ due to the D3D driver being C++. It&#39;s really not a problem.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Sun, 19 Jul 2020 19:07:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>After playing with it a bit, I coded it in C++. The error is gone. Should I hate MINGW or Microsoft for forcing me to learn a new language?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob Keane)</author>
		<pubDate>Tue, 21 Jul 2020 03:19:59 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Don&#39;t need to learn a new language. Stick to C. Just compile in C++.</p><p>However, it never hurts to expand your knowledge.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (DanielH)</author>
		<pubDate>Tue, 21 Jul 2020 03:42:51 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Unless it&#39;s my compiler, C++ seems stricter. I had a warning in some code when using the C compiler but it was an error for the C++ compiler.</p><div class="quote_container"><div class="title"><a href="http://">DanielH</a> said:</div><div class="quote"><p>However, it never hurts to expand your knowledge. </p></div></div><p>You kids with your fancy new languages. What&#39;s wrong with BASIC?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob Keane)</author>
		<pubDate>Tue, 21 Jul 2020 03:47:24 +0000</pubDate>
	</item>
</rss>
