首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >armcc链接错误:在构建C项目时,armcc中的L6769E,是什么问题?

armcc链接错误:在构建C项目时,armcc中的L6769E,是什么问题?
EN

Stack Overflow用户
提问于 2015-11-06 19:39:51
回答 1查看 914关注 0票数 0

我有一个带有一些函数的C项目,也是用arm霓虹灯汇编编写的,但是我不能编译它,main()所在的文件有几个错误,它看起来很模糊,我使用DS-5进行编译,它在没有asm函数的MSVC上构建和运行得很好。问题出在哪里?

代码语言:javascript
复制
/* TestApp.c file */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){ 
FILE    *inFile = NULL;
FILE    *outFile = NULL;
...
malloc();
...
printf("malloc failed");
...
memcpy();
....
...
}

Error form ARMCC 4.5.2
Warning: L6412W: Disabling merging for TestApp.o(.conststring), unsupported relocation R_ARM_REL32 from TestApp.o(i.main)
Error: L6769E: Relocation #REL:41 in printf.o(.text) with respect to __stdout. No GOTSLOTexists for symbol.
Error: L6769E: Relocation #REL:6 in fopen.o(.text) with respect to __stdin. No GOTSLOTexists for symbol.
Error: L6769E: Relocation #REL:2 in _printf_char_file.o(.text) with respect to fputc. No GOTSLOTexists for symbol.
Error: L6769E: Relocation #REL:22 in initio.o(.text) with respect to __stdin. No GOTSLOTexists for symbol.
Error: L6769E: Relocation #REL:23 in initio.o(.text) with respect to __stdout. No GOTSLOTexists for symbol.
Error: L6769E: Relocation #REL:24 in initio.o(.text) with respect to __stderr. No GOTSLOTexists for symbol.
Error: L6769E: Relocation #REL:25 in initio.o(.text) with respect to __stdin. No GOTSLOTexists for symbol.

。。。

EN

回答 1

Stack Overflow用户

发布于 2015-11-24 16:30:03

这个问题缺少关于您如何尝试构建程序的信息。似乎你在编译动态库的时候尝试静态链接stdlib。

在构建动态库时,链接动态库,而不是静态库。如果你不想创建动态库,那么你的问题很可能出在你的makefile文件中,而makefile并没有包含在内。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33565994

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档