C
Craig Graham
I am trying to use SetupDiGtClassDevsEx from Visual C++. I have the latest
DDK.
I can build samples such as devcon using "build", but whenever I try a
simple test using this one function in VC++ I get a linker error;
devcon2-cg error LNK2001: unresolved external symbol "void * __stdcall
SetupDiGetClassDevsExA(struct _GUID const *,char const *,struct HWND__
*,unsigned long,void *,char const *,void *)"
(?SetupDiGetClassDevsExA@@$$J228YGPAXPBU_GUID@@PBDPAUHWND__@@KPAX13@Z)
In Tools->Options I have the extra link library path set to
C:\WINDDK\3790\lib\wxp\i386
The includes path is set similarly and would appear to be correct because it
does compile.
I have the same in the Linker->Additional Library Diectories in the
properties of the project.
Switching the linker to verbose reveals that lib files are being loaded from
the directory in which setupapi.lib resides. I know it is there because I
can see it with the "dir" command. Why is the VC++ linker not finding it?
The string "setupapi.lib" does not appear in the verbose linker output. It
is as if it does not know to look in setupapi.lib. Is there a way of forcing
it to look at specific lib files as well as specific directories?
DDK.
I can build samples such as devcon using "build", but whenever I try a
simple test using this one function in VC++ I get a linker error;
devcon2-cg error LNK2001: unresolved external symbol "void * __stdcall
SetupDiGetClassDevsExA(struct _GUID const *,char const *,struct HWND__
*,unsigned long,void *,char const *,void *)"
(?SetupDiGetClassDevsExA@@$$J228YGPAXPBU_GUID@@PBDPAUHWND__@@KPAX13@Z)
In Tools->Options I have the extra link library path set to
C:\WINDDK\3790\lib\wxp\i386
The includes path is set similarly and would appear to be correct because it
does compile.
I have the same in the Linker->Additional Library Diectories in the
properties of the project.
Switching the linker to verbose reveals that lib files are being loaded from
the directory in which setupapi.lib resides. I know it is there because I
can see it with the "dir" command. Why is the VC++ linker not finding it?
The string "setupapi.lib" does not appear in the verbose linker output. It
is as if it does not know to look in setupapi.lib. Is there a way of forcing
it to look at specific lib files as well as specific directories?