I am trying to update Nim from 0.10 to 0.11. Since I could not find an upgrade path, I decided to install Nim 0.11 from scratch, cloning the Github repository and checking out the 0.11 tag.
After building the C sources, when I try bin/nim c --parallelBuild:1 koch I get the following error
koch.nim(300, 5) Hint: 'koch.run7z(platform: string, patterns: varargs[string])' is declared but not used [XDeclaredButNotUsed]
gcc -c -w -I/home/papillon/tools/Nim/lib -o /home/papillon/tools/Nim/nimcache/compiler_koch.o /home/papillon/tools/Nim/nimcache/compiler_koch.c
/home/papillon/tools/Nim/nimcache/compiler_koch.c: In function ‘run7z_150401’:
/home/papillon/tools/Nim/nimcache/compiler_koch.c:2023:22: error: ‘F’ undeclared (first use in this function)
setFrame((TFrame*)&F);
If it is useful, I am on Ubuntu 14.10. I guess I should install some 7-zip related header, but I could not manage to make it work.
Can anyone help me find out what I am doing wrong?
This has nothing to do with 7-zip; the procedure where the error occurs runs 7z only in order to prepare a Windows release and by calling the program, not using any library.
What it looks like is that you were compiling the v0.10.2 C sources with the 0.11 compiler (between 0.10.2 and 0.11, the generated code changed from setFrame((TFrame*)&F) to setFrame((TFrame*)&FR). I'm not sure how that happened. You said something about checking out the 0.11 tag and I'm not sure where you got the C sources from, but I'd simply follow the instructions on the download page on how to install from GitHub exactly (which I just tried and which worked for me).
Arrrrrrrrr: I got the same error (if i recall well) and i had to git pull csources before building them.
You generally cannot build with outdated csources because the generated code can change, often in subtle ways.