News:

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

fatal error LNK1104: cannot open file "aPlib.lib"

Started by M2R, March 17, 2010, 10:28:01 PM

Previous topic - Next topic

M2R

C:\Masm32\Bin\RC.EXE /v "aPlib.rc"
Microsoft (R) Windows (R) Resource Compiler, Version 5.00.1823.1 - Build 1823

Copyright (C) Microsoft Corp. 1985-1998. All rights reserved.


Using codepage 1252 as default
Creating aPlib.RES

RC: RCPP -CP 1252 -f C:\masm32\Belajar.Assembly\_plugin_masm\aPlib\RCa01884 -g C:\masm32\Belajar.Assembly\_plugin_masm\aPlib\RDa01884 -DRC_INVOKED -D_WIN32 -pc\:/ -E -I. -I .

aPlib.rc.
Writing ICON:1,   lang:0x409,   size 4264
Writing GROUP_ICON:1,   lang:0x409,   size 20.
Writing BITMAP:1,   lang:0x409,   size 42040
C:\Masm32\Bin\ML.EXE /c /coff /Cp /nologo /I"C:\Masm32\Include" "aPlib.asm"
Assembling: aPlib.asm
C:\Masm32\Bin\LINK.EXE /SUBSYSTEM:WINDOWS /RELEASE /DLL /DEF:aPlib.def /LIBPATH:"C:\Masm32\Lib" /OUT:"aPlib.dll" "aPlib.obj"
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

   Creating library aPlib.lib and object aPlib.exp
LINK : fatal error LNK1104: cannot open file "aPlib.lib"
LINK : fatal error LNK1141: failure during build of exports file

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

=========================================================

Why I can't link this program?  :(

Sorry for my english

BlackVortex

Are you sure you should be specifying :
/LIBPATH:"C:\Masm32\Lib"

Try without that, since you have the file in the same folder, it should find it. Or put the aplib.lib in that folder.

MichaelW

M2R,

It looks like you are trying to create aplib.dll and the corresponding import library aplib.lib, from a source that is supposed to be linked with the static library aplib.lib. Even if it worked, you would end up overwriting the static library with the import library. Perhaps if you explained what you are trying to do, someone could help you.
eschew obfuscation

M2R

#3
First, Thanks for your fast reply guys  :U

MichaelW,

Should I rename my file or my project?

Well, I try to port aPlib 0.44 to be an add-on for this antivirus h**p://www.ansav.com/get.php?f=ScAnsav_asm.zip

I have attached the SDK

BogdanOntanu

Unfortunately this ASM Anti Virus project is in direct violation of MASM and MASM32 license because it is licensed as GPL/opensource and writtem for MASM and MASM32.

Even more: a small sub set of source code routines are simply copied and pasted from MASM32 package and the license is changed to GPL. The same is true for some code from other foum members (like lingo's InStringL implementation for one example but maybe he got permission from lingo).

This is unfortunate because this product also contains a lot of original code that is probably the result of the author's work.

Practically the actions of the auhors did put the product for ever under to specturm of a lawsuit from Microsoft or other companies even if they change the code or the compiler. Probably the authors are also liable under the law.

I guess the copyright law and licenses are not respected in Indonesia but we do respect it here.

In consequence this thread is locked. The poster is warned.
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro