This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#12014 - LD complained about duplicate symbols(missing "extern")
Attached to Project:
Rockbox
Opened by Huan Zhang (victorzhang) - Wednesday, 16 March 2011, 18:28 GMT+2
Last edited by Nils Wallménius (nls) - Saturday, 19 March 2011, 11:16 GMT+2
Opened by Huan Zhang (victorzhang) - Wednesday, 16 March 2011, 18:28 GMT+2
Last edited by Nils Wallménius (nls) - Saturday, 19 March 2011, 11:16 GMT+2
|
Details@rockbox/apps/codecs/libmusepack/requant.h,line 50
@rockbox/apps/plugins/fft/const.h, line 1-10 @rockbox/apps/plugins/goban/display.h, line 41, line 44 @rockbox/apps/plugins/rockboy/rockmacros.h, line 100 Since the keyword "extern" is omitted from the header file, global varibles will have multiple definition.This will cause link error(duplicate symbols),especially for some new version of LD. Generally speaking, if a global variable is going to be used in more than 2 files, it’s better to declare it in the header file(use "extern"), and have ONLY ONE definition in .c file. |
This task depends upon
Closed by Nils Wallménius (nls)
Saturday, 19 March 2011, 11:16 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed, thanks. I'm still curious why only the mips toolchain cares about this.
Saturday, 19 March 2011, 11:16 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed, thanks. I'm still curious why only the mips toolchain cares about this.
rockbox/apps/codecs/libmusepack/requant.h, revision 25056
rockbox/apps/plugins/fft/const.h, revision 26100
rockbox/apps/plugins/goban/display.h, revision 28712
rockbox/apps/plugins/rockboy/rockmacros.h, revision 28664
rockbox/apps/plugins/rockboy/cpu.c, revision 25844