fork download
  1. /*
  2.   test_dll.c
  3. */
  4.  
  5. #include <windows.h>
  6.  
  7. #define __TEST_DLL_MAKE_DLL_
  8. #include "test_dll.h"
  9.  
  10. BOOL APIENTRY DllMain(HINSTANCE hinst, WORD reason, LPVOID resv)
  11. {
  12. switch(reason){
  13. case DLL_PROCESS_ATTACH: break;
  14. case DLL_PROCESS_DETACH: break;
  15. case DLL_THREAD_ATTACH: break;
  16. case DLL_THREAD_DETACH: break;
  17. }
  18. return TRUE;
  19. }
  20.  
  21. int WINAPI test(int a)
  22. {
  23. return a + 4;
  24. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:5:21: fatal error: windows.h: No such file or directory
 #include <windows.h>
                     ^
compilation terminated.
stdout
Standard output is empty