最近我们已将 gcc 版本从 4.1.x 移至 4.8.3。 我的一些团队成员正在使用 RH5.X,其他人正在使用 RH6.5 版本的计算机。
我注意到,在 RH 5.X 机器上。当我们尝试构建代码时,我们在创建动态库时面临以下问题。
PS:-我们在 RH6.X 计算机上不会遇到此问题。
日志:-
codec_main.c.text+0x0):vprintf'
/local/workspace/first/branch/dsc/cmd_parse.o:cmd_parse.c.text+0x510): first defined here
/local/workspace/first/branch/dsc/codec_main.o: In function
的多重定义获取字符':
codec_main.c.text+0x40): getchar'
/local/workspace/first/dsc/cmd_parse.o:cmd_parse.c.text+0x550): first defined here
/local/workspace/first/branch/lpddr5_branch/src/main/cvip/build/Linux/Release/lib/extlibs/dsc/codec_main.o: In function
的多重定义fgetc_unlocked':
codec_main.c.text+0x70): `fgetc_unlocked' 的多重定义
你能帮忙吗?
最佳答案
可能是来自另一个系统上的构建的目标文件。尝试进行干净的构建。
关于c - GCC: 'multiple definition' gcc 4.8 版本问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50020432/