News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

question about vkdebug in RadAsm

Started by xpzhou, December 30, 2007, 02:50:14 PM

Previous topic - Next topic

xpzhou

after complier, report a link error as follows:
C:\Masm32\Bin\ML.EXE /c /coff /Cp /nologo /I"C:\Masm32\Include" "test.asm"
Assembling: test.asm
C:\Masm32\Bin\LINK.EXE /SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 /LIBPATH:"C:\Masm32\Lib" /OUT:"test.exe" "test.obj" "test.res"
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

LINK : fatal error LNK1104: cannot open file "\masm32\lib\kernel32.lib"

Make error(s) occured.
Total compile time 562 ms

my code is as follows?
.386
.model flat, stdcall
option casemap:none
include windows.inc
include user32.inc
include kernel32.inc

includelib user32.lib
includelib kernel32.lib

include masm32.inc
includelib masm32.lib

include debug.inc         
includelib debug.lib


.data
szCaption byte "my fist program?", 0
szTitle byte "Win32Asm", 0

.code
start:
PrintText "eax is ture"
invoke MessageBox, NULL, addr szCaption, addr szTitle, MB_OK
invoke ExitProcess, NULL
end start

there is no error when i delete " PrintText "eax is true" ".

my masm is version9,and installed in disk C?
and my RadAsm in disk E?the path is set as follows?
App                   C:\Masm32
Binary                $A\Bin
Include              $A\Include
Lib                    $A\Lib
Macro                $R\Masm\Macro

my project path is the same as the RadAsm.

I'm a chinese, I'm sorry for my poor english.

please give me some Ideas, suggestions? Thanks.

hutch--

xpzhou,

Just make sure that kernel32.lib is present in the LIB directory.

I don't know what the line PrintText "eax is ture" is calling. There is a console mode macro in masm32's macros.asm file but you need to include the macro file to use it.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

MichaelW

PrintText is a VKDEBUG macro. On my system using QE a version of the code with the include and library paths filled out:

include \masm32\include\...
includelib masm32\lib\...

Built and ran OK. Perhaps there is a problem with the RadAsm configuration.

eschew obfuscation

xpzhou

hutch:
thx for your reply.
the inc and lib files all in the very directory!
and i copy the macros.asm to the masm32\include\,and add this file to my project, and there is the same error.

xpzhou

MichaelW:
i changed my program to use absolute directory,build and run, error also exist!

the include files are as follow:

include C:\masm32\include\masm32.inc
includelib C:\masm32\lib\masm32.lib

include C:\masm32\include\debug.inc         
includelib C:\masm32\lib\debug.lib
include C:\masm32\include\macros.asm