954,492 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Compiler C

hey guys,

i have some work to do in C on a windows platform, windows 7 actually.

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

#include <stdio.h>

main ()
{
	printf("Test");

	system("pause");
}


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

DarkMonarch
Light Poster
40 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
 

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.

thines01
Postaholic
Team Colleague
2,424 posts since Oct 2009
Reputation Points: 445
Solved Threads: 402
 

How many copies of MinGW do you have on your system? If you're using Dev C++, then that makes at least one.
Reference: http://cboard.cprogramming.com/cplusplus-programming/111216-compiler-problem.html

Make sure to use a recent copy of MinGW and update often. I would also include a bare-minimum MSYS including Make.

DeanMSands3
Junior Poster
185 posts since Jan 2012
Reputation Points: 37
Solved Threads: 26
 

Dev-C++ is a bad idea (at least, the one from Bloodshed is).

Read this, pick something better.
http://www.cplusplus.com/articles/36vU7k9E/

What's this it says halfway down the page? Be careful doing this, though, as having two versions of MinGW might trigger linker errors ("undefined reference to __cpu_features_init"). That sounds familiar.

Moschops
Practically a Master Poster
620 posts since Sep 2008
Reputation Points: 258
Solved Threads: 117
 

Dev-C++ is a bad idea (at least, the one from Bloodshed is).

Read this, pick something better. http://www.cplusplus.com/articles/36vU7k9E/

What's this it says halfway down the page? Be careful doing this, though, as having two versions of MinGW might trigger linker errors ("undefined reference to __cpu_features_init"). That sounds familiar.


AW! Didn't know about that, should get the Dev++ suggestion outa of the starting C thread.

I've pickup Eclipse for c/c++ and it work fine.


thx alot guys.


Dark

DarkMonarch
Light Poster
40 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You