<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'An odd Dev-C++ Linker Error' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'An odd Dev-C++ Linker Error' posted on the 'Beginner C/C++' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2008 Programmers Heaven</copyright>
    <pubDate>Tue, 07 Oct 2008 21:13:18 -0700</pubDate>
    <lastBuildDate>Tue, 07 Oct 2008 21:13:18 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>An odd Dev-C++ Linker Error</title>
      <link>http://www.programmersheaven.com/mb/beginnercpp/371813/371813/an-odd-dev-c++-linker-error/</link>
      <description>Hello programmers. =)&lt;br /&gt;
&lt;br /&gt;
I'm trying to use Bloodshed's most recent Dev-C++ release (v. 4.9.9.2) to compile C++ programs that will run from Windows command prompt (MSDOS). However, I've been encountering an odd linker error, and I've been unable to find any references to it on the Web. Here is the code of my very simple test program:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;#include &amp;lt;cstdlib&amp;gt;
#include &amp;lt;iostream&amp;gt;
using namespace std;

int main()
{
    cout &amp;lt;&amp;lt; "Hello world!" &amp;lt;&amp;lt; endl;
    
    return EXIT_SUCCESS;
}&lt;/pre&gt;&lt;br /&gt;
This program compiles fine under the UNIX system we use for our C++ class. However, when I try to compile this code using Dev-C++, I'm given the following error:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;[Linker error] undefined reference to `__cpu_features_init'
ld returned 1 exit status&lt;/pre&gt;&lt;br /&gt;
I'm stumped. =/&lt;br /&gt;
&lt;br /&gt;
Is there anyone who can explain this error to me and perhaps offer a solution?</description>
      <pubDate>Thu, 08 May 2008 22:32:10 -0700</pubDate>
      <category>Beginner C/C++</category>
    </item>
    <item>
      <title>Re: An odd Dev-C++ Linker Error</title>
      <link>http://www.programmersheaven.com/mb/beginnercpp/371813/371814/re-an-odd-dev-c++-linker-error/#371814</link>
      <description>That code works perfectly in Dev C++ 4.9.9.2, so it seems the problem might be related to either compiler settings or a corrupt installation. Here's the compiler log I get:&lt;br /&gt;
&lt;br /&gt;
Compiler: Default compiler&lt;br /&gt;
Executing  g++.exe...&lt;br /&gt;
g++.exe "C:\CPP\deleteme\Untitled1.cpp" -o "C:\CPP\deleteme\Untitled1.exe"   -g3  -I"C:\Program\Dev-Cpp\lib\gcc\mingw32\3.4.2\include"  -I"C:\Program\Dev-Cpp\include\c++\3.4.2\backward"  -I"C:\Program\Dev-Cpp\include\c++\3.4.2\mingw32"  -I"C:\Program\Dev-Cpp\include\c++\3.4.2"  -I"C:\Program\Dev-Cpp\include"   -L"C:\Program\Dev-Cpp\lib" -g3 &lt;br /&gt;
Execution terminated&lt;br /&gt;
Compilation successful&lt;br /&gt;</description>
      <pubDate>Thu, 08 May 2008 23:28:35 -0700</pubDate>
      <category>Beginner C/C++</category>
    </item>
  </channel>
</rss>