Thanks, I changed my code a bit and used {.dynlib.} and it worked! Here's the 
code I'm using:
    
    
    import math
    
    proc square*(x: float64): float64 {.stdcall,exportc,dynlib.} =
      return x * x
    
    
    Run

Reply via email to