当前位置:网站首页>High performance parallel programming and optimization | lesson 01 homework

High performance parallel programming and optimization | lesson 01 homework

2022-06-21 11:12:00 yantuguiguziPGJ

Catalog

1  problem

2  Code and compilation results

3  Usage mode

4  Related links

5  Lying pit record


1  problem

1  CMake Error: CMake can not determine linker language for target: stbiw

Not added in stb_image_write.cpp when , It can be directly on the outer layer CMakeLists.txt Add this solution to the :

set_target_properties(stbiw PROPERTIES LINKER_LANGUAGE CXX)

2  fatal error LNK1120: 1 unresolved externals

Past operations :

Based on the shared library , Compile the static library directly .

Then restart all VS The project is good .

2  Code and compilation results

link :https://pan.baidu.com/s/1Qi83WJS6D63dz7TD5T7UIw 
Extraction code :nycp 
 

3  Usage mode

cd  C:\\Users\\pgjgg\\Desktop\\C++_learn\\course-master\\hw01

git clone https://github.com/pengguanjun/hw01.git

cd hw01

C:/zeno/vcpkg/downloads/cmake-3.21.1-windows-i386/bin/cmake.exe -B build 

##cmd.exe Command line run 

4  Related links

VS2019 | cmake good,run bad. by pengguanjun · Pull Request #37 · parallel101/hw01 (github.com)

5  Lying pit record

原网站

版权声明
本文为[yantuguiguziPGJ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/172/202206211057155031.html