mirror of
https://github.com/ElliotKillick/windows-vs-linux-loader-architecture
synced 2026-06-08 10:57:32 +00:00
14 lines
276 B
C
14 lines
276 B
C
#include <stdio.h>
|
|
|
|
// Dynamically link to test library
|
|
__declspec(dllimport) int shared_variable;
|
|
|
|
int* get_shared_variable_address() {
|
|
//__debugbreak();
|
|
return &shared_variable;
|
|
}
|
|
|
|
int main() {
|
|
printf("shared_variable = %d\n", *get_shared_variable_address());
|
|
}
|