how add steam api to C++ project?

i’ve found that SteamMatchmaking() defined like



S_API ISteamMatchmaking *S_CALLTYPE SteamMatchmaking();


and S_API defined like



#define S_API extern "C" __declspec( dllimport )


at Linker Tools Error LNK2019 | Microsoft Learn there are few examples of extern causing such error, but i don’t sure if it same in our case