Menu

Vista no compilation

2006-10-05
2012-09-26
  • Nobody/Anonymous

    I'm a highschool student using Dev-C++ to work on some programs at home. I just recently installed Vista and Dev-C++ won't compile correctly. I'll tell the program to compile(it never gives any errors no matter what you put it) once I tell it to run the program says it was never compiled.

    I've tried this with Dev-C++ 4.9 and its portable version (I use it on my flash drive occasionaly)

     
    • Wayne Keen

      Wayne Keen - 2006-10-05

      Did you really mean 4.9, not 4.9.9.2? 4.9 would be years old...

      Are you sure you have administrative privileges on the machine?

      Can you post your compile log please? Its on the tab labeled "Compile Log", and the right mouse button brings up the copy menu.

      Wayne

       
      • Nobody/Anonymous

        Hello, I am also having this problem (can't compile on Vista). The strange part about it is that the log says that it compiled successfully. Here is the log of one of my recent tries (and it is a very simple C program(I have been using one of my uncle's old books to teach myself how to write code)):

        Compiler: Default compiler
        Executing gcc.exe...
        gcc.exe "C:\Dev-Cpp\test2.c" -o "C:\Dev-Cpp\test2.c" -l"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
        gcc.exe: installation problem, cannot exec 'cc1': No such file or directory
        Execution terminated
        Compilation successful

        What I noticed about this is that it says that there was an "installation problem," but it still compiled "successfully." Then, when I try to run the program, it tells me that the source file isn't compiled.

        Also, all the programs that I made when I had XP (I recently upgraded to Vista) still run on Vista, I just can't make any new programs.

        I have already tried completely removing Dev-Cpp from my computer and reinstalling it, and It still didn't work.

        Note: I am using Dev-C++ 4.9.9.2

         
        • Anonymous

          Anonymous - 2007-04-14

          You have dug up a 6 month old thread rather than looking in the "PLEASE READ BEFORE POSTING A QUESTION" thread where the problem is dealt with!

           
    • Nobody/Anonymous

      Yeah its 4.9.9.2, I didnt remember the exact number. But I just downloaded it the otherday from the main site. I am logged in as the administrator on this computer, but with Vista's new permission system I wasnt sure. So I just finished testing it in compatibility mode with "Run as administrator" Enabled. The result was the same and so is the log.

      Compiler: Default compiler
      C:\Users\William\Desktop\woot.cpp
      Compiling
      Done.

      Nothing interesting -_-

       
    • Wayne Keen

      Wayne Keen - 2006-10-05

      That doesn't look like any compile log I have ever seen. Did you post all of it? Did you post what's on the tab labeled "Compile Log", and not what is on the tab labeled "Compiler"?

      For comparison, this is a semi-typical log:

      Compiler: Default compiler
      Compiler: Default compiler
      Executing g++.exe...
      g++.exe "C:\Dev-Cpp\testit.cpp" -o "C:\Dev-Cpp\testit.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

      Do you perhaps have another compiler in your path that could be being called?

      Wayne

       
    • Nobody/Anonymous

      Sorry your right I posted the wrong info -_-. I havnt explored this program as much as I should have.
      Compiler: Default compiler
      Executing g++.exe...
      g++.exe "C:\Users\William\Desktop\woot.cpp" -o "C:\Users\William\Desktop\woot.exe" -I"C:\Users\William\Desktop\PortableDev-Cpp\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Users\William\Desktop\PortableDev-Cpp\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Users\William\Desktop\PortableDev-Cpp\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Users\William\Desktop\PortableDev-Cpp\Dev-Cpp\include\c++\3.4.2" -I"C:\Users\William\Desktop\PortableDev-Cpp\Dev-Cpp\include" -L"C:\Users\William\Desktop\PortableDev-Cpp\Dev-Cpp\lib"
      g++.exe: installation problem, cannot exec `cc1plus': No such file or directory

      Execution terminated
      Compilation successful

      I'm not sure why its the program is looking for in portableDev-Cpp. I'm using the installed version. I've also searched for this cc1plus it seems to be where is should be.

       
    • Wayne Keen

      Wayne Keen - 2006-10-06

      Did you install Dev on your desktop?

      Wayne

       
    • Nobody/Anonymous

      Its the portable version. I used the portable verion on my schools PC (we cant install anything so it was the best solution). When I wanted it on my Vista installation I already had the portable version extractor on hand so I used it. After it didnt work I installed the normal version.

       
    • Anonymous

      Anonymous - 2006-10-06

      Portable version?

       
    • Nobody/Anonymous

      Yeah a portable version. Its ment to run off of a USB key without leaving any file behind on the computer. So no installation or local files. Its all self contained. Its normaly done through a shell they redirects file access. I rarly used the normal version of Dev-c++.

       
      • Anonymous

        Anonymous - 2006-10-06

        Where did you get it from? You mentioned "the prtable version" like it was some official version that we should all be aware of, but it is the first I have heard of it.

        There was a recent thread on the subject (http://sourceforge.net/forum/message.php?msg_id=3922852), but if you have a better method, we'd be interested.

        Clifford

         
      • S. Thomas Bradley

        Hi Everyone:

        The compiler path you give is drive C:. If you installed Dev-C++ on a USB memory stick as I outlined, then the Dev-Cpp folder should be on the memory stick, which in the example I gave was E:. The compiler paths should look something like:

        Executing g++.exe...
        g++.exe "C:\Users\William\Desktop\woot.cpp" -o "C:\Users\William\Desktop\woot.exe" -I"E:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"E:\Dev-Cpp\include\c++\3.4.2\backward" -I"E:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"E:\Dev-Cpp\include\c++\3.4.2" -I"E:\Dev-Cpp\include" -L"E:\Dev-Cpp\lib" .....

        It would appear to me that you didn't install Dev-Cpp on the memory stick, or at least didn't follow my instructions.

        If I'm wrong, and you did install it correctly then I would guess that another copy of Dev-Cpp is, or has been installed on that computer at some point and the devcpp.cfg and devcpp.ini files are still there and are pointing to that version. In this case, you need to find those two files and delete them, then restart Dev-C++ from the USB memory stick, which as I outlined in (2) Double click Dev-Cpp icon will create new devcpp.cfg and devcpp.ini files on C:.

        This will, of course, leave a trace that you were on that computer. If you don't want to leave any trace on that computer you will have to always start Dev-Cpp from the command prompt as I outlined in (1).

        Lastly, don't put stuff on the desktop, it cause other problems.

        Let use know if this works

        See Ya
        Butch

         
    • Nobody/Anonymous

       
    • Nobody/Anonymous

      It looks like I'm going to have to explain -_-. What I used before was Dev C++ ran inside of a portable shell program really. The shell redirects requests of certain files (settings normaly saved on the installed computer) to certain files within itself. This allows to program to run without leaving anything behind on the computer.

      Unfortunaly the host site has gone down. The page for it was http://www.portasoft.org/e107/page.php?19 if you use googles cache you could find the download, its offsite. I have uploaded it onto rarhost for the time being. You should look at it
      http://www.rarhost.com/download-z753vy.html

      There are many programs that use the same method at http://portableapps.com/ I've used alot of them before on my USB key too.

       
    • Anonymous

      Anonymous - 2006-10-07

      You are the only person as far as I can recall to have ever mentioned this 'Portable Version' on this forum - hence my confusion, you spoke of it as if we all were aware of it. I would be wary of any non-official release that has coerced Dev-C++ into installing an a manner that it may not have been designed for.

      Anyway, back to your problem: There have been mixed reports on using Dev-C++ on Vista, so you may be unlucky. Being in Beta at present, I would suggest that you only ever use Vista on a spare PC or have it dual boot. If you are to rely on this computer for productivity, you should not be running Vista on it at present - that would be bonkers!

      Looking back at the logs you posted. It seems probable that you have caused a problem by having worked with more than one installation. I suggest that you blow away all traces of any version, by uninstalling and deleting the installation folders and then seeking and destroying any remaining configuration files (details are in the "<-PLEASE READ BEFORE POSTING A QUESTION" thread). And then reinstall the version (4.9.9.2) that we generally support here from: http://www.bloodshed.net/dev/devcpp.html

      Clifford

       
    • Nobody/Anonymous

      The only reason I'm using Vista is because my XP installation isnt working. I bought a new motherboard with a newer graphical slot for when I upgrade this winter. This board was also one of the few boards with integrated graphics certified to run Vista's Aero Glass theme.

      However after I finished replacing the board and tried to reboot XP died. My only option to have a working computer was the install Vista on my second harddrive (I wanted to do this anyways as a dual boot.)

      Also Vista is now at Release Canidate 1, its no longer a beta. Its stability has increased drasticly and many of those who reviewed it almost never use XP anymore.

      Anyways I guess I should borrow my friends XP disk again and attempt to repair the installation.

       
      • Anonymous

        Anonymous - 2006-10-08

        Perhaps you should have had a licensed copy of XP in the first instance - certainly before attempting a major hardware upgrade!

        Anyway, I am doubting that this is even a Vista issue rather than just a screwed installation.

        BTW when reinstalling, I advise letting Dev install to its default folder at c:\dev-cpp. That way it is easier to support you, and to confirm that your Compile Logs are 'normal'.

        Clifford

         
    • Nobody/Anonymous

      -_- I did let it install in its default folder. I just tried using the portable version first (I already had it availible). When I downloaded the normal version from the site I let it install in the defualt directory.

      I just didnt think before that I would need the disk. I originaly used my friends disk after my first XP installation on my Emachines died. When the motherboard eventually died I bought a new motherboard/cpu/ram and when I installed them the old XP installtion worked fine. I just figured it would be the same this time around. The only thing that is different is that my new board uses a nForce chipset insted of a VIA like my olderone.

      Anyways I completly removed the portable installation then the normal. I've done a complete reinstall making sure to removed all previous configuration files. Its still not working for the same reason as before

      Compiler: Default compiler
      Executing g++.exe...
      g++.exe "C:\Users\William\Desktop\woot.cpp" -o "C:\Users\William\Desktop\woot.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"
      g++.exe: installation problem, cannot exec `cc1plus': No such file or directory

      Execution terminated
      Compilation successful

       
    • Anonymous

      Anonymous - 2006-10-08

      OK, maybe this is a Vista issue after all then - but it was worth getting a 'standard' configuration in order to discount that possibility first.

      Have you tried searching the forum to the two or three other threads on Vista peoblems?

      You might try explicitly adding C:\Dev-Cpp\libexec\gcc\mingw32\3.4.2 t the PATH environment variable to force it to find cc1plus.exe, but normally gcc finds this by it's relationship to C:\Dev-Cpp\bin, so I don't hold much hope for this solution.

      Clifford

       
    • Nobody/Anonymous

      I tried it and got the message:

      Compiler: Default compiler
      Building Makefile: "C:\Dev-Cpp\Makefile.win"
      Executing make...
      make.exe -f "C:\Dev-Cpp\Makefile.win" all
      g++.exe -c Untitled1.cpp -o Untitled1.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"

      g++.exe: installation problem, cannot exec `cc1plus': No such file or directory

      make.exe: *** [Untitled1.o] Error 1

      Execution terminated

      this did not happen on my xp, but my it happened to my brother on his. I have tried every solution in the FQS. I am a new programer, can you please help.

       

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.