Menu

Invalid argument ld returned 1 exit stat

Lelio83
2007-10-13
2012-09-26
<< < 1 2 (Page 2 of 2)
  • Anonymous

    Anonymous - 2007-10-14

    It would have been quicker to have just reposted to log as I asked by copy & paste than to have explained at length how it is the same!

    At this point I would suggest that you run chkdsk /f.

     
  • Lelio83

    Lelio83 - 2007-10-14

    Uh ok my new compile log is:

    Compilatore: Default compiler
    Esecuzione di gcc.exe...
    gcc.exe "C:\prova.c" -o "C:\prova.exe" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
    C:\Dev-Cpp\Bin..\lib\gcc\mingw32\3.4.2........\mingw32\bin\ld.exe: cannot open output file C:\prova.exe: Invalid argument
    collect2: ld returned 1 exit status

    Esecuzione terminata

     
    • Osito

      Osito - 2007-10-14

      Make sure you C:\ folder isn't write-protected. I've seen it be that way by default on some computers but that might just be a Vista thing, not sure.

       
    • Anonymous

      Anonymous - 2007-10-14

      ... and the chkdsk result?

       
  • Lelio83

    Lelio83 - 2007-10-14

    I'm not able to insert here the chkdsk /f result but it says nothing wrong with c:\

     
  • Lelio83

    Lelio83 - 2007-10-14

    My c:\ folder is not write protected

     
    • Wayne Keen

      Wayne Keen - 2007-10-14

      To clear up doubts in another area, I would recommend doing a complete/clean
      uninstall.

      Please note that there are some instructions and guidelines for doing this
      in the "Please Read" thread. It is vital that you remove ALL traces of
      Dev before you reinstall. This requires you to do things like search for
      Dev files, and make SURE that you are looking in hidden system folders.
      (Windows search is NOT set up that way by default)

      Finally, PLEASE note that the directions are VERY pointed about noting
      exactly what you did, and reporting exactly what you did if you are
      still having problems. Simply stating something like "I did exactly
      what they said" is NOT reporting the exact steps you took.

      Wayne

       
  • Anonymous

    Anonymous - 2007-10-15

    You still have not responded regarding chkdsk.

    Dumping your project in C:\ is just as dumb as C:\Dev-Cpp! Create a new folder!

     
  • Anonymous

    Anonymous - 2007-10-15

    According to http://sourceforge.net/forum/forum.php?thread_id=1845164&forum_id=48211 the culprit may be the system("pause") call.

     
  • Anonymous

    Anonymous - 2007-10-18

    OK - when the program is sitting there at the end waiting for user input are you SURE you are at some point giving that input and not just leaving it there - at that point the code is still running! I kind of assumed we'd covered that in the first place, but it seems that may now be the case.

    If you want to work around this, simply run the code from a command console window - because your code then runs as a child process, the window will not close on completion.

     
  • Anonymous

    Anonymous - 2007-10-18

    Give up, use VC++ 2005 Express Edition

     
  • Anonymous

    Anonymous - 2007-10-20

    Well since the default is NTFS that would count as unusual! ;-) You seem to have omitted an answer to the first question about why you needed to format the drive - although perhaps that is the answer since FAT32 is far less robust and might require a reformat if it were really munged.

    Anyway I think we have established from this and at least one other thread that the file system is not the problem, but rather the OS failing to terminate the process or at least failing to unlock the executable after termination. I have never seen this and cannot explain it, and am inclined to assume user error - but for two users to experience identical symptoms, this too seems unlikely. I am stumped.

    Have you been monitoring the other forum regarding the apparently similar issue? http://sourceforge.net/forum/forum.php?thread_id=1845164&forum_id=48211 There RDS has reported success after creating a new user profile and installing Dev-C++ to that. Did you install Dev-C++ for "All users" or "Current user" - since it seems to be related to the profile, perhaps there is an issue there. Make sure you blow away all Dev-C++ configuration files stored in all profiles (including All users) before re-installing.

    After reformatting did you create new clean user profiles or restore them from backup?

    Clifford

     
<< < 1 2 (Page 2 of 2)

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.