The instructions in config/config.mak
tell
you to leave variables FELIBS_debug
and
FELIBS_release
as they are in order to link KeyValue
with the examples of core and bridge libraries. However, you must change
these variables to point to your own core and bridge libraries' paths in
order to link KeyValue with them. You can use either absolute or
relative paths. Relative paths are taken from
excel-addin
and/or
openoffice-addin
directories.
If you are a Microsoft Visual Studio user, then you must use multi-threaded runtime libraries to compile you core and bridge libraries. More precisely you have two options depending on your build system:
Follow the instructions below if you build your core and bridge libraries using Microsoft Visual Studio build system. (This is the default method choosen when you set up your libraries using Microsoft Visual Studio's IDE.)
Open Microsoft Visual Studio and your core project.
Open the solution explorer (Ctrl+Alt+L).
Right-click on you core project.
Select:
-> -> -> .On the right panel on the properties page, select the correct Runtime Library depending on configuration as below:
For Debug configuration choose "Multi-threaded debug (/MTd)";
For Release configuration choose "Multi-threaded (/MT)".
Remark: (a) and (b) above do not say to choose the "DLL" libraries.
Repeat steps (3) - (5) for your bridge library and for any other library you want to link with KeyValue.
Follow the instruction below if you build your core and bridge libraries using another build system (e.g., makefiles, bjam, etc).
Make sure you pass to MSVC compiler (cl.exe) the apropriate option regarding the runtime libraries:
Use /MTd
for debug build.
Use /MT
for release build.
If for some reason you are not happy to compile your libraries
using the options above, then you can change KeyValues'. However, the
openoffice add-in will not build anymore; only the Excel add-in will. To
change KeyValue's compiling options open the file
config/windows-msvc.mak
in any text editor and edit
the lines below
debug : OBJ_FLAGS += -D_DEBUG -Od -Gm -RTC1 -MTd -ZI release : OBJ_FLAGS += -DNDEBUG -O2 -Oi -GL -FD -MT -Gy -Zi
replacing the -MTd
and -MT
according to
your preferences. You might need to rebuild KeyValue (clean and build
again).