I wanted to compile LTC but I have a problem:
I use qmake "USE_QRCODE=1" "USE_UPNP=1" "USE_IPV6=1" litecoin-qt.pro and then mingw32-make -f Makefile.Release and I see...
...
./build\net.o:net.cpp:(.text+0x8929): undefined reference to `_imp__FreeUPNPUrls
If I use UPNP=- the same errors :/
Please help...
1. open build folder.
2. delete net.o
3. open cmd
4. cd to folder with .pro file
5. qmake "USE_QRCODE=1" "USE_UPNP=1" "USE_IPV6=1"
6. mingw32-make -f Makefile.Release
Hi fsb4000,
I'm learning about the build process so I wanted to propose a reason that your solution might work and see if anyone can point out a flaw in my understanding. Here's my theory:
The existing net.o file contains references to the functions displayed in the error, but those references are now invalid and thus require a new object (.o) file to be created. When the compiler makes a new net.o file, it will contain up-to-date references to the functions it needs.
Ideally, the build process would know (from timestamps on source files) that the net.o file is out of date, but that isn't happening.
The necessity of rebuilding net.o might be a known problem that is "easily enough solved" and so no one is doing anything about (and there might not be any reasonably simple solution anyway). However, "undefined reference to [function name]" errors in
any object file might be "easily enough solved" most of the time by simply deleting the .o file so that it gets rebuilt. Do you know if that is the case, and about how often "undefined reference to..." errors in .o files are fixed by rebuilding them?
Thanks for your insight.