Clone in a terminal:
#ifdef _MSC_VER
#	define testshlib_EXPORT __declspec(dllexport)
#else
#	define testshlib_EXPORT
#endif

extern testshlib_EXPORT void foo();

static const int truc=5;

void foo() { }

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112