troubleshooting Question

Visual C++ linker errors

Avatar of menong120699
menong120699 asked on
Microsoft Development
6 Comments1 Solution1160 ViewsLast Modified:
Hi,

    I am attempting to build a module which has a Netcfgx.h implementation using VC++6.0

    I have the Platform SDK and XP DDK installed as well.

    When I attempt to build this module, I get the following errors...

eleting intermediate files and output files for project 'IRouteCfg - Win32 Debug'.
--------------------Configuration: IRouteCfg - Win32 Debug--------------------
Compiling...
StdAfx.cpp
Compiling...
IRouteCfg.cpp
C:\IRoute\IRouteCfg\IRouteCfg.cpp(285) : warning C4245: 'argument' : conversion from 'const int' to 'unsigned long', signed/unsigned mismatch
IRouteCfgObj.cpp
NetCfgAPI.cpp
Generating Code...
Compiling...
IRouteError.cpp
IRouteReg.cpp
Generating Code...
Linking...
IRouteCfgObj.obj : error LNK2001: unresolved external symbol _IID_INetCfgClassSetup
NetCfgAPI.obj : error LNK2001: unresolved external symbol _IID_INetCfgClassSetup
IRouteCfgObj.obj : error LNK2001: unresolved external symbol _IID_INetCfgClass
NetCfgAPI.obj : error LNK2001: unresolved external symbol _IID_INetCfgClass
NetCfgAPI.obj : error LNK2001: unresolved external symbol _IID_INetCfgLock
NetCfgAPI.obj : error LNK2001: unresolved external symbol _CLSID_CNetCfg
NetCfgAPI.obj : error LNK2001: unresolved external symbol _IID_INetCfg
NetCfgAPI.obj : error LNK2001: unresolved external symbol _IID_INetCfgComponentBindings
Debug/IRouteCfg.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.

IRouteCfg.exe - 9 error(s), 1 warning(s)

      Is it some error in my setting of the Include directories/Libraries directories?

      I have the following for the Include directories:
                   C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
                   C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
                   C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
                   C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE
                   C:\NTDDK\INC
                   C:\WINDDK\3790\INC
                   C:\WINDDK\3790\INC\WXP
                   C:\WINDDK\3790\INC\DDK\WXP

      and the following for the Libraries directories:
                   C:\Program Files\Microsoft Visual Studio\VC98\LIB
                   C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB
                   C:\PROGRAM FILES\MICROSOFT SDK\LIB
                   C:\NTDDK\LIBCHK
                   C:\NTDDK\LIBFRE
                   C:\WINDDK\3790\LIB
                   C:\WINDDK\3790\LIB\WXP
                   C:\WINDDK\3790\LIB\WXP\I386
                   C:\WINDDK\3790\LIB\WNET\I386

          Any ideas on what I am doing wrong?

Girish
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros