Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

DevCpp fail

Name: level1OP 2010-06-09 22:52

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 ;__;

Name: Anonymous 2010-06-09 22:55

Post some actual code.

Name: Anonymous 2010-06-09 23:02

I have re-installed DevCpp 5/6ish times now
EXPERT WINDOWS DEVELOPER

Name: level1OP 2010-06-09 23:04

>>2
lol i just wrote a new project with just this:

#include <iostream>

using namespace std;

int main()
{
    cout << "hello" << endl;
    cin.get();
   
    return 1;
}

And i got the same error, i MUST have some compiler shit somewhere, is there anything else bar MinGW that will fuck shit up?

Name: Anonymous 2010-06-09 23:04

Hint: that's a linker error.

Name: Anonymous 2010-06-09 23:06

Why are you using make.exe to compile simple code? IDEs really do rot the brain.

Name: Anonymous 2010-06-09 23:08

More evidence that Windows users are genetically incapable of reading simple error messages. Fuck.
IHBT

Name: Anonymous 2010-06-09 23:22

>>7
I hate black text?

Also OP is probably new to programming and tbf, he said it was a linking error..

>>1
OP you have more than one MinGW or Msys, if you did uninstall one, make sure it was full. You may even of had a third one..

Name: Anonymous 2010-06-09 23:32

>>8
he said it was a linking error
No, he didn't. I did.

Name: Anonymous 2010-06-09 23:34

>>8
I hate black text?
Moron.

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.

Name: Anonymous 2010-06-09 23:49

>>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?

Name: Anonymous 2010-06-10 0:07

>>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.

Name: Anonymous 2010-06-10 0:32

>>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...

Name: Anonymous 2010-06-10 0:34

>>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.

Name: Anonymous 2010-06-10 1:13

>>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: level1OP 2010-06-10 13:11

So... is the only conclusion so far, that i am not as good at debugging as you guise?

Name: Anonymous 2010-06-10 13:32

>>4
Welcome to the wonderfull land of compiled languages, enjoy your stay.

Name: Anonymous 2010-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: level1OP 2010-06-10 14:37

>>18
I wanted to use Visual C++ but the CSound API doesn't work with C99.

Name: Anonymous 2010-06-10 14:37

>>16
Try compiling and linking it like a big boy and see what happens.

Name: !uATROLLIn. 2010-06-10 14:39

Name: Anonymous 2010-06-10 15:45

>>19
Try getting a soul and start using python.
Screw the compiler!

Name: Anonymous 2010-06-10 17:22

import soul
oh right, python

Name: Anonymous 2010-06-10 18:34

>>23
Back to /xkcd/, please.

Name: Anonymous 2010-06-10 19:34

>>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.

Name: Anonymous 2010-06-10 19:36

>>24
I think that was the joke in the first place.

Name: Anonymous 2010-06-10 19:37

>>24
``/xkcd/'' is not a board.

Name: Anonymous 2010-06-10 19:39

>>27
It's an alias for /g/.

Name: Anonymous 2010-06-10 19:41

>>28
Ah. No argument there. It's basically ``/g/ QUALITY BULLSHITE'' anyway.

Name: Anonymous 2010-06-11 4:22

>>28
Its an alias for /sci/ now. Know your memes.

Name: Anonymous 2010-06-11 8:17

>>30
Back to /b/, please.

Name: Anonymous 2010-06-11 15:04

DON'T HELP HIM

Name: Anonymous 2011-01-31 21:40

<-- check em dubz

Name: Anonymous 2011-01-31 21:50

>>33
I hope you die.

Name: tray 2012-03-16 16:15

flagStuff|=1;

Name: Anonymous 2012-04-15 3:45

Did we ever figure this out?

Name: VIPPER 2012-04-15 5:06

>>36
Did we ever figure what out?

Name: Anonymous 2012-04-15 5:23

>>38
OP's issue I'm assuming. I could post my own actually. I still have Dev-CPP installed on my windows machine.

Name: VIPPER 2012-04-15 6:16

>>38
Well the issue is clear, MinGW sucks ass.

Name: Anonymous 2012-04-15 6:24

>>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: Anonymous 2012-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: Anonymous 2013-01-19 23:26

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Don't change these.
Name: Email:
Entire Thread Thread List