Learn open62541 --- [40] Source code reading settings

When reading the open62541 source code, you will find that many types or functions cannot be defined. Why?
Because these types and functions are generated at compile time.

Solution

There are many configuration files such as xml in the source code, these files will automatically generate corresponding source files when compiling, so when reading the source code, you need to add these generated source files to the reading project.

If we create a build directory in the source code, and then compile in the build directory, then the generated source file will be under build\src_generated\open62541.

Add to the reading project, according to the configuration will be divided into two situations:

  • Single distribution: Just add open62541.h/c to the reading project. Of course, you can also add only the source files in build\src_generated\open62541, you know it yourself
  • non single distribution: directly add the source files in build\src_generated\open62541

Guess you like

Origin blog.csdn.net/whahu1989/article/details/111061640