I'm a noob to nim, but like what I see so far. I do have a question on compilation though.
If my directory structure is:
project
|--bin
|--doc
|--src
and I execute "nim c" from 'project' like:
nim c -o:./bin/hello -r ./src/hello.nim
I receive the following error:
/usr/bin/ld: cannot open output file /home/me/Projects/nim/hello/src/./bin/hello: No such file or directory
likewise if I use home directory shorthand (~) I also have problems, when executing this:
nim c -o:~/Projects/nim/hello/bin/hello -r ./src/hello.nim
I receive this error:
sh: 1: ./~/Projects/nim/hello/bin/hello: not found
on the other hand:
nim c -o:/home/me/Projects/nim/hello/bin/hello -r ~/Projects/nim/hello/src/hello.nim
works, on yet another hand: (I know too many hands)
nim c -o:/home/me/Projects/nim/hello/bin/hello -r ./src/hello.nim
works fine, so does:
nim c -o:/home/me/Projects/nim/hello/bin/hello - r /home/me/Projects/nim/hello/src/hello.nim
It appears that the output path does not get fully expanded/resolved prior to compilation. Is this the intended behavior? I would just like to know moving forward, what the expected behavior should be.
Thanks for having me as a new Nim(rod),
Tom