Skip to content

Instantly share code, notes, and snippets.

@mesaleh
Created April 18, 2015 01:11
Show Gist options
  • Save mesaleh/343c7c7a0fe08d90bed4 to your computer and use it in GitHub Desktop.
Save mesaleh/343c7c7a0fe08d90bed4 to your computer and use it in GitHub Desktop.
/*
* Moustafa Saleh (msaleh83@gmail.com)
*
* Compile:
* gcc test.c -o test.exe -L. -l:test_dll_gcc.a
* cl test.c test_dll.lib
*/
__declspec(dllimport) void __stdcall bar();
__declspec(dllimport) void __stdcall foo();
int main()
{
bar();
foo();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment