|
From: Benson M. <ben...@gm...> - 2007-10-29 21:12:19
|
Hello, Is there anyone who would come in handy to help me diagnose whatever is happening to my Dev C++ compilation. I am running on a windows Vista platfrom (which really sacks)! I have installed Deve C++ and it's successfully compiling the code without any erros or warnings but the exe file does not run! Kindly help me. The compilation result is as follows.... Compiler: Default compiler Compiler: Default compiler Executing g++.exe... g++.exe "C:\Users\Benson\Desktop\test.cpp" -o "C:\Users\Benson\Desktop\test.exe" -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" Execution terminated Compilation successful Kind Regards Benson |
|
From: Chris M. <lor...@gm...> - 2007-10-29 23:29:23
|
What does it say when you try to run it? Find the executable and run it using the Windows DOS prompt. That should tell you some more detailed things about exactly why it's misbehaving. If you don't remember DOS, a little tiny primer: DIR = shows contents of current directory CD = change directory I forgot how to run stuff in DOS... haven't used it in a while :) On 10/29/07, Benson Mwangi <ben...@gm...> wrote: > Hello, > > Is there anyone who would come in handy to help me diagnose whatever is > happening to my Dev C++ compilation. > > I am running on a windows Vista platfrom (which really sacks)! I have > installed Deve C++ and it's successfully compiling the code without any > erros or warnings but the exe file does not run! > > Kindly help me. > > The compilation result is as follows.... > > Compiler: Default compiler > Compiler: Default compiler > Executing g++.exe... > g++.exe "C:\Users\Benson\Desktop\test.cpp" -o > "C:\Users\Benson\Desktop\test.exe" > -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" > -I"C:\Dev-Cpp\include\c++\3.4.2\backward" > -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" > -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" > -L"C:\Dev-Cpp\lib" > Execution terminated > Compilation successful > > Kind Regards > > Benson > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: > http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > -- Registered Linux Addict #431495 http://profile.xfire.com/mrstalinman John 3:16! |
|
From: Chris M. <lor...@gm...> - 2007-10-29 23:42:56
|
On 10/29/07, Benson Mwangi <ben...@gm...> wrote: > Hi Chris, > > Yep, in Dos it runs quite perfectly well..I can get the Hello World now..I > hope other complex programs run tooo...though it's still a pain the neck > that one has to move to the DOS command prompt to run/execute programs. > > I will however, do with this for now but just incase you are able to bust > the bug let me know. > > Kind Regards > I would suggest creating a small batch file that you can double-click to execute the program, and then creating a shortcut to it on your desktop. Or make it a "external tool" you can execute from DevC++. Or both... -- Registered Linux Addict #431495 http://profile.xfire.com/mrstalinman John 3:16! |
|
From: Per W. <pw...@ia...> - 2007-10-29 23:49:07
|
Have you tested with a simple hello-world application? Right now, all we know is that you have a file text.cpp and that you don't get any errors when generating the test.exe. Then you say that test.exe doesn't run. We really do need more information, to be able to help. /pwm On Mon, 29 Oct 2007, Benson Mwangi wrote: > Hello, > > Is there anyone who would come in handy to help me diagnose whatever is > happening to my Dev C++ compilation. > > I am running on a windows Vista platfrom (which really sacks)! I have > installed Deve C++ and it's successfully compiling the code without any > erros or warnings but the exe file does not run! > > Kindly help me. > > The compilation result is as follows.... > > Compiler: Default compiler > Compiler: Default compiler > Executing g++.exe... > g++.exe "C:\Users\Benson\Desktop\test.cpp" -o > "C:\Users\Benson\Desktop\test.exe" > -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" > -I"C:\Dev-Cpp\include\c++\3.4.2\backward" > -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" > -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" > Execution terminated > Compilation successful > > Kind Regards > > Benson > |
|
From: Chris M. <lor...@gm...> - 2007-10-29 23:58:49
|
I believe the problem to be the way that DevC++ tries to execute external things. I know that a lot of junk changed in Vista with regards to application access controls, so it might be running into a UAC block. Just a theory, I don't own Vista and only beta tested it for a few weeks, and never with DevC++. YMMV. On 10/29/07, Per Westermark <pw...@ia...> wrote: > Have you tested with a simple hello-world application? > > Right now, all we know is that you have a file text.cpp and that you don't > get any errors when generating the test.exe. Then you say that test.exe > doesn't run. > > We really do need more information, to be able to help. > > /pwm > > On Mon, 29 Oct 2007, Benson Mwangi wrote: > > > Hello, > > > > Is there anyone who would come in handy to help me diagnose whatever is > > happening to my Dev C++ compilation. > > > > I am running on a windows Vista platfrom (which really sacks)! I have > > installed Deve C++ and it's successfully compiling the code without any > > erros or warnings but the exe file does not run! > > > > Kindly help me. > > > > The compilation result is as follows.... > > > > Compiler: Default compiler > > Compiler: Default compiler > > Executing g++.exe... > > g++.exe "C:\Users\Benson\Desktop\test.cpp" -o > > "C:\Users\Benson\Desktop\test.exe" > > -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" > > -I"C:\Dev-Cpp\include\c++\3.4.2\backward" > > -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" > > -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" > > Execution terminated > > Compilation successful > > > > Kind Regards > > > > Benson > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > -- Registered Linux Addict #431495 http://profile.xfire.com/mrstalinman John 3:16! |
|
From: seb_kramm <seb...@ya...> - 2007-10-30 10:41:05
|
Perhaps some kind of DEP problem ? http://en.wikipedia.org/wiki/Data_Execution_Prevention Quote: "In some instances, Data Execution Prevention can have the unintended consequence of preventing legitimate software from executing. In these cases, the affected software needs to be flagged as being allowed to execute code in those parts of memory, but this itself leads to a possible attack if the application isn't rigorous in validating data that is passed into a region of memory that is marked as being executable." I Benson Mwangi a écrit : > Hello, > > Is there anyone who would come in handy to help me diagnose whatever is > happening to my Dev C++ compilation. > > I am running on a windows Vista platfrom (which really sacks)! I have > installed Deve C++ and it's successfully compiling the code without any > erros or warnings but the exe file does not run! > > Kindly help me. > > The compilation result is as follows.... > > Compiler: Default compiler > Compiler: Default compiler > Executing g++.exe... > g++.exe "C:\Users\Benson\Desktop\test.cpp" -o > "C:\Users\Benson\Desktop\test.exe" > -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" > -I"C:\Dev-Cpp\include\c++\3.4.2\backward" > -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" > -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" > Execution terminated > Compilation successful > > Kind Regards > > Benson > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Per W. <pw...@ia...> - 2007-10-30 11:48:30
|
Hold your horses. Don't make life so complicated! We are not talking about self-modifying code, or trying to execute code from data or stack segments. M$ Windoze do close console applications as soon as they end - unless they are started from a command line. M$ own tools have a workaround built-in for this case. Dev-C++-generated console applications needs their own workaround. /pwm On Tue, 30 Oct 2007, seb_kramm wrote: > Perhaps some kind of DEP problem ? > > http://en.wikipedia.org/wiki/Data_Execution_Prevention > > Quote: > "In some instances, Data Execution Prevention can have the unintended con= sequence of > preventing legitimate software from executing. In these cases, the affect= ed software > needs to be flagged as being allowed to execute code in those parts of me= mory, but > this itself leads to a possible attack if the application isn't rigorous = in > validating data that is passed into a region of memory that is marked as = being > executable." > > I > > Benson Mwangi a =E9crit : > > Hello, > > > > Is there anyone who would come in handy to help me diagnose whatever is > > happening to my Dev C++ compilation. > > > > I am running on a windows Vista platfrom (which really sacks)! I have > > installed Deve C++ and it's successfully compiling the code without any > > erros or warnings but the exe file does not run! > > > > Kindly help me. > > > > The compilation result is as follows.... > > > > Compiler: Default compiler > > Compiler: Default compiler > > Executing g++.exe... > > g++.exe "C:\Users\Benson\Desktop\test.cpp" -o > > "C:\Users\Benson\Desktop\test.exe" > > -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" > > -I"C:\Dev-Cpp\include\c++\3.4.2\backward" > > -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4= =2E2" > > -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" > > Execution terminated > > Compilation successful > > > > Kind Regards > > > > Benson > > > > > > > > -----------------------------------------------------------------------= - > > > > -----------------------------------------------------------------------= -- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > > > > -----------------------------------------------------------------------= - > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |