That is very strange. NimMain is essentially the procedure which starts the garbage collector and initializes global memory, so not only i it very important, but it should always be available. The emit way of calling it is a bit strange though, but it shouldn't fail..
- C backend not finding NimMain() Stuffe
- C backend not finding NimMain() PMunch