Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

JP

By: a guest on Nov 10th, 2009  |  syntax: C  |  size: 0.24 KB  |  views: 90  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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 */
clone this paste RAW Paste Data