Menu

Errors Compiling in new Windows VISTA

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

    Ronaldo - 2006-06-17

    I have tried with many adjusteds in Dev-C++ like seting path in Windows to know MingW path but... I can't fix this error "ld: not found -lgcc" ... some one know can I fix this ? or ... if will have an update to compile in Windows VISTA!

     
    • Wayne Keen

      Wayne Keen - 2008-12-21

      As a final note on this thread, please note that getting Deev to work with Vista is not a trivial task, and is somewhat of a high pass filter. If you find yourself coming back and saying "I can't make this work" - then you are probably better off going with another tool. (Visual C++ Express, CodeBlocks etc.)

      The intent of my telling you this is not to insult you, but comes from a perspective of "life is too short to waste on getting an IDE going that is several years old anyway" - I do NOT like to see you frustrated, believe me.

      PLEASE do not post further to this thread.

      Wayne

       
    • Nobody/Anonymous

      what are your project settings?
      -lgcc doesn't seem right in any way.
      Also, if you are using Vista, why don't you use the free Visual Studio Express, too?

       
    • Anonymous

      Anonymous - 2006-06-17

      Post the entire compile log (as you are asked to do in the "<-PLEASE READ BEFORE POSTING A QUESTION" thread).

      -lgcc is an option passed to the linker to link libgcc.a. This is normally linked by default in anycase, so need not normally be done explicitly. However, in this case the linker is interpreting the option as a filename (which it is not), so there is somethinge else wrong with the linker invokation; which is why you should always post the log.

      It seem likely that you have 'fiddled' with some of the parameters or settings. For a start, when building from within the IDE, you need not normally set the PATH externally; this is done in Tools|Compiler options|Directories.

      Clifford

       
    • Ronaldo

      Ronaldo - 2006-06-17

      Well this is the error...

      ld: not found -lgcc BUILD [WorldOT.exe] ERROR 1

      In Windows XP i can compile without errors or warnings... I have tryed in Vista but first time I have only [BUILD] ERROR 1 ... after set Path in Windows settings The make can make all *.o files of my project but when linking I have this error "ld: not found -lgcc BUILD [WorldOT.exe] ERROR 1"
      Vista have many new security access to write and read data in the disc... I think here is the problem, I have tryed in a command line "make -f makefile.win" and got the same error!

      And in Windows VISTA the private file .rc can't have version... I have tryed put version and linker can't find windows.h ... but in Windows XP have no problem!

       
    • Anonymous

      Anonymous - 2006-06-17

      >> Well this is the error...

      Yes, you said that the first time. Buit that is not what I asked for! The Compile Log is the entire text that appears on the Compile Log tab, right click within this window to copy the text and paste it here.

      I don't think Vista's security is necessarily an issue here, the linker message is reporting that it cannot find a file, but "-lgcc BUILD" is not a file.

      Clifford

       
    • Nobody/Anonymous

      how exactly did you install vista?
      are you running it on the same machine as Win XP?
      where did you download DevC++?
      What's the size of the file you downloaded?
      how exactly did you INSTALL DevC++ for each OS?
      WHERE did you install it? (drive, folder, paths)
      what project settings are you using?
      are you able to compile a simple "hello world" program from scratch? (WITHOUT modifying ANY settings!)

       
    • Wayne Keen

      Wayne Keen - 2006-06-17

      Ronaldo,

      Please take a moment and check out the thread in this forum titled "Please Read Before Posting a Question" - the section on the "Basic 3".

      Please post your Basic 3.

      Wayne

       
    • Ronaldo

      Ronaldo - 2006-06-18

      I'm using Windows XP again because I've an work to finish in this week (the same project, compile normal in XP and got errors in VISTA)...

      I will install VISTA again and post here all compile logs!!!

       
      • Nobody/Anonymous

        After exhaustive trial and error on my part. I tried the fixes others mentionned here, but they didn't seem to work. It could be because there is no clear topic saying how to install in windows vista.

        I then went throught the steps from the FAQ for deleting and clean install. I completed all the steps.
        I ran the uninstall, then I deleted the dev-cpp folder, and then I deleted devcpp.ini and .cfg files that
        I found.
        I then re-downloaded dev-cpp4.9.9.2 with mingw compiler. I then reinstalled it. Once again it gave me the error about not finding cc1.

        I went into the compiler options and then once more tried to see what would work. What worked for me was this:

        1)add "C:\Dev-Cpp\libexec\gcc\mingw32\3.4.2" to the binaries location under the directories tab
        2)go to the programs tab and add c:\dev-cpp\bin\ to all the listings.

        I then was able to compile my c programs completely and have them run correctly.

        I did not have to add anything to my path environmental variables for windows vista (which is good as it had been posted elsewhere that we shouldn't have to do that).

        Anyhow, that is what worked for me. I am running dev-cpp on Windows Vista Business Edition (official version).

        Ray

         
        • Anurag Patil

          Anurag Patil - 2009-08-04

          I have done this successfully. You can try following:

          http://www.anuragpatil.com/wordpress/?p=161

          Hope this helps.

           
      • Anonymous

        Anonymous - 2006-06-18

        You are not giving much away are you!? This is limiting how much we are able to assist. If you installed Vista by upgrading XP, then I suggest that you re-install Dev-C++ AFTER installing Vista.

        In fact it is probably wise to uninstall it before performing the upgrade. Makesure you zap any config files as well, using the guidelines at http://sourceforge.net/forum/forum.php?thread_id=1036469&forum_id=48211.

        Clifford

         
        • Ronaldo

          Ronaldo - 2006-06-20

          I have two computers, one with VISTA and one with XP, the same Libraries (I have downloaded Dev-C++ and the Libraries again in computer running VISTA)... and, I can't compile anything in Windows VISTA (my project or the examples...)

           
    • Nobody/Anonymous

      See also:
      http://www.devsource.com/print_article2/0,1217,a=181256,00.asp
      Enjoy! ;-)

      "Application Testing Under Windows Vista"

      "Vista is supposed to be faster, more reliable, and more secure. The result is that you can't assume your older Windows apps - particularly the ones you wrote - will work. DevSource.com's John Mueller points out where the bodies are buried in Vista's graphics, security, hardware, and third party applications, and where to start digging."

       
      • Ronaldo

        Ronaldo - 2006-06-20

        Well... my program can run in Windows VISTA without errors!!! (I have compiled in XP and copied it to this computer running VISTA and it can run without problems...)

         
    • Nobody/Anonymous

      I can't help thinking about that poor guy starting that other thread asking how to support Windows 3.1!

      ;-)

       
    • Ronaldo

      Ronaldo - 2006-06-20

      The first Error Compiling with Windows VISTA (I have installed VISTA in a New Computer, downloaded the latest version of Dev-C++ in www.bloodshed.net !!!)

      Trying to compile the example "Hello"!

      Compilador: Default compiler
      Building Makefile: "C:\Dev-Cpp\Examples\Hello\Makefile.win"
      Executando make...
      make.exe -f "C:\Dev-Cpp\Examples\Hello\Makefile.win" all
      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"

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

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

      Execução terminada

      Now I have set the Windows Path to this folder

      The first Error Compiling with Windows VISTA (I have installed VISTA in a New Computer, downloaded the latest version of Dev-C++ in www.bloodshed.net !!!)

      Trying to compile the example "Hello"!

      Compilador: Default compiler
      Building Makefile: "C:\Dev-Cpp\Examples\Hello\Makefile.win"
      Executando make...
      make.exe -f "C:\Dev-Cpp\Examples\Hello\Makefile.win" all
      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"

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

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

      Execução terminada

      Now I have set the Windows Path to this folder

      C:\Dev-Cpp\libexec\gcc\mingw32\3.4.2

      And...

      Compilador: Default compiler
      Building Makefile: "C:\Dev-Cpp\Examples\Hello\Makefile.win"
      Executando make...
      make.exe -f "C:\Dev-Cpp\Examples\Hello\Makefile.win" all
      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"

      g++.exe Hello.o -o "Hello.exe" -L"C:/Dev-Cpp/lib"

      ld: crt2.o: No such file: No such file or directory

      make.exe: *** [Hello.exe] Error 1

      Execução terminada

      The file crt2.o is in this folder "C:\Dev-Cpp\lib"
      Well... when I copy this file to "C:\Dev-Cpp\Examples\Hello\&quot;

      Compilador: Default compiler
      Building Makefile: "C:\Dev-Cpp\Examples\Hello\Makefile.win"
      Executando make...
      make.exe -f "C:\Dev-Cpp\Examples\Hello\Makefile.win" all
      g++.exe Hello.o -o "Hello.exe" -L"C:/Dev-Cpp/lib"

      ld: crtbegin.o: No such file: No such file or directory

      make.exe: *** [Hello.exe] Error 1

      Execução terminada

      And... this file "crtbegin.o" is in "C:\Dev-Cpp\lib\gcc\mingw32\3.4.2" Well... I copy it to "C:\Dev-Cpp\Examples\Hello\&quot; ...

      And now!!! This error I can't fix!! :(

      Compilador: Default compiler
      Building Makefile: "C:\Dev-Cpp\Examples\Hello\Makefile.win"
      Executando make...
      make.exe -f "C:\Dev-Cpp\Examples\Hello\Makefile.win" all
      g++.exe Hello.o -o "Hello.exe" -L"C:/Dev-Cpp/lib"

      ld: cannot find -lgcc

      make.exe: *** [Hello.exe] Error 1

      Execução terminada

      Here is all logs!!!

       
    • Nobody/Anonymous

      apparently MS Windows is about to explore the subtleties of having fine-grained permission control for a file system, thus you might in fact want to check out that you have the corresponding permissions to run the files required by devc++

       
    • Nobody/Anonymous

      apparently MS Windows is about to explore the subtleties of having their userbase migrate to Linux and OS X.

       
    • Nobody/Anonymous

      The currently user have "Full Controll" in C:\Dev-Cpp*.* ...

       
    • Ronaldo

      Ronaldo - 2006-06-20

      Yes... my user have Full Controll in C:\Dev-Cpp*.* and is in administrators group!

       
    • Anonymous

      Anonymous - 2006-06-20

      Since it seems likely that it is a Vista problem, and few of us are running Vista, you are probably on your own. You should not have to resort to setting paths and moving files to get the tools to work - if you end up having to do that, it is probably time ot give up. Maybe the release version of Vista will resolve some issues.

      In the meantime, if you really need ot develop on Vista, I suggets you use MSVC++ 2005 Express Edition. It is free, and frankly superior to Dev-C++; just don't tell anyone I said so ;-).

      Clifford

       
    • Anonymous

      Anonymous - 2006-06-20

      ... as I said, I think it is time to give up, compilation should not be this hard. However you can probably 'fix' the "ld: cannot find -lgcc" error by adding C:\Dev-Cpp\lib\gcc\mingw32\3.4.2 under Tools|Compiler options|Directories|Libraries

      This is just a workaround, I would not recommend it as a permanant solution.

      Clifford

       
    • Ronaldo

      Ronaldo - 2006-06-20

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

      Well, I will download MSVC++ 2005 Express Edition in my computer runing VISTA and Try compile... so... in my project I need some libraries, booster, XML, MySQL and LUA, I can use the same libraries (that I'm using in Dev-Cpp folder) ???

      Thank's in advance!

       
    • Ronaldo

      Ronaldo - 2006-06-21

      Well... news here!!! ... I have "fix" the last problem but it will create a new problem :p

      If I put all object files (*.o) in "bin" folder "C:\Dev-cpp\bin" ...

      Executando make...
      make.exe -f "C:\Dev-Cpp\bin\Makefile.win" all
      g++.exe Hello.o -o "Hello.exe" -L"C:/Dev-Cpp/lib"

      Execução terminada
      Compilação bem sucedida

      Someone based on this solution... have another ? cuz my project have 30 object files =\

       
1 2 3 > >> (Page 1 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.