Original Post
I have a assembly file library I made for speed, but
can''t get it to link to masm32. Here''s the error''s I got...
masm.obj : warning LNK4033: converting object format from OMF to COFF masm.obj : warning LNK4078: multiple ".text" sections found with different attributes (60220020) masm.obj : warning LNK4078: multiple ".data" sections found with different attributes (C0220040) masm32.obj : error LNK2001: unresolved external symbol _test_main masm32.exe : fatal error LNK1120: 1 unresolved externals _ Link errormasm.asm + masm.obj = masm code masm32.asm + masm32.obj = masm32 code masm32.exe = output Here''s masm.asm, a very simple assembly file,it was the file library I said above, but I cut out everything
title procedure test_func masm.asm
.model small
.386 ;uses x86 specific code
public test_main
.data
.code
test_main proc
push ebp
mov ebp,esp
; ya, code goes here
pop ebp
ret
test_main endp
end
and masm32.asm
...
extrn test_main:proc
...
.code
start:
call test_main
...