Created
April 18, 2015 01:11
-
-
Save mesaleh/343c7c7a0fe08d90bed4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Moustafa Saleh ([email protected]) | |
* | |
* 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