itas109 / CSerialPort

CSerialPort - lightweight cross-platform serial port library for C++/C/C#/Java/Python/Node.js/Electron
https://blog.csdn.net/itas109/article/details/84282860
Other
730 stars 339 forks source link

windows must manual import setupapi.lib windows下必须手动导入setupapi.lib依赖 #55

Closed itas109 closed 2 years ago

itas109 commented 2 years ago

Describe the bug windows must manual import setupapi.lib windows下必须手动导入setupapi.lib依赖

Expected behavior not manual import setupapi.lib 不需要手动导入setupapi.lib

Desktop (please complete the following information):

itas109 commented 2 years ago

window下MSVC编译器可以在源码中使用 #pragma comment window下Mingw编译器必须明确指定链接库,不支持#pragma comment Linux下必须明确指定链接库,不支持#pragma comment

#pragma comment(lib, "setupapi.lib")