本文介绍了LCC msil编译器函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在玩.net的lcc编译器



[]



]



所以,但是,当我尝试构建il生成代码时,我得到了错误:



Hi, I''m playing with lcc compiler for .net

http://research.microsoft.com/en-us/downloads/b994fbbf-f7bb-4a4a-998c-2f6a6d340ec6/[^]

https://sites.google.com/site/lccretargetablecompiler/[^]

So, but, when I try to build the il generate code, I got that erro:

C:\lcc>set BUILDDIR=C:\lcc\bin

C:\lcc>%BUILDDIR%\cpp tst\array.c array.i

C:\lcc>%BUILDDIR%\rcc -target=msil/win32 array.i array.il
tst\array.c:33: warning: missing return value
tst\array.c:48: warning: missing return value

C:\lcc>%BUILDDIR%\illink array.il -l liblcc.dll -l msvcrt.dll
C:\lcc\bin\illink: undefined symbols:
exit
_setcallerp
printf
array.il(2) : warning -- Reference to undeclared extern assembly 'mscorlib'. Attempting autodetect
Error: unresolved global member ref 'printf'
Error: unresolved global member ref 'printf'
Error: unresolved global member ref 'printf'
Error: unresolved global member ref 'printf'
Error: unresolved global member ref 'printf'
Error: unresolved global member ref 'printf'
Error: unresolved global member ref 'printf'
Error: unresolved global member ref 'printf'
Error: unresolved global member ref '_setcallerp'
Error: unresolved global member ref 'exit'
Could not create output file, error code=0x80004005

***** FAILURE *****





顺便说一下,我试着去除IlLinker代码,但是,但是没有得到答案:(



我在Windows XP中用VS 6存储了lcc MSIL



btw, I have tryed to depurate the IlLinker code, but, but got no answers :(

I have builed the lcc MSIL with VS 6 in windows XP

推荐答案


这篇关于LCC msil编译器函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 19:39