You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I downloaded VIC 5.0.1, open ubuntu terminal, enter path cd VIC-VIC.5.0.1\vic\drivers\classic\ and print make, 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`.
I am very new to C code , so really don't have any clue how to fix it.
The text was updated successfully, but these errors were encountered:
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`.The text was updated successfully, but these errors were encountered: