hey guys,
i have some work to do in C on a windows platform, windows 7 actually.
I seriously need some help with eclipse for C installation because i haven't got this stuck and angry since 10 years ago when i was a kid and got my first pc,and couldn't install audio drivers:P. Okay,lets get to the point.Here are the issues: I used to use dev-c for editing/compiling.
now i've look into the suggested IDE compiler combo you guys suggested and i've pickup Dev c++
i just type a test program, just to see how the compiler works
now i get errors like:
linker error undefined reference to `_dyn_tls_init_callback`
linker error undefined reference to `_cpu_features_init`
this as nothing to do with the code, is it because i'm on win7 ?
should i try another IDE or i'll get the same error ?
what would be nice is to be able to work in vim, i already use vim to code java. now that's a combo question, if someone have a quick vim setup for C, that can compile directly in cmd mode
but, just a quick hand on the 1st part of this thread would be nice, so i can get this thing going.
thx guys
Dark
- 4 Contributors
- forum 4 Replies
- 206 Views
- 1 Day Discussion Span
- commentLatest Postby DarkMonarchLatest Post
Recommended Answers
Dev-C++ is a bad idea (at least, the one from Bloodshed is).
Read this, pick something better.
[url]http://www.cplusplus.com/articles/36vU7k9E/[/url]
What's this it says halfway down the page? [B]Be careful doing this, though, as having two versions of MinGW might trigger linker errors ('undefined reference to __cpu_features_init'). [/B] That sounds …
Jump to PostAll 4 Replies
thines01401
I don't know anything about Dev c++, but it seems like:
1) You are building the wrong type of project
2) The installation is not correct.
Hello all. I seriously need some help with eclipse for C installation because i haven't got this stuck and angry since 10 years ago when i was a kid and got my first pc,and couldn't install audio drivers :P.
Okay,lets get to the point.Here are the issues:
I used to use dev-c++ for editing/compiling/running C projects.
Lately i got a really big program to make which has been taking me a lot of time,and since dev-c has lots of bugs,i decided to move to eclipse.
I already had eclipse for java.So i tried 'help'->install new software->add 'http://svn.codespot.com/a/eclipselabs.org/wascana/repo'.
Then i get an error,which,by googling, i couldn't resolve.
'>http://www.eclipse.org/forums/index.php?t=msg&goto=544517&'
Then i went to the next solution,dl+installing minGW from its website. I also set system paths var inside mingw's bin folder. Still not working,i'm getting no 'toolchains' when i start new project.
After a couple of hours of failing,i decided to just re-download eclipse,only the C version.Well,new version,new error.This time i do get toolchains,but when trying to build a project,i get a console message Nothing to build for <project name>.
I tried uninstalling/reinstalling everything,i tried messing with the building commands,nothing.Then,i say,whatever,lets go back to dev-c.
But it would be too easy.Suddenly,attempting to compile in dev-c gives me a new error:
[Linker error] undefined reference to `__dyn_tls_init_callback'
[Linker error] undefined reference to `__cpu_features_init'
ANY kind of help would be appreciated,as long as it does not include formatting my pc.Thanks!
- 3 Contributors
- forum 3 Replies
- 166 Views
- 1 Day Discussion Span
- commentLatest Postby yashsaxenaLatest Post
Ancient Dragon5,243
You wouldn't have any of those problems if you used VC++ 2010 (the Express edition is free). Code::Blocks is also an excellent IDE that has option to install MinGW compiler. I never used Eclipse so I don't know how to resolve your problems with it.
Dyn Tls V2
I assume you are working with some version of MS-Windows. Which one?