Eclipse- C/C++ <terminated, exit value: -1073741515> -


i decided learn c/c++ in preparation coding class take in few months downloaded , installed eclipse. when going through tutorials helloworld project, ran problem though code compiled fine, console not output "helloworld!" when ran debugger, said terminated , exit value -1073741515 followed directory "c:\users\example\workspace\helloworld\debug\helloworld.exe" followed date , time.

i installed mingw , set path eclipse c:\mingw\bin in directory , checked make sure preferences right because prior having "program g++ not found in path" , "program gcc not found in path" these errors fixed when changed environment variables.

when continued follow tutorial, along helloworld.cpp contained code

#include <iostream> using namespace std;  int main() {     cout << "!!!hello world!!!" << endl; // prints !!!hello world!!!     return 0; } 

next, told me write main.cpp contained code

#include <iostream> using namespace std;  int main() {     // helloworld 5 times     (int index = 0; index < 5; ++index)         cout << "hellowworld!" << endl;     char input = 'i';     cout << "to exit, press 'm' 'enter' key." << endl;     cin >> input;     while(input != 'm') {         cout << "you entered '" << input << "'. "              << "you need enter 'm' exit." << endl;         cin >> input;     }     cout << "thank you. exiting." << endl;     return 0; 

}

finally, told me create makefile build , run project contained code:

all: hello.exe  clean:      rm main.o hello.exe  hello.exe: main.o     g++ -g -o hello main.o  main.o:     g++ -c -g main.cpp 

what program should doing printing out "helloworld!" 5 times in console, not , returning "terminated, exit value: -1073741515" i'm confused why is. can please me? thank all.

i have experience eclipse c/c++

the first thing suggest test starting new project , click on 'new hello world' option rather 'empty project' should set of project. - when have done should able run program using buttons in eclipse.

if works done - can modify program whatever wish , made ou.

if not work have issues, eclipse not finding compiler. may able tell when start new project show compilers has found on right hand side of start project window.

hope helps. in experience eclipse great, has many options can little daunting , know don't use potential has.

if stuck try using pelles instead of eclipse - in experience alot easier started with.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -