From: Juan J. G. de S. L. <ska...@gm...> - 2009-07-31 07:36:19
|
Hi everybody. When trying to compile Xerces-C 3.0.1 with the Jade Native Plugin and Microsoft Visual Studio 2005, I've hit a well-beyond-16kB command line for the linker. This totally failed for me. I attach a patch that moves the MSVC linker command line to use a responseFile file in the output directory, into which the command line arguments are written. This is then passed to the linker as only one "object file" like @<path-to-responseFile>. This made the compilation work for me. I would suggest extending this kind of mechanism to the base linker class, allowing the derived class to specify whether it supports response files or not. This would be useful since gcc-mingw in Windows is subjected to the same command line length limits, but GNU tools seem to have supported @-based response files in order to overcome this for a long time. Please see http://gcc.gnu.org/wiki/Response_Files. Best regards, Juan Jesus. -- Dream small if success is enough for you; dream big if you need to change the world. |