# Visual studio 2017 or 2019 generating reported error link opencv\_core4100. lib failed

**URL:** <https://forum.opencv.org/t/visual-studio-2017-or-2019-generating-reported-error-link-opencv-core4100-lib-failed/17966>\
**Category:** C++\
**Tags:** windows, build, cuda\
**Created:** [June 18, 2024, 3:22am UTC](https://forum.opencv.org/t/visual-studio-2017-or-2019-generating-reported-error-link-opencv-core4100-lib-failed/17966 "2024-06-18T03:22:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garry](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/garry/32/9997_2.png) [@Garry](https://forum.opencv.org/u/Garry)\
**Post date:** [June 18, 2024, 3:22am UTC](https://forum.opencv.org/t/visual-studio-2017-or-2019-generating-reported-error-link-opencv-core4100-lib-failed/17966/1 "2024-06-18T03:22:18Z")

</div>

Version:  
visual studio 2019  
CUDA 11.1  
Nvidia Video Codec SDK 11.1  
cuDNN 8.2

During the process of building Opencv for CMake, I cancelled the face module and test module. However, due to an error in setupvars, I also cancelled and checked cuda cuda\_fast\_math、opencv\_extra path， At this point, open SLN and generate ALL-BUILD and INSTALL in sequence, but a LINK Error occurs during the process of generating ALL-BUILD:

 ![f1a3d3d1402fc532b62d4e00e588759](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/4/400be4cbb8de2e2e91ee04398a1be60f06364fb4.png)

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [June 18, 2024, 4:54am UTC](https://forum.opencv.org/t/visual-studio-2017-or-2019-generating-reported-error-link-opencv-core4100-lib-failed/17966/2 "2024-06-18T04:54:58Z")

</div>

helo, can you give us the output _as text_, please ?  
(screenshots like that are useless here, unreadable, cant be indexed, ppl cannot copy your errors for research, etc.)

thank you.

---

<div class="post-metadata">

**Author:** ![Garry](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/garry/32/9997_2.png) [@Garry](https://forum.opencv.org/u/Garry)\
**Post date:** [June 18, 2024, 5:20am UTC](https://forum.opencv.org/t/visual-studio-2017-or-2019-generating-reported-error-link-opencv-core4100-lib-failed/17966/3 "2024-06-18T05:20:43Z")

</div>

Okay, thank you for your reminder. As I am unable to upload the text, I have provided the link in the form of an online document:

> **[output](https://docs.google.com/document/d/1K3-YrdF-0JZ9UCwgId3r4ldL1bMqGdkR9Zd5lWF0V3E/edit?usp=sharing)**
>
> 已启动生成… 1&gt;------ 已启动生成: 项目: opencv\_core, 配置: Release x64 ------ 2&gt;------ 已启动生成: 项目: gen\_opencv\_python\_source, 配置: Release x64 ------ 1&gt;Building NVCC (Device) object...
