CSerialPort | lightweight cross-platform serial port library | Wrapper library
kandi X-RAY | CSerialPort Summary
kandi X-RAY | CSerialPort Summary
CSerialPort - lightweight cross-platform serial port library for C/C++/C#/Java/Python/Node.js
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of CSerialPort
CSerialPort Key Features
CSerialPort Examples and Code Snippets
Community Discussions
Trending Discussions on CSerialPort
QUESTION
Hi I'm sorry I've seen that there is a lot of "unresolved external symbol error" questions, and I've seen them but none of the answers that I found fixed my error.
I've tested 2 ways to compile the DLL and use the HelloWorld method from SerialPort class. btw I'm using VS2019 community edition
Both ways are throwing the same error :
...ANSWER
Answered 2021-Mar-01 at 19:01You are calling HelloWorld
which is missing its implementation in your application.
There is some fundamental misunderstanding about how C++ executables are compiled and linked against DLLs.
No libraries:- All symbols that the Application needs must be defined in the Application.
- All needed symbol definitions must be available to the linker.
- All symbols that the Application needs must be defined in the Application or a static library.
- All needed symbol definitions must be available to the linker.
- The symbols are added to the generated Application's executable.
- All symbols that the Application needs must be defined in the Application or a dynamiclibrary.
- All needed symbol definitions must be available to the linker.
- The symbols remain at their original places and they are loaded only at load time. This allows swap the dynamic libraries with any other ABI-compatible one at load time.
Since you are not linking with the dll and only load it at runtime, the linker correctly complains about the missing HelloWorld
method.
Extern "C" is irrelevant here.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install CSerialPort
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page