Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [CONNECT C++] Link problem with Win32 libs

$
0
0

Hi Jon,

MicroStation CONNECT Edition Update 5 SDK based on Visual Studio 2015 has a couple additional Visual Studio installer features that are not enabled by default for C++ developers. :(

When installing or modifying your Microsoft Visual Studio 2015 install, make sure you have the following items checked/enabled for install:

  1. Programming Languages > Visual C++
  2. Windows and Web Development > Universal Windows App Development Tools > Windows 10 SDK (<Any Version Listed> e.g. 10.0.xxxxx)


With those 2 additional new Microsoft Visual C++ feature requirements installed and available you (and the SDK) should then be able to locate GDI32.LIB (and others) in a pattern similar to:

C:\PROGRA~1\Bentley\MICROS~2\examples>sdklib

C:\PROGRA~1\Bentley\MICROS~2\library>f gdi32.lib
File Not Found

C:\PROGRA~1\Bentley\MICROS~2\library>pushd %WindowsSdkDir%

C:\Program Files (x86)\Windows Kits\10>f gdi32.lib
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\um\arm\Gdi32.Lib
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\um\arm64\Gdi32.Lib
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\um\x64\Gdi32.Lib
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\um\x86\Gdi32.Lib
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.14393.0\um\arm\Gdi32.Lib
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.14393.0\um\arm64\Gdi32.Lib
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.14393.0\um\x64\Gdi32.Lib
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.14393.0\um\x86\Gdi32.Lib

If you have tried some of the "SDKMACROS" and find them helpful e.g. VSDIR, VCLIB, etc.; I will add another to make jumping to the Windows Kits directory easier providing a new: VSKITS macro.  Hopefully we don't need to use these too much, but may be helpful when we do.

As for why MSCE SDK U5 (VS2015) projects vs. MSCE SDK U4 (VS2013) are requiring GDI32.lib and others you list; I will see if I can find a bit of time to identify that dependency and update this thread with that information.

HTH,
Bob


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>