问题描述
大家好,
我是谷歌新闻组的新手,所以你好。
我是一名经验丰富的嵌入式C程序员,但是我在使用MCC68K(Microtec C编译器为
68000系列)时遇到了构建错误。
。我无法弄清楚错误的确切原因,并且
我似乎无法从文档中找到有关错误的任何信息
我或谷歌搜索。所以我来到这里了!
这是链接器错误前最后几行的副本:
链接:
1个文件被复制。
abisscan.obl
ber.obl
bistfunc.obl
控制.obl
debug.obl
defs.obl
lapb.obl
layer2.obl
q703.obl
q704.obl
schedule.obl
x25.obl
警告: (374)STACK部分无法遵守ORDER命令
错误:0,警告:1
我所有C和H文件的编译都没问题,但在链接
阶段我收到如上所示的警告。
如果我删除了我做的最后一次更改,那么错误就会消失。
但是我添加的代码似乎没有任何问题
(一个简单的静态字符串数组,我添加了很多种类
次之前)。
我好像记得很长一段时间遇到这个问题以前,但是我没有足够的经验来处理它 - 似乎没有任何改变!
谁能告诉我为什么会出现这个错误?或者在哪里(什么网站/
手册)我可以获得有关此错误的一些信息。 (我查看了
Microtec网站,但很难找到这样一个特定的
主题)。
感谢您的帮助。
祝你好运,
Alastair
Hi Guys,
I am new to Google news groups, so hello.
I am an embedded C programmer of some experience, but I have come
accross a build error, while using MCC68K (Microtec C Compiler for
68000 series). I cannot figure out the exact reason for the error, and
I cannot seem to find any information on the error from documentation
that I have or from google search. So I have come here!
Here is a copy of the the last few lines before the linker error:
Linking :
1 file(s) copied.
abisscan.obl
ber.obl
bistfunc.obl
control.obl
debug.obl
defs.obl
lapb.obl
layer2.obl
q703.obl
q704.obl
schedule.obl
x25.obl
WARNING: (374) ORDER command could not be obeyed for section STACK
Errors: 0, Warnings: 1
The compilation of all my C and H files is ok, but during the link
stage I get the warning as shown above.
If I remove the last changes that I made, then the error goes away.
However there seems to be nothing wrong with the code that I have added
(a simple static string array, the kind of which I have added many
times before).
I seem to remember having this problem once a long time ago, but I was
not experienced enough to deal with it - it seems nothing has changed!
Can anyone tell me why I get this error?, or where (what web site /
manual) I can get some information on this error. (I have looked at the
Microtec web site, but it is difficult to search for such a specific
topic).
Thanks for any help.
Best regards,
Alastair
推荐答案
这个小组用于讨论C语言,而不是
特定工具或平台的问题。
DES
-
Dag-Erling Sm?rgrav -
不,不是。它与特定工具链如何处理代码的方式有关。 (这不是编译错误,而是链接器警告。)
在任何情况下,更合适的论坛都是comp.arch.embedded或
comp.sys.m68k - 您可能会发现有人熟悉您正在使用的相同
工具。
您也可以尝试撤消所有更改并重新应用他们只需要一个,这可能会对根本原因有所了解。
祝你好运!
Roberto Waltman
[请回复小组,]
[返回地址无效。 ]
No, it is not. It has to do with how a particular toolchain processes
your code. (And that was not a compile error, but a linker warning.)
In any case, more appropriate forums would be comp.arch.embedded or
comp.sys.m68k - You may find there somebody familiar with the same
tools you are using.
You may also try undoing all your changes an reapplying them one by
one, this may shed some light on what the root cause is.
Good luck!
Roberto Waltman
[ Please reply to the group, ]
[ return address is invalid. ]
这篇关于警告:(374)STACK部分无法遵守ORDER命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!