Menu

#47 Command line too long on link

open
nobody
None
5
2012-09-26
2003-02-28
Anonymous
No

Under windows 2000, if you have a large number of files
in your project, the link fails because the command line
string is too long for the shell.

Discussion

  • Richard van Wegen

    Logged In: YES
    user_id=693472

    Hi

    I raised this problem some time ago, and after some
    protracted discussion with Colin, the Dev-C++ development
    team have decided not to fix it, although it is technically
    straightforward to do so.

    That being the case, the way I've gotten around it is to install
    the command shell MSYS (see gnu's site) and use that to
    make the makefile.win that Dev-C++ produces. It is a hassle,
    but it works.

     
  • Colin Laplace

    Colin Laplace - 2003-07-28

    Logged In: YES
    user_id=25510

    I am looking for an alternate solution.
    There is a trick in config.sys which can do the job too, but
    it's not really good for NT/2000/XP :
    shell=c:\command.com /e:8192 /p

    another solution is to use a sort of script file in which gcc will
    read the file and params to compile.
    I'll be investigating more and if i don't find a good fix, i will
    probably implement that.

    Greetings,
    Colin

     
  • Marek Januszewski

    Logged In: YES
    user_id=609236

    richardvanwegen: what do you propose? you said it's
    straightforward to do - what exactly is the proposed solution?

     
  • aditsu

    aditsu - 2004-11-12

    Logged In: YES
    user_id=682737

    probably a duplicate of 990853

    Adrian

     

Log in to post a comment.