AFAIK, you need to install the masm32 package and copy masm32\bin\LIB.EXE into Microsoft Visual C++ Toolkit 2003\bin.
Of course I'm being ignorant here, but doesn't that do the same thing that "link /lib" does in the MSVC toolkit?
AFAIK, you need to install the masm32 package and copy masm32\bin\LIB.EXE into Microsoft Visual C++ Toolkit 2003\bin.
Code: Select all
D:\Code\MSVC2003>link /lib
Microsoft (R) Library Manager Version 7.10.3052
Copyright (C) Microsoft Corporation. All rights reserved.
usage: LIB [options] [files]
options:
/DEF[:filename]
/EXPORT:symbol
/EXTRACT:membername
/INCLUDE:symbol
/LIBPATH:dir
/LIST[:filename]
/MACHINE:{AM33|ARM|EBC|IA64|M32R|MIPS|MIPS16|MIPSFPU|MIPSFPU16|MIPSR41XX|
SH3|SH3DSP|SH4|SH5|THUMB|X86}
/NAME:filename
/NODEFAULTLIB[:library]
/NOLOGO
/OUT:filename
/REMOVE:membername
/SUBSYSTEM:{CONSOLE|EFI_APPLICATION|EFI_BOOT_SERVICE_DRIVER|
EFI_ROM|EFI_RUNTIME_DRIVER|NATIVE|POSIX|WINDOWS|
WINDOWSCE}[,#[.##]]
/VERBOSE
Daath wrote:No, I mean the command "link /lib" doesn't that do the same as both your lib.exe's?
willll wrote:lib.exe is located here: C:\Program Files\Microsoft SDK\Bin\Win64 . and YES it doesn work even though you are targetting a 32-bit environment
Code: Select all
Creating library nspr4.lib and object nspr4.exp
prprf.obj : error LNK2019: unresolved external symbol __aulldvrm referenced in function _cvt_ll
pralarm.obj : error LNK2019: unresolved external symbol __ftol2 referenced in function _pr_PredictNextNotifyTime
prtime.obj : error LNK2019: unresolved external symbol __alldvrm referenced in function _ComputeGMT
nspr4.dll : fatal error LNK1120: 3 unresolved externals
make[5]: *** [nspr4.dll] Error 96
chocoba65 wrote:AFAIK, you need to install the masm32 package and copy <code>masm32\bin\LIB.EXE</code> into <code>Microsoft Visual C++ Toolkit 2003\bin</code>.
Code: Select all
make[7]: Nothing to be done for `export'.
make[7]: Leaving directory `/cygdrive/c/mozilla/mozilla/nsprpub/pr/src/threads/c
ombined'
make[6]: Leaving directory `/cygdrive/c/mozilla/mozilla/nsprpub/pr/src/threads'
sh /cygdrive/c/mozilla/mozilla/nsprpub/build/cygwin-wrapper rc.exe -DMOZILLA_CL
IENT=1 -DNDEBUG=1 -DXP_PC=1 -DWIN32=1 -DWIN95=1 -D_PR_GLOBAL_THREADS_ONLY=1 -D_X
86_=1 -DFORCE_PR_LOG -D_NSPR_BUILD_ -Ic:/mozilla/mozilla/dist/include/nspr -I/cy
gdrive/c/mozilla/mozilla/nsprpub/pr/include -I/cygdrive/c/mozilla/mozilla/nsprpu
b/pr/include/private -Fonspr.res nspr.rc
make[5]: *** [nspr.res] Error 128
make[5]: Leaving directory `/cygdrive/c/mozilla/mozilla/nsprpub/pr/src'
make[4]: *** [export] Error 2
make[4]: Leaving directory `/cygdrive/c/mozilla/mozilla/nsprpub/pr'
make[3]: *** [export] Error 2
make[3]: Leaving directory `/cygdrive/c/mozilla/mozilla/nsprpub'
make[2]: *** [nspr] Error 2
make[2]: Leaving directory `/cygdrive/c/mozilla/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/cygdrive/c/mozilla/mozilla'
make: *** [build] Error 2
Code: Select all
make[6]: Leaving directory `/cygdrive/c/mozilla/mozilla/nsprpub/pr/src/threads'
sh /cygdrive/c/mozilla/mozilla/nsprpub/build/cygwin-wrapper rc.exe -DMOZILLA_CL
IENT=1 -DNDEBUG=1 -DXP_PC=1 -DWIN32=1 -DWIN95=1 -D_PR_GLOBAL_THREADS_ONLY=1 -D_X
86_=1 -DFORCE_PR_LOG -D_NSPR_BUILD_ -Ic:/mozilla/mozilla/dist/include/nspr -I/cy
gdrive/c/mozilla/mozilla/nsprpub/pr/include -I/cygdrive/c/mozilla/mozilla/nsprpu
b/pr/include/private -Fonspr.res nspr.rc
./nspr.res finished
rm -f nspr4_s.lib
lib -NOLOGO -OUT:"nspr4_s.lib" ./prvrsion.obj io/./prfdcach.obj io/./prmwait.ob
j io/./prmapopt.obj io/./priometh.obj io/./pripv6.obj io/./prlayer.obj io/./prlo
g.obj io/./prmmap.obj io/./prpolevt.obj io/./prprf.obj io/./prscanf.obj io/./prs
tdio.obj threads/./prcmon.obj threads/./prrwlock.obj threads/./prtpd.obj linking
/./prlink.obj malloc/./prmem.obj md/./prosdep.obj memory/./prshm.obj memory/./pr
shma.obj memory/./prseg.obj misc/./pralarm.obj misc/./pratom.obj misc/./prcountr
.obj misc/./prdtoa.obj misc/./prenv.obj misc/./prerr.obj misc/./prerror.obj misc
/./prerrortable.obj misc/./prinit.obj misc/./prinrval.obj misc/./pripc.obj misc/
./prlog2.obj misc/./prlong.obj misc/./prnetdb.obj misc/./prolock.obj misc/./prrn
g.obj misc/./prsystem.obj misc/./prthinfo.obj misc/./prtpool.obj misc/./prtrace.
obj misc/./prtime.obj malloc/./prmalloc.obj io/./prdir.obj io/./prfile.obj io/./
prio.obj io/./prsocket.obj misc/./pripcsem.obj threads/./prcthr.obj threads/./pr
dump.obj threads/./prmon.obj threads/./prsem.obj threads/combined/./prucpu.obj t
hreads/combined/./prucv.obj threads/combined/./prulock.obj threads/combined/./pr
ustack.obj threads/combined/./pruthr.obj md/windows/./ntmisc.obj md/windows/./nt
sec.obj md/windows/./ntsem.obj md/windows/./ntinrval.obj md/windows/./ntgc.obj m
d/windows/./w95thred.obj md/windows/./w95io.obj md/windows/./w95cv.obj md/window
s/./w95sock.obj md/windows/./win32_errors.obj md/windows/./w32ipcsem.obj md/wind
ows/./w32poll.obj md/windows/./w32rng.obj md/windows/./w32shm.obj md/windows/./w
95dllmain.obj ./nspr.res
make[5]: *** [nspr4_s.lib] Error 128
make[5]: Leaving directory `/cygdrive/c/mozilla/mozilla/nsprpub/pr/src'
make[4]: *** [export] Error 2
make[4]: Leaving directory `/cygdrive/c/mozilla/mozilla/nsprpub/pr'
make[3]: *** [export] Error 2
make[3]: Leaving directory `/cygdrive/c/mozilla/mozilla/nsprpub'
make[2]: *** [nspr] Error 2
make[2]: Leaving directory `/cygdrive/c/mozilla/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/cygdrive/c/mozilla/mozilla'
make: *** [build] Error 2
Code: Select all
make[4]: Entering directory `/cygdrive/d/Dev/mozilla/mozilla/nsprpub/config'
sh /cygdrive/d/Dev/mozilla/mozilla/nsprpub/build/cygwin-wrapper cl -Fonow.obj -c -W3 -nologo -GF -Gy -MD -O2 -G7 -GL -U
DEBUG -U_DEBUG -UWINNT -DMOZILLA_CLIENT=1 -DNDEBUG=1 -DXP_PC=1 -DWIN32=1 -DWIN95=1 -D_PR_GLOBAL_THREADS_ONLY=1 -D_X86_=1 -DF
ORCE_PR_LOG /cygdrive/d/Dev/mozilla/mozilla/nsprpub/config/now.c
now.c
d:/Dev\mozilla\mozilla\nsprpub\config\now.c(43) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
make[4]: *** [now.obj] Error 2
make[4]: Leaving directory `/cygdrive/d/Dev/mozilla/mozilla/nsprpub/config'
make[3]: *** [export] Error 2
make[3]: Leaving directory `/cygdrive/d/Dev/mozilla/mozilla/nsprpub'
make[2]: *** [nspr] Error 2
make[2]: Leaving directory `/cygdrive/d/Dev/mozilla/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/cygdrive/d/Dev/mozilla/mozilla'
make: *** [build] Error 2
Code: Select all
@echo off
set MOZ_TOOLS=d:\dev\mozilla\moztools
set GLIB_PREFIX=d:\dev\mozilla\w32build\vc++
set LIBIDL_PREFIX=d:\dev\mozilla\w32build\vc++
set MOZ_SRC=d:\dev\mozilla
call c:\"program files"\VC++\vcvars32.bat
set PATH=%PATH%;c:\program files\microsoft sdk\bin;d:\dev\mozilla\cygwin\bin;%GLIB_PREFIX%\bin;%LIBIDL_PREFIX%\bin;%MOZ_TOOLS%\bin
set HOME=d:\dev\mozilla
set CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
Code: Select all
@echo off
Set PATH=C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin;%PATH%
Set INCLUDE=C:\Program Files\Microsoft SDK\include;%INCLUDE%
Set LIB=C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib;%LIB%
...resolved this problem by editing vcvars32.bat file and replacing INCLUDE path from Microsoft Visual C++ Toolkit 2003\Include to Microsoft SDK\include...so i simply copied content of C++\include to SDK\include...
Code: Select all
make[2]: Leaving directory `/cygdrive/d/Dev/mozilla/mozilla/config'
/usr/bin/make nspr
make[2]: Entering directory `/cygdrive/d/Dev/mozilla/mozilla'
/usr/bin/make -C nsprpub
make[3]: Entering directory `/cygdrive/d/Dev/mozilla/mozilla/nsprpub'
cd config; /usr/bin/make -j1 export
make[4]: Entering directory `/cygdrive/d/Dev/mozilla/mozilla/nsprpub/config'
sh /cygdrive/d/Dev/mozilla/mozilla/nsprpub/build/cygwin-wrapper cl -Fonow.obj -c -W3 -nologo -GF -Gy -MD -O2 -G7 -GL -U
DEBUG -U_DEBUG -UWINNT -DMOZILLA_CLIENT=1 -DNDEBUG=1 -DXP_PC=1 -DWIN32=1 -DWIN95=1 -D_PR_GLOBAL_THREADS_ONLY=1 -D_X86_=1 -DF
ORCE_PR_LOG /cygdrive/d/Dev/mozilla/mozilla/nsprpub/config/now.c
now.c
sh /cygdrive/d/Dev/mozilla/mozilla/nsprpub/build/cygwin-wrapper cl now.obj /Fenow.exe
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3052 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
Microsoft (R) Incremental Linker Version 7.10.3052
Copyright (C) Microsoft Corporation. All rights reserved.
/out:now.exe
now.obj
now.obj : warning LNK4218: non-native module found; restarting link with /LTCG
Microsoft (R) Incremental Linker Version 7.10.3052
Copyright (C) Microsoft Corporation. All rights reserved.
/out:now.exe
now.obj
LINK : fatal error LNK1104: cannot open file 'uuid.lib'
make[4]: *** [now.exe] Error 2
make[4]: Leaving directory `/cygdrive/d/Dev/mozilla/mozilla/nsprpub/config'
make[3]: *** [export] Error 2
make[3]: Leaving directory `/cygdrive/d/Dev/mozilla/mozilla/nsprpub'
make[2]: *** [nspr] Error 2
make[2]: Leaving directory `/cygdrive/d/Dev/mozilla/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/cygdrive/d/Dev/mozilla/mozilla'
make: *** [build] Error 2
Code: Select all
Set INCLUDE=C:\Program Files\Microsoft SDK\include;%INCLUDE%
Set INCLUDE=C:\Program Files\Microsoft Visual C++ Toolkit 2003\include;%INCLUDE%
Set LIB=C:\Program Files\Microsoft SDK\lib;%LIB%
Set LIB=C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib;%LIB%
Code: Select all
Set LIB=C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib;%LIB%;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\;%LIB%
Code: Select all
@echo off
Set PATH=C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin;%PATH%;C:\Program Files\Microsoft SDK\Bin
Set INCLUDE=C:\Program Files\Microsoft Visual C++ Toolkit 2003\include;%INCLUDE%;C:\Program Files\Microsoft SDK\include
Set LIB=C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib;%LIB%;C:\Program Files\Microsoft SDK\Lib