Seems to be some configuration error, can you try to specify your Nim compiler backend in a config file, besides your source file: # config.nims switch("backend", "c") Run
P.S. I also found and filed a [bug](https://github.com/nim-lang/Nim/issues/23922) with `std/math` not working in objectiveC backend because of the `c_isnan` symbol. Not sure how it is related, because you don't import the math library. But anyway, you can try to use Nim v2.0.4 and see if it fixes your problem.