Menu

Errors Compiling in new Windows VISTA

Ronaldo
2006-06-17
2012-09-26
<< < 1 2 3 > >> (Page 2 of 3)
  • Ronaldo

    Ronaldo - 2006-06-21

    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 ?

     
  • Nobody/Anonymous

    well, then the corresponding executables are simply unavailable because the PATH environment variable not set up properly.

     
    • sucre

      sucre - 2008-12-21

      i still have a problem.
      it says it cant found the file crt2.
      what else can i do?
      thanks for the help.

       
  • Ronaldo

    Ronaldo - 2006-06-21

    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 =)

     
    • Nobody/Anonymous

      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.

       
      • Anonymous

        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!

        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

         
  • Anonymous

    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

     
  • S. Thomas Bradley

    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

     
    • Ronaldo

      Ronaldo - 2006-06-24

      > 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 =)

       
  • Soma

    Soma - 2007-02-13

    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

     
  • Wayne Keen

    Wayne Keen - 2007-02-13

    Ray,

    Take a gold star out of petty cash.

    Great job, how wonderfully persistent and considerate.

    Wayne

     
  • Nobody/Anonymous

    Thanks A LOT! Now i´m using de program in my Windows Vista Ultimate !!! :-)

     
  • Wayne Keen

    Wayne Keen - 2007-03-04

    Is this Sakamoto?

    If so, glad you are up and going.

    Wayne

     
  • Nobody/Anonymous

    It worked!

    Ellie

     
  • Kip

    Kip - 2007-03-12

    http://www.ubuntu.com

    Leep spreading the word of the gospel, Soma.

    Kip

     
  • Nobody/Anonymous

    Ray is the best thnaks man

     
  • Nobody/Anonymous

    It works fine!!! finally!

     
  • Nobody/Anonymous

    Ray, sorry for whatever discouraging things you may have experienced on these forums

     
  • Nobody/Anonymous

    Thanks a lot!

     
  • Nobody/Anonymous

    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??

     
    • Wayne Keen

      Wayne Keen - 2007-04-19

      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

       
  • Nobody/Anonymous

    Great!!!!
    It works for me too! Thank you!!

     
  • Nobody/Anonymous

    Se qualcuno capisce l'italiano mi può dire come risolvere il problema di compilazione che si ha con vista???
    help!!!!!

     
  • Nobody/Anonymous

    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\&quot;. Es: gcc.exe diventa c:\dev-cpp\bin\gcc.exe

    Bye

    C0cc3

     
<< < 1 2 3 > >> (Page 2 of 3)

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.