From: jean p. <res...@gm...> - 2013-09-29 09:26:25
|
Hello, I try to compile a small program in C + + but the compilation failed! Here's the code: #include <iostream>#include <vector> int main(){ std::vector<std::vector<double>> matrice { {1, 2, 3}, {4, 5, 6}, {7, 8, 9} }; std::cout << "Bonjour, voici une matrice:" << std::endl; for (auto element : matrice) { for (auto val : element) { std::cout << val << " "; } std::cout << std::endl; } std::cout << std::endl; return 0;} I installed MinGW with g++ 4.8 on Windows 7 (I downloaded from this url) http://sourceforge.net/projects/mingw/?source=pdlp I have chosen all packets c + + compiler, I added the path to the bin directory to the system path variable, g++ -std=c++11 -Wall -c cpp11_test.cpp But the compilation failed .. Here are the error messages: http://imgur.com/feOicVU and this: The application has failed to start correctly (0xc0000142) Click OK to close the application Thank you in advance for your help. |
From: Óscar F. <of...@wa...> - 2013-09-29 10:50:12
|
jean paul <res...@gm...> writes: [snip] > But the compilation failed .. Here are the error messages: > http://imgur.com/feOicVU > and this: > The application has failed to start correctly (0xc0000142) > Click OK to close the application Is MinGW binary dir (the directory where g++.exe is) listed in your PATH? If not, try again after putting it at the front of PATH. |
From: Earnie B. <ea...@us...> - 2013-09-29 14:20:19
|
On Sun, Sep 29, 2013 at 6:46 AM, Óscar Fuentes wrote: > jean paul <res...@gm...> writes: > > [snip] > >> But the compilation failed .. Here are the error messages: >> http://imgur.com/feOicVU >> and this: >> The application has failed to start correctly (0xc0000142) >> Click OK to close the application > > Is MinGW binary dir (the directory where g++.exe is) listed in your > PATH? If not, try again after putting it at the front of PATH. Based on a Google for 0xc0000142, there maybe an issue on the client server at the system level. -- Earnie -- https://sites.google.com/site/earnieboyd |
From: Earnie B. <ea...@us...> - 2013-09-29 14:21:21
|
On Sun, Sep 29, 2013 at 10:20 AM, Earnie Boyd wrote: > On Sun, Sep 29, 2013 at 6:46 AM, Óscar Fuentes wrote: >> jean paul writes: >> >> [snip] >> >>> But the compilation failed .. Here are the error messages: >>> http://imgur.com/feOicVU >>> and this: >>> The application has failed to start correctly (0xc0000142) >>> Click OK to close the application >> >> Is MinGW binary dir (the directory where g++.exe is) listed in your >> PATH? If not, try again after putting it at the front of PATH. > > Based on a Google for 0xc0000142, there maybe an issue on the client > server at the system level. s/server/computer -- Earnie -- https://sites.google.com/site/earnieboyd |
From: jean p. <res...@gm...> - 2013-09-29 15:54:15
|
Yes, I have added the path of the bin directory to the system path variable, the same problem persist. 2013/9/29 Earnie Boyd <ea...@us...> > On Sun, Sep 29, 2013 at 10:20 AM, Earnie Boyd wrote: > > On Sun, Sep 29, 2013 at 6:46 AM, Óscar Fuentes wrote: > >> jean paul writes: > >> > >> [snip] > >> > >>> But the compilation failed .. Here are the error messages: > >>> http://imgur.com/feOicVU > >>> and this: > >>> The application has failed to start correctly (0xc0000142) > >>> Click OK to close the application > >> > >> Is MinGW binary dir (the directory where g++.exe is) listed in your > >> PATH? If not, try again after putting it at the front of PATH. > > > > Based on a Google for 0xc0000142, there maybe an issue on the client > > server at the system level. > > s/server/computer > > -- > Earnie > -- https://sites.google.com/site/earnieboyd > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk > _______________________________________________ > MinGW-users mailing list > Min...@li... > > This list observes the Etiquette found at > http://www.mingw.org/Mailing_Lists. > We ask that you be polite and do the same. Disregard for the list > etiquette may cause your account to be moderated. > > _______________________________________________ > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > Also: mailto:min...@li...?subject=unsubscribe > |