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

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.

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.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.