作者monomorium (旅人的足迹)
看板C_Sharp
标题[问题] gmcs 编译的问题
时间Fri Oct 26 21:02:06 2012
在 demo.cs 中
namespace Encryptor {
class Encrypt {
...
}
}
然後在 demogui.cs 中使用 Windows.Forms 做 GUI
并且 using Encryptor
可是编译时采用
gmcs demogui.cs -pkg:dotnet -r:demo.dll
出现
demogui.cs(23,13): error CS0246: The type or namespace name `Encrypt'
could not be found. Are you missing a using directive or an assembly
reference?
的编译错误讯息
demogui.cs 在没有 using Encryptor 之前的版本都正常
想请教使用 gmcs 时,是 -pkg 跟 -r 不能连用?
还是我有地方写错了?或是应该怎麽编译?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.169.143.228
自问自答,把编译指令改成
gmcs -r:demo.dll *.cs -pkg:dotnet
就可顺利编译了....
※ 编辑: monomorium 来自: 118.169.151.46 (10/27 14:32)