c如何连接汇编的obj文件?
// CASM.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdio.h>
extern int product(int x,int y);
int main(int argc, char* argv[])
{
printf("%d",product(25,3));
return 0;
}
product的汇编文件
public _product
_text segment byte public 'CODE'
assume cs:_text
_product proc near
push bp
mov bp,sp
mov ax,[bp+4]
mov cx,[bp+6]
sar ax,cl
pop bp
_product endp
_text ends
end
生成了product.obj
用vc编译上面那个cpp时找不到product