c - GCC: 'multiple definition' gcc 4.8 版本问题

标签 c gcc

最近我们已将 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/

相关文章:

c - 否定 &&(逻辑与)运算的结果是否安全?

c - 作为不同可能矢量化的函数的运行时间增益

c - 编译共享库时出错

c++ - makefile 不适用于 -std=c++11 选项

c++ - 是否可以用 gcc 编译 c++ 代码?

Cygwin:types.h 中 "loff_t"之前的解析错误

c - 运行一次调节的宏

c - 如何从 Win32 API 获取打印机制造商和型号?

c - 使用 popen 时是否必须关闭流

linux - GDB 警告 : Loadable section not found in added symbol-file system-supplied DSO at 0x7ffff7ffd000