I'm trying to build Quantlib using Codeblocks and the Microsoft Visual Studio 2010 compiler. The number of files makes the command line arguments too long for the linker to handle. MSVS handles this by passing all the objects in a response file to the link.exe command. Could Code::Blocks support this too?
See http://quantlib.10058.n7.nabble.com/Building-QL-using-minwg-and-msys-td15836.html for a discussion on the problems building QuantLib in Code::Blocks
Thanks for the link, after reading Francois's posted thread, I think this is not Code::Blocks issue, but it is mainly Windows command line issue which don't support long files.
So, I'm going to close this tickets.
Thanks for the reply. Note that this will be a problem for compiling ANY large project on Windows/Code::Blocks. It's not specific to QuantLib.
It's a problem of the Windows command line, sure. But it affects Code::Blocks, so it might be worth to look for a workaround. Generating a different command to run the linker could be a possibility. (For instance: maybe the linker accepts a file containing the list of objects to link, instead of having to list them all on the command line?)
Yes, Luigi, that is exactly what I'm suggesting. Microsoft calls that a response file (the list of objects to link). See more on http://stackoverflow.com/questions/4689510/what-is-the-link-file-limit-using-visual-studios-link-exe
Last edit: Francois Botha 2014-09-29
Related ticket with initial support for response files https://sourceforge.net/p/codeblocks/tickets/953/
Closing as duplicate of [#953] because the other ticket has a patch and we have a discussion there.
Related
Tickets:
#953