I can compile it without changing files to "bin" folder in the console prompt... I just need run make in C:\Dev-cpp\bin folder but g++ need the full path
g++.exe "C:\Dev-cpp\examples\hello\hello.o" -o "C:\Dev-cpp\examples\hello\hello.exe"
I can configure Dev-CPP to make the makefile with this ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have recently installed DevC++ on my Windows Vista system. I tried printing out something, but when I tried to run it, it gives me an error message saying "Source file not compiled." Although it compiles fine, yet it gives me the error message whenever I try running it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-08-11
Sigh.
Why did you attach your message to this very old message? You should have started a new thread or at the very least posted to the bottom of this thread and not as a response to a dodgy solution from more than a year ago! If you tried the suggested solution that will explain why it won't work!
and if that is not your problem you are certainly in the wrong thread. The thread you need is http://sourceforge.net/forum/forum.php?thread_id=1693710&forum_id=48211 Your question is unanswerable until you provide the information requested in that thread (start a new thread don't continue on this one)
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2006-06-21
>> I have tryed it too... and tryed to copy "libgcc.a" to project folder (like I have made with others files...) and I have the same problem !!!
At this point you should have re-posted the compile log (or checked it yourself) to be sure that the -LC:\Dev-Cpp\lib\gcc\mingw32\3.4.2 option was added to the linker command line.
Note that most options set in Tools|Compiler options, are not copied ot existing projects. You may need to set the option specifically in the project options, or recreate the project from scratch.
I think that Dev-C++ may place full paths in the project if the files are not in the same folder as the project file. Just an idea, may be worth a try if you really want to persevere with this. Personally I can't believe that you are still persevering with this!
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have been following along on this thread and see that it has bee resolved. However, I just had a thought which may or may not help in the future.
I had a program that had been written for Windows 98 which I installed on my computer which has Windows XP Pro. The program keep crashing.
I got it to work without any more problems by right clicking on the program's exe, selecting Properties > Compatibility tab > checked the box 'Run this program in compatibility mode for:' and selected 'Windows 98'.
I don't have Vista, but I was thinking that it too may have this ability so if you click on the Dev-C++ executable and set it to run on Windows XP compatibility mode it may resolve the issue.
It would be interesting to know if this works.
See Ya
Butch
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
> I don't have Vista, but I was thinking that it too may have this ability so if you click on the Dev-C++ executable and set it to run on Windows XP compatibility mode it may resolve the issue.
It doesn't work in this problem because the problem was generated by the "Windows Global Variables" ... Dev-C++ can't find programs if you dont write the entire way ... can't find "g++.exe" only "C:\Dev-CPP\bin\g++.exe" ...
Well... See ya! My program is working fine in Vista =)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
everything works properly untill i run the code... it runs the code then closes the window in a split second after it finished executing... how do i make it stay so i can see the result of the program with out it closing automatically ater the program executes??
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Devi modificare le opzioni del IDE. Tools->Compiler Options
1)Aggiungi "C:\Dev-Cpp\libexec\gcc\mingw32\3.4.2" nel TAB - Directories->Binaries
2)Aggiungi nel TAB Programs ad ogni voce in elenco "c:\dev-cpp\bin\". Es: gcc.exe diventa c:\dev-cpp\bin\gcc.exe
Bye
C0cc3
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can compile it without changing files to "bin" folder in the console prompt... I just need run make in C:\Dev-cpp\bin folder but g++ need the full path
g++.exe "C:\Dev-cpp\examples\hello\hello.o" -o "C:\Dev-cpp\examples\hello\hello.exe"
I can configure Dev-CPP to make the makefile with this ?
well, then the corresponding executables are simply unavailable because the PATH environment variable not set up properly.
i still have a problem.
it says it cant found the file crt2.
what else can i do?
thanks for the help.
Well ... here is my solution and, if anyone want start upgrading yours own softwares to Windows Vista...
Changes are in the makefile.win ... in the lines
CPP = c:\dev-cpp\bin\g++.exe
CC = c:\dev-cpp\bin\gcc.exe
here is the log...
Compilador: Default compiler
Executando make...
make.exe -f "Makefile.win" all
c:\dev-cpp\bin\g++.exe -c Hello.cpp -o Hello.o -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"
c:\dev-cpp\bin\g++.exe Hello.o -o "Hello.exe" -L"C:/Dev-Cpp/lib"
Execução terminada
Compilação bem sucedida
Well... I will use it until Dev-C++ have an upgrade to "fix" this problem caused by VISTA =)
I have recently installed DevC++ on my Windows Vista system. I tried printing out something, but when I tried to run it, it gives me an error message saying "Source file not compiled." Although it compiles fine, yet it gives me the error message whenever I try running it.
Sigh.
Why did you attach your message to this very old message? You should have started a new thread or at the very least posted to the bottom of this thread and not as a response to a dodgy solution from more than a year ago! If you tried the suggested solution that will explain why it won't work!
This is the correct solution: http://sourceforge.net/forum/message.php?msg_id=4156252
and if that is not your problem you are certainly in the wrong thread. The thread you need is http://sourceforge.net/forum/forum.php?thread_id=1693710&forum_id=48211 Your question is unanswerable until you provide the information requested in that thread (start a new thread don't continue on this one)
Clifford
>> I have tryed it too... and tryed to copy "libgcc.a" to project folder (like I have made with others files...) and I have the same problem !!!
At this point you should have re-posted the compile log (or checked it yourself) to be sure that the -LC:\Dev-Cpp\lib\gcc\mingw32\3.4.2 option was added to the linker command line.
Note that most options set in Tools|Compiler options, are not copied ot existing projects. You may need to set the option specifically in the project options, or recreate the project from scratch.
I think that Dev-C++ may place full paths in the project if the files are not in the same folder as the project file. Just an idea, may be worth a try if you really want to persevere with this. Personally I can't believe that you are still persevering with this!
Clifford
Hi Everyone:
I have been following along on this thread and see that it has bee resolved. However, I just had a thought which may or may not help in the future.
I had a program that had been written for Windows 98 which I installed on my computer which has Windows XP Pro. The program keep crashing.
I got it to work without any more problems by right clicking on the program's exe, selecting Properties > Compatibility tab > checked the box 'Run this program in compatibility mode for:' and selected 'Windows 98'.
I don't have Vista, but I was thinking that it too may have this ability so if you click on the Dev-C++ executable and set it to run on Windows XP compatibility mode it may resolve the issue.
It would be interesting to know if this works.
See Ya
Butch
> I don't have Vista, but I was thinking that it too may have this ability so if you click on the Dev-C++ executable and set it to run on Windows XP compatibility mode it may resolve the issue.
It doesn't work in this problem because the problem was generated by the "Windows Global Variables" ... Dev-C++ can't find programs if you dont write the entire way ... can't find "g++.exe" only "C:\Dev-CPP\bin\g++.exe" ...
Well... See ya! My program is working fine in Vista =)
O_o
I'm very thoroughly shocked.
Congratulations on getting Dev-C++ up and running, and thanks for posting the fix you had been able to develop. It will probably come in handy.
Wayne, if you read this, you need to add it to the FAQ.
Soma
Ray,
Take a gold star out of petty cash.
Great job, how wonderfully persistent and considerate.
Wayne
Thanks A LOT! Now i´m using de program in my Windows Vista Ultimate !!! :-)
Is this Sakamoto?
If so, glad you are up and going.
Wayne
It worked!
Ellie
http://www.ubuntu.com
Leep spreading the word of the gospel, Soma.
Kip
Ray is the best thnaks man
It works fine!!! finally!
Ray, sorry for whatever discouraging things you may have experienced on these forums
FYI, a post over on the wxDevC++ board:
http://wxforum.shadonet.com/viewtopic.php?t=13010&sid=100c0e4f5d13d083582e26efc7cd2614
Thanks a lot!
everything works properly untill i run the code... it runs the code then closes the window in a split second after it finished executing... how do i make it stay so i can see the result of the program with out it closing automatically ater the program executes??
Covered in the thread titled, "Please Read Before Posting a Question", and the FAQ, and in this forum on an almost daily basis.
Please look and try to answer your question for yourself before lazily blurting it out.
Wayne
Great!!!!
It works for me too! Thank you!!
Se qualcuno capisce l'italiano mi può dire come risolvere il problema di compilazione che si ha con vista???
help!!!!!
Devi modificare le opzioni del IDE. Tools->Compiler Options
1)Aggiungi "C:\Dev-Cpp\libexec\gcc\mingw32\3.4.2" nel TAB - Directories->Binaries
2)Aggiungi nel TAB Programs ad ogni voce in elenco "c:\dev-cpp\bin\". Es: gcc.exe diventa c:\dev-cpp\bin\gcc.exe
Bye
C0cc3