1. /* A simple example */
  2.  
  3. __declspec(dllexport) int Func(int num) __asm__("_Func@4");
  4.  
  5. __declspec(dllexport) int Func(int num) {
  6.    return num * 2;
  7. }
  8.  
  9. /* Cannot export _Func@4: symbol not found
  10.    collect2: ld returned 1 exit status */