Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
一般内嵌汇编用asm时必须在asm后面写小括号...如何用大括号?In Reply To:敢问楼主用什么编译器,我的g++编译不了。错误信息如下: Posted by:fanhqme at 2009-07-19 21:50:35 > a+b.cpp: In function `int main()': > a+b.cpp:6: error: expected `(' befo > re '{' token > a+b.cpp:6: error: expected asm body > before '{' token > a+b.cpp:7: error: `mov' undeclared > (first use this function) > a+b.cpp:7: error: (Each undeclared > identifier is reported only once for each function it appears in.) > a+b.cpp:7: error: expected `;' before "eax" > a+b.cpp:8: error: `add' undeclared > (first use this function) > a+b.cpp:8: error: expected `;' before "eax" > a+b.cpp:9: error: expected `;' before "a" Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator