Archicad C++ API
About Archicad add-on development using the C++ API.

LINK : fatal error LNK1104: cannot open file 'stlport_vc7.li

Anonymous
Not applicable
Hi,

I appreciate any help on this problem.

I am getting following error while using "APIDev Kit 16".
I use VS2008 and Microsoft Windows SDK v6.0A on Win7 x64

Can somebody help me with this error?

1>Linking...
1>ACAP_STAT.lib(ACAPlib.obj) : warning LNK4229: invalid directive '/FAILIFMISMATCH:_MSC_VER=1600' encountered; ignored
1>ACAP_STAT.lib(ACAPlib.obj) : warning LNK4229: invalid directive '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0' encountered; ignored
1>LINK : fatal error LNK1104: cannot open file 'stlport_vc7.lib'

I tried to install Microsoft Windows SDK for Windows 7 and .NET Framework 4 but it failed, without error.


Thanks a lot
Regards
2 REPLIES 2
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
Hi,

I had the same error few months ago and the following settings in my VS project solved that:

On linker input settings menu switch "Ignore All Default Libraries" to yes,
and "Additional Dependencies" should be "msvcrtd.lib;msvcprtd.lib;%(AdditionalDependencies)" on debug and "msvcrt.lib;msvcprt.lib;%(AdditionalDependencies)" on release configuration.

Check also your preprocessor definitions too.
Debug preprocessor definitions:
_ITERATOR_DEBUG_LEVEL=0;WIN32;_DEBUG;_WINDOWS;_USRDLL;_STLP_DONT_FORCE_MSVC_LIB_NAME;%(PreprocessorDefinitions)
Release preprocessor definitions:
WIN32;NDEBUG;_WINDOWS;_USRDLL;_STLP_DONT_FORCE_MSVC_LIB_NAME;%(PreprocessorDefinitions)

Hope this helps you too!

Regards,
Tibor
Anonymous
Not applicable
Thanks a lot Tibor,

It fixes the error.

Reagrds
Rahul