开发者

Visual C++ 9 Linker file size limitation

开发者 https://www.devze.com 2022-12-26 08:13 出处:网络
It appears that the visual C++ 9 linker has a file allocation algorithm that doubles the size of the file every allocation, so you get 512mb, 1024mb, 2048mb, 4096mb. The problem is that it is using a

It appears that the visual C++ 9 linker has a file allocation algorithm that doubles the size of the file every allocation, so you get 512mb, 1024mb, 2048mb, 4096mb. The problem is that it is using a library that cannot handle files larger 2048MB, and as such crashes with an error such as "cannot read file at is the disk full or write protected".

Is there a way to bypass this limitation or otherwise replace the linker with something else that works?

A b开发者_Python百科it of background, I have a code generator that generates a large number of files, ~15k cpp files, I've managed to reduce the number of files to something about 6k to get something that at least completes the linking process, I would like to be able to include all 15k without having to create multiple libs.

0

精彩评论

暂无评论...
验证码 换一张
取 消