Menu

Link Error - Command Line Too Long?

2002-11-11
2012-09-26
  • Nobody/Anonymous

    A long time ago I posted a message on the forum asking about linking many .o files together and I was getting a response Bad Command from DOS. It was never answered satisfactorily at the time. (I am using WinMe.)

    I am recently facing this same problem again and I am wondering if anyone can help me.

    I have searched the Net for info on maximum command line lengths in DOS but this seems to to be 4K (4096 chars) allowed so this should not be the cause of the problem.

    Then I came across a site which mentioned that the problem may be linker specific and that the linker was truncating the line. It did not give any more details though. Does anyone know if there is a limit to the length of the command that g++.exe will accept? (My complete command was 615 chars long when it failed.)

    If there is a limit (say 512 chars) is there a work around for this? Can I do incremental links and if so how do I do it?

    BlakJak :]

     
    • Nobody/Anonymous

      Should be 4096 chars long on win9x.
      I have to split my project into 3 static lib projects and the exe project.
      But on XP (at my workplace) I could build my project without splitting it.
      So it appears to be command line problem (good old DOS behind), not a linker one.

      rpeter

       

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.