Do annotation arguments have to be literal?

Yes, but try like this instead

{% begin %}
  {% f = "-L/home/pjw/Projects/qfin/extern -l:saxpy.a -lgfortran" %}
  @[Link(ldflags: {{f}})]
{% end %}
lib Test1                      
    fun testingfor(x : Float64*)
end
1 Like