Hi,
Normally ld allow to export everything without a need for a export .def file like vc under windows.
But I cant find the example You talking to check the files.
Your's project is using function getstring(), but the compiler link time cant decipher were it is!
And yes You can cross compile for linux with mingw and clang, but system functions aren't available if You don't have the linux header libs and libs itself.