LINK : fatal error LNK1104: cannot open file 'LIBCD.lib' 解决办法

本文介绍了如何解决使用VC2008编译VC6项目时遇到的库冲突问题,提供了具体的步骤来排除不必要的库文件,确保编译过程顺利进行。

用VC2008编译VC6的东西,连接的时候会出现以上错误。

 

MSDN说是可以把LIBCD.lib这个库给忽略掉,做法如下:

 

Project -> Properties -> Linker -> Command Line -> Additional options 中加入:

/nodefaultlib:libcd

 

libc.lib 的问题,如上,只需要多加入一句即可

 

 

 

ps:网上很多人提到另外一个方法,在Project -> Properties -> Linker -> input -> Ignore Specific libraries 中添加你所要忽略的库,但是坑爹VS2008 对输入的功能无视啊,所以这个方法是废的。

CMake Error at D:/ProgramFiles/CMake/share/cmake-4.1/Modules/CMakeTestFortranCompiler.cmake:59 (message): The Fortran compiler "D:/ProgramFiles/Intel/oneAPI/compiler/2025.2/bin/ifx.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: 'D:/ProgramFiles/Magma/magma-2_9_0/build/CMakeFiles/CMakeScratch/TryCompile-egurh1' Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/devenv.com" CMAKE_TRY_COMPILE.sln /build Debug /project cmTC_b5289 Microsoft Visual Studio 2022 版本 17.14.10. 版权所有(C) Microsoft Corp.。保留所有权利。 生成开始于 15:25... 1>------ 已启动生成: 项目: cmTC_b5289, 配置: Debug x64 ------ Compiling with Intel? Fortran Compiler 2025.2.0 [Intel(R) 64]... testFortranCompiler.f Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 2025.2.0 Build 20250605 Copyright (C) 1985-2025 Intel Corporation. All rights reserved. Compiling manifest to resources... Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384 Copyright (C) Microsoft Corporation. All rights reserved. Linking... Microsoft (R) Incremental Linker Version 14.44.35213.0 Copyright (C) Microsoft Corporation. All rights reserved. /OUT:D:/ProgramFiles/Magma/magma-2_9_0/build/CMakeFiles/CMakeScratch/TryCompile-egurh1/Debug/cmTC_b5289.exe /VERSION:0.0 /MANIFEST /MANIFESTFILE:cmTC_b5289.dir/Debug/cmTC_b5289.exe.intermediate.manifest "/MANIFESTUAC:level='asInvoker' uiAccess='false'" /SUBSYSTEM:CONSOLE /IMPLIB:D:/ProgramFiles/Magma/magma-2_9_0/build/CMakeFiles/CMakeScratch/TryCompile-egurh1/Debug/cmTC_b5289.lib -LIBPATH:C:/Program Files (x86)/Windows Kits/10/Lib/10.0.26100.0/um/x64 cmTC_b5289.dir/Debug/testFortranCompiler.obj cmTC_b5289.dir/Debug/cmTC_b5289.exe.embed.manifest.res LINK : fatal error LNK1181: 无法打开输入文件“Files.obj” Build log wr
07-31
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值