Hello everyone,

I'm having some trouble compiling a project I've been working on.  I started to migrate my code to the JWASM includes (Wininc version 2.01a) and get the following error:


\Masm32\Bin\ML /c /coff /Cp /nologo /I"\Masm32\Include" "C:\WinAsm\Samples\Dialog\Dialog.asm"

Assembling: C:\WinAsm\Samples\Dialog\Dialog.asm

\Masm32\Bin\Link @"C:\WinAsm\Samples\Dialog\link.war"

Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

/SUBSYSTEM:WINDOWS /RELEASE /VERSION:4.0 "/LIBPATH:\Masm32\Lib" "C:\WinAsm\Samples\Dialog\Dialog.obj" "C:\WinAsm\Samples\Dialog\Dialog.res" "/OUT:C:\WinAsm\Samples\Dialog\Dialog.exe"
Dialog.obj : error LNK2001: unresolved external symbol _IID_IShellBrowser
Dialog.obj : error LNK2001: unresolved external symbol _IID_IShellView
Dialog.obj : error LNK2001: unresolved external symbol _IID_IShellFolder
Dialog.obj : error LNK2001: unresolved external symbol _IID_IShellExtInit
Dialog.obj : error LNK2001: unresolved external symbol _IID_IShellPropSheetExt
Dialog.obj : error LNK2001: unresolved external symbol _IID_IPersistFolder
Dialog.obj : error LNK2001: unresolved external symbol _IID_IShellLinkA
Dialog.obj : error LNK2001: unresolved external symbol _IID_IEnumIDList
Dialog.obj : error LNK2001: unresolved external symbol _IID_IShellLinkW
Dialog.obj : error LNK2001: unresolved external symbol _IID_IShellView2
Dialog.obj : error LNK2001: unresolved external symbol _IID_IShellFolder2
Dialog.obj : error LNK2001: unresolved external symbol _IID_IEnumExtraSearch
C:\WinAsm\Samples\Dialog\Dialog.exe : fatal error LNK1120: 12 unresolved externals

Make finished. 12 error(s) occured


I'm assuming this a library problem since it says symbols.  I'm trying to start some COM stuff so I put a call to SHGetDesktopFolder in a sample program to see if it would work in a simple project.  My includes are:

include \jwasm\include\windows.inc
includelib \jwasm\lib\shell32.lib
include \jwasm\include\shlobj.inc
include \jwasm\include\ole2.inc
includelib \jwasm\lib\ole32.lib
includelib \jwasm\lib\user32.lib
includelib \jwasm\lib\kernel32.lib

What am I missing??

Thanks
Posted on 2011-05-14 18:04:56 by Custos
I found out what the problem was.  I needed to include UUID.lib.  Doh!
Posted on 2011-05-17 05:12:16 by Custos