我正在尝试将单声道运行时与C#捆绑一个简单的(控制台)程序,它什么都不做,但是'hello world'。 得到了Cygwin,虽然失败了,但仍配置了所有内容:
$ mkbundle -o x2 x.exe --deps -z
OS is: Windows
Sources: 1 Auto-dependencies: True
embedding: C:\cygwin\home\Sean\x.exe
compression ratio: 31.71%
embedding: C:\PROGRA~2\MONO-2~1.1\lib\mono\4.0\mscorlib.dll
compression ratio: 34.68%
Compiling:
as -o temp.o temp.s
gcc -mno-cygwin -g -o x2 -Wall temp.c `pkg-config --cflags --libs mono-2|dos2unix` -lz temp.o
temp.c: In function `main':
temp.c:173: warning: implicit declaration of function `g_utf16_to_utf8'
temp.c:173: warning: assignment makes pointer from integer without a cast
temp.c:188: warning: assignment makes pointer from integer without a cast
/tmp/ccu8fTcQ.o: In function `main':
/home/Sean/temp.c:173: undefined reference to `_g_utf16_to_utf8'
/home/Sean/temp.c:188: undefined reference to `_g_utf16_to_utf8'
collect2: ld returned 1 exit status
[Fail]
尝试过类似问题的帖子here,但它也没有用。 我的配置:
不确定这里的故事是什么。 帮助赞赏。