Open huangtk-gaoq opened 1 year ago
Hi, I've faced the same problem and was able to solve it. It seems that some versions of ld exit with an error in case of multiple definitions. The way to solve it is to allow multiple definitions. I've done this adding the flag -Wl,--allow-multiple-definition in the Makefile to the CFLAGS variable (see image below). This way the compilation exits without errors. Hope this is helpful.
Bug Reports
cd VIC-VIC.5.0.1\vic\drivers\classic\
and printmake,
it should generate a .exe file named "vic_classic.exe", but it didn't and shows lots of lines of similar mistakes such as/usr/bin/ld: /tmp/cctyYjct.o:/home/htk/VIC-VIC.5.0.1/vic/drivers/classic/../../vic_run/include/vic_log.h:61: multiple definition of
LOG_DEST'; /tmp/cc6S4S9n.o:/home/htk/VIC-VIC.5.0.1/vic/drivers/classic/../../vic_run/include/vic_log.h:61: first defined here`.