ok, i am compiling something using the csound c/c++ api..
I get this error:
[Linker error] undefined reference to `__cpu_features_init'
which in the log shows:
make.exe -f "...\Makefile.win" all
g++.exe main.o test.o -o "Devtest.exe" -L"C:/Dev-Cpp/lib" "C:/csound Include Library/csound64.lib"
/mingw/lib/crt2.o(.text+0x37):crt1.c: undefined reference to `__cpu_features_init'
collect2: ld returned 1 exit status
make.exe: *** [Devtest.exe] Error 1
Now, i googled the build error lines and found that chances were that i had 2 MinGW installed, i did so i uninstalled the stand alone one and nothing changed :(
Any ideas? I have re-installed DevCpp 5/6ish times now ;__;
Also OP is probably new to programming and tbf, he said it was a linking error..
No he didn't. That was part of the error message which he didn't read.
may even of had
Jesus Christ.
Maybe we should petition MrVacBob-sama-kun to just ban everyone whose first post was less than a month ago.
>>10 Maybe we should petition MrVacBob-sama-kun to just ban everyone whose first post was less than a month ago
And you intend to enforce this how? and how will we get new contributors?
>>11 And you intend to enforce this how?
What does that even mean?
and how will we get new contributors?
We don't need new contributors [sic]. New people never know how to program and never have anything interesting to say, as the past two weeks have demonstrated.
>>12
It means, how will you know that the persons first post was less than a month ago? We don't have accounts, a large number of people have dynamic IPs, cookies can be tampered with...
>>13 a large number of people have dynamic IPs
That hasn't been true since the late '90s, despite what your imageboard friends will tell you. The vast majority of internet users has a static IP now.
>>14
Well that's strictly bullshit. DHCP is still prevalent, and even though leases may be very long term, they're almost never permanent.
Name:
level1OP2010-06-10 13:11
So... is the only conclusion so far, that i am not as good at debugging as you guise?
Name:
Anonymous2010-06-10 13:32
>>4
Welcome to the wonderfull land of compiled languages, enjoy your stay.
Name:
Anonymous2010-06-10 13:40
What the fuck are you using Dev-C++ for? It sucks. Period. Use Visual C++ Express, or, better yet, install Linux and set up a real development environment.
Name:
level1OP2010-06-10 14:37
>>18
I wanted to use Visual C++ but the CSound API doesn't work with C99.
>>16
You still have multiple copies of MinGW being mixed up. Your log shows the linker complaining about /mingw/lib/crt2.o, which doesn't look like it's part of your Dev-C++ installation. To make a fresh start, do this: uninstall Dev-C++, delete its folder, find and delete any other copies of MinGW or Dev-C++ (dir /s gcc.exe from C:\ should find any), remove any old paths from your system's PATH variable, then install Dev-C++ again. Old Dev-C++ project files will probably have old linker options that are now invalid, so either make new Dev-C++ projects or fix the old ones manually.
>>39
mingwah has actually worked well for me from the command line when I've used it, although it wasn't very complicated. But Dev-cpp was pretty flaky, and hard to make sense of when it didn't work.
Name:
Anonymous2012-04-15 14:42
>>40
I use a mingwah based cross compiler and it works just fine on windows. Shit ton better than cygwin based shit. DevC is a dead project, use Codelite, Code::Blocks, or Visual Studio instead.
Name:
Anonymous2013-01-19 23:26
/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.