Fixes mex compile bug on MATLAB R2013b & Windows

fatal error LNK1170: line in command file contains 131071 or more characters
181 téléchargements
Mise à jour 16 avr. 2014

Afficher la licence

The attached mex_improved.pl files fixes a bug in the mex.pl file in the MATLAB /bin folder that is used to compile c code with the mex command.
Instead of writing one long line of "FILES_TO_LINK" into the .rsp file, I added new line commands "\n" in lines 327, 332 and 337.

Example: push(@FILES_TO_LINK, "$LINK_LIB " . smart_quote($file) . "\n");

This allows to compile large c code with many library files under Windows and prevents the "fatal error LNK1170: line in command file contains 131071 or more characters" bug.

Citation pour cette source

Andreas Raue (2024). Fixes mex compile bug on MATLAB R2013b & Windows (https://www.mathworks.com/matlabcentral/fileexchange/46262-fixes-mex-compile-bug-on-matlab-r2013b-windows), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2013b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Debugging and Analysis dans Help Center et MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
1.0.0.0