本文介绍了无效的数字参数'/ WHOLEARCHIVE'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望编译  lib作为静态库,附加选项  / WHOLEARCHIVE但是当尝试编译此错误时会发生

i want compile caffe2 lib as static library with additional options /WHOLEARCHIVE but when try to compile this error occur :

>------ Build started: Project: caffe2, Configuration: Release x64 ------
1>cl : Command line error D8021: invalid numeric argument '/WHOLEARCHIVE'
========== Build: 0 succeeded, 1 failed, 6 up-to-date, 0 skipped ==========

其他选项
在visual studio中: 

Additional Optionsin visual studio : 

%(AdditionalOptions) /bigobj /bigobj /WHOLEARCHIVE

推荐答案

/ WHOLEARCHIVE是一个链接器选项。 它应该在"Additonal Options"中设置。对于链接器项目属性节点中的命令行。

/WHOLEARCHIVE is a linker option.  It should be set in "Additonal Options" for the command line in the Linker Project properties node.

我无法从这些选项被设置为"附加选项"的信息中看出来。 (编译器或链接器)但无论如何,它们不属于一起。

I cannot tell from the information where these options have been set as "Additional Options" (compiler or linker) but in any event, they don't belong together.


这篇关于无效的数字参数'/ WHOLEARCHIVE'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-18 23:25