看板 b93902HW 關於我們 聯絡資訊
※ 引述《wens (感冒要多保重身體喔~^^")》之銘言: : ※ 引述《denehs (DE)》之銘言: : : 有人知道MASM要怎麼做memory allocate嗎@@? : : 或是要怎麼call C的malloc @@? : : ex. : : mov eax, 10 : : blah balh ; 這邊我想得到一個長度是eax (10)的array : 理論上是把所有參數反序push : 然後 call blahblah : 最後他的傳回值會在 eax 要include什麼東西嗎@@? Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. ml.exe /nologo /c /Cx /Cp /coff /c blur.asm Assembling: blur.asm link.exe /nologo /libpath:lib bmp.lib main.obj blur.obj /out:blur.exe blur.obj : error LNK2019: 無法在外部之程式庫中找到或連結所需之資料型別或函式的符 號 malloc,於函式 _blur 中參考 blur.exe : fatal error LNK1120: 1 個無法在外部程式庫中找到或連結所需之資料型別或 函式 NMAKE : fatal error U1077: 'link.exe' : return code '0x460' Stop. orz -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.30.60
abchu:我的好像也是類似這樣@@ 11/22 23:58