Discussion:
unresolved MakeSureDirectoryPathExists?
(too old to reply)
Les Stockton
2005-06-28 03:05:01 UTC
Permalink
I've got a project that I'm working on from someone else.
I'm using MakeSureDirectoryPathExists, and am getting a link error.
I included ImageHlp.h.
LoaderView.obj : error LNK2001: unresolved external symbol
***@4
Debug/FLoader.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

settings include:
nsviewsd.lib cpclibd.lib /nologo /subsystem:windows /incremental:yes
/pdb:"Debug/TFLoader.pdb" /debug /machine:I386 /nodefaultlib:"LIBCMTD"
/out:"Debug/TFLoader.exe" /pdbtype:sept /libpath:".\Common\Common 6.01\lib"
/libpath:".\Common\MVC 6.01\lib" /libpath:".\OG60\Lib" /libpath:".\OT601\lib"


/nologo /Zp1 /MDd /W3 /Gm /GR /GX /ZI /Od /I "I:\ABB\tfloader\Include" /I
".\Common\Common 6.01\Include" /I "Common\MVC 6.01\Include" /I
"I:\ABB\tfloader\OG70\Include" /I ".\OT601\Include" /D "WIN32" /D "_DEBUG" /D
"_WINDOWS" /D "_AFXDLL" /D "_MBCS" /D "_GXEXT" /FR"Debug/"
/Fp"Debug/TFLoader.pch" /Yu"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c


Runtime library is Debug Multithreaded DLL. I tried to switch to Debug
Multithreaded, but then got massive errors on other items.
Since I added the use of this routine (MakeSureDirectoryPathExists), I think
the link settings are probably correct for the program, but with this
addition, I'm not sure what to do to resolve this problem. Please help.
thatsalok
2005-06-28 04:15:02 UTC
Permalink
Why Don't use Similiar Function PathFileExists which is Defined in
ShlwApi.lib and shwlapi.h


--
cheers,
Alok Gupta
Visit me at http://alok.bizhat.com
Post by Les Stockton
I've got a project that I'm working on from someone else.
I'm using MakeSureDirectoryPathExists, and am getting a link error.
I included ImageHlp.h.
LoaderView.obj : error LNK2001: unresolved external symbol
Debug/FLoader.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
nsviewsd.lib cpclibd.lib /nologo /subsystem:windows /incremental:yes
/pdb:"Debug/TFLoader.pdb" /debug /machine:I386 /nodefaultlib:"LIBCMTD"
/out:"Debug/TFLoader.exe" /pdbtype:sept /libpath:".\Common\Common 6.01\lib"
/libpath:".\Common\MVC 6.01\lib" /libpath:".\OG60\Lib"
/libpath:".\OT601\lib"
Post by Les Stockton
/nologo /Zp1 /MDd /W3 /Gm /GR /GX /ZI /Od /I "I:\ABB\tfloader\Include" /I
".\Common\Common 6.01\Include" /I "Common\MVC 6.01\Include" /I
"I:\ABB\tfloader\OG70\Include" /I ".\OT601\Include" /D "WIN32" /D "_DEBUG" /D
"_WINDOWS" /D "_AFXDLL" /D "_MBCS" /D "_GXEXT" /FR"Debug/"
/Fp"Debug/TFLoader.pch" /Yu"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
Runtime library is Debug Multithreaded DLL. I tried to switch to Debug
Multithreaded, but then got massive errors on other items.
Since I added the use of this routine (MakeSureDirectoryPathExists), I think
the link settings are probably correct for the program, but with this
addition, I'm not sure what to do to resolve this problem. Please help.
Les Stockton
2005-06-28 12:33:06 UTC
Permalink
that doesn't create the path if it doesn't exist does it?
Post by thatsalok
Why Don't use Similiar Function PathFileExists which is Defined in
ShlwApi.lib and shwlapi.h
--
cheers,
Alok Gupta
Visit me at http://alok.bizhat.com
Post by Les Stockton
I've got a project that I'm working on from someone else.
I'm using MakeSureDirectoryPathExists, and am getting a link error.
I included ImageHlp.h.
LoaderView.obj : error LNK2001: unresolved external symbol
Debug/FLoader.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
nsviewsd.lib cpclibd.lib /nologo /subsystem:windows /incremental:yes
/pdb:"Debug/TFLoader.pdb" /debug /machine:I386 /nodefaultlib:"LIBCMTD"
/out:"Debug/TFLoader.exe" /pdbtype:sept /libpath:".\Common\Common
6.01\lib"
Post by Les Stockton
/libpath:".\Common\MVC 6.01\lib" /libpath:".\OG60\Lib"
/libpath:".\OT601\lib"
Post by Les Stockton
/nologo /Zp1 /MDd /W3 /Gm /GR /GX /ZI /Od /I "I:\ABB\tfloader\Include" /I
".\Common\Common 6.01\Include" /I "Common\MVC 6.01\Include" /I
"I:\ABB\tfloader\OG70\Include" /I ".\OT601\Include" /D "WIN32" /D "_DEBUG"
/D
Post by Les Stockton
"_WINDOWS" /D "_AFXDLL" /D "_MBCS" /D "_GXEXT" /FR"Debug/"
/Fp"Debug/TFLoader.pch" /Yu"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
Runtime library is Debug Multithreaded DLL. I tried to switch to Debug
Multithreaded, but then got massive errors on other items.
Since I added the use of this routine (MakeSureDirectoryPathExists), I
think
Post by Les Stockton
the link settings are probably correct for the program, but with this
addition, I'm not sure what to do to resolve this problem. Please help.
Scott McPhillips [MVP]
2005-06-28 12:33:17 UTC
Permalink
Post by Les Stockton
I've got a project that I'm working on from someone else.
I'm using MakeSureDirectoryPathExists, and am getting a link error.
I included ImageHlp.h.
LoaderView.obj : error LNK2001: unresolved external symbol
Debug/FLoader.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Always check the "Requirements" summary in the function's documentation.
In this case, you will see
Library: Use Dbghelp.lib

So you must list the Dbghelp.lib file in your project linker settings.
--
Scott McPhillips [VC++ MVP]
Les Stockton
2005-06-28 17:47:09 UTC
Permalink
thanx
Post by Scott McPhillips [MVP]
Post by Les Stockton
I've got a project that I'm working on from someone else.
I'm using MakeSureDirectoryPathExists, and am getting a link error.
I included ImageHlp.h.
LoaderView.obj : error LNK2001: unresolved external symbol
Debug/FLoader.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Always check the "Requirements" summary in the function's documentation.
In this case, you will see
Library: Use Dbghelp.lib
So you must list the Dbghelp.lib file in your project linker settings.
--
Scott McPhillips [VC++ MVP]
Loading...