[quote user="Al Germolus"]I would like to get them built in a ".LIB" library for MicroStation Connect. How can I do this using a Make file?[/quote]
When you build a C++ native app. using bmake (Bentley make file) you invoke the compiler and linker delivered with Visual Studio. To understand how to modify your make file, first analyse your Viz Studio project settings and find the switches that the compiler and linker use. You see the command line switches in your Viz Studio project settings.
The compiler switch that creates a static library file (*.lib) is /D _LIB. You need to define that switch in your make file. The syntax to define a switch in bmake is not intuitive: you must define a macro, then call a bmake include file (*.mki) to send that switch to the compiler or linker...
nameToDefine = _LIB %include cdefapnd.mki
You also need to modify the linker settings. The C++ examples delivered with the MicroStation SDK all build a DLL. The settings for the linker are the DLM_XXX macros, documented in \mdl\include\dlmlink.mki. You probably have a set of macros in your current make file something like this...
DLM_NAME = $(appName) DLM_DEST = $(mdlapps) DLM_SYM_NAME = $(appName)sym DLM_RESL_NAME = $(appName)res DLM_OBJECT_DEST = $(o) DLM_LIBDEF_SRC = $(baseDir) DLM_OBJECT_FILES = $(dlmObjs) DLM_LIBRARY_FILES = $(dlmLibs) DLM_NO_DLS = 1 DLM_NO_DEF = 1 DLM_NOENTRY = 1 DLM_NO_DELAYLOAD = 1 DLM_NO_NTBSADDR = 1 DLM_LIBRARY_FILES = $(mdlLibs)BentleyDgn.lib \ $(mdlLibs)toolsubs.lib \ $(mdlLibs)ditemlib.lib \ $(mdlLibs)mdllib.lib
You should add the following to suppress the creation of a DLL...
DLM_NO_DLL = 1