mr4th-dynamic-linking/win32_concrete/win32_base.c

12 lines
228 B
C
Raw Normal View History

2024-04-23 18:50:47 +00:00
// declare base_func; mark it as an exported symbol
__declspec(dllexport) void base_func(void);
// define base_func
#include <stdio.h>
int x = 0;
__declspec(dllexport) void
base_func(void){
printf("x = %d\n", x);
x += 1;
}