我想編譯一個簡單的操作系統代碼,我們得到的操作系統類。它工作正常,在Ubuntu下,但我想編譯它在OS X上我得到的錯誤是:未知的僞操作:.global
[compiling] arch/i386/arch/startup.S ...
arch/i386/arch/startup.S:8:Unknown pseudo-op: .extern
arch/i386/arch/startup.S:8:Rest of line ignored. 1st junk character valued 107 (k).
arch/i386/arch/startup.S:11:Expected comma after segment-name
arch/i386/arch/startup.S:13:Unknown pseudo-op: .global
arch/i386/arch/startup.S:13:Rest of line ignored. 1st junk character valued 97 (a).
這是 source code of that file,這裏是makefile
因此,如果人有一個想法該怎麼做我將不勝感激:)
你使用什麼編譯器? – trojanfoe
@trojanfoe他的makefile文件說他使用'gcc' –
@PavanManjunath它雖然沒有告訴我版本。 – trojanfoe