Tag - C

Posts of C

C/C++ Cross-Platform Compile-Macros

5 November, 2023
C
C++

When we compile some cross -platform programs, we will inevitably encounter _win32 __linux__ what is the macro of the compiler or the compiler environment.It indicates some information of the current platform environment to the compiler.

References dynamic-link libraries and static-link libraries With GCC

20 April, 2023
C

Give an example: how to write dynamic and static link libraries and reference them in C programs. And how the link library works

/ 1