Hi im new to scripting and i tryed to do the famous "hello world !" but not even that simple c++ code i get to work every code i do i get some kinda error. btw i use Dev C++ 4.9.9.2
[Linker error] undefined reference to '__dyn_tls_init_callback'
[Linker error] undefined reference to '__cpu_features_init'
Id returned 1 exit status
I tryed several codes but it keeps gettin this error and i dont think im doin somethin wrong look this is the code.
The using directive is fine where it is.
You're missing a #include <cstdlib>, though (or rather, you have a system("pause") too many).
What is the command line you're using to call the compiler?
Edit: never mind, I see you're using Dev-C++ and probably MinGW.
Uninstall Dev-C++ and make sure all traces of the directory you installed it to are gone.
Then install the Code::Blocks+MinGW package: http://www.codeblocks.org/
I use the compiler in dev C++ so when i scripted i click on compile and run and then i get that error... but i will try to do Athar his way to uninstall and install blocks thingy
On windows I use Visual Studio mainly but I also have code::blocks (with MinGW) and other Compilers/IDEs installed. There is nothing stopping you installing multiple environments on the same system, it can be very useful for sanity tests.
I believe System( "pause" ) is a windows call... Maybe try a platform specific Hello World example.
It's not declared in windows.h if thats what you mean by "system call". Even if it was platform specific the console would still come up and say somthing like "pause is not a vaild command" or somthing of that sort.