Hi,
I run into a problem when I try to build a stereo-related graphics application with vc++6. The application uses the StereoI from nvidia SDK to toggle stereo on/off. The error occurs at linking stage:
Linking…
StereoI.lib(StereoI.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
StereoI.lib(StereoI.obj) : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
StereoI.lib(StereoI.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
StereoI.lib(StereoI.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
Can anyone tell me why this happens and how to fix it? Thank you in advance.
I copy/paste the code segment of interest below:
StereoI* g_pStereoAPI = NULL;
if(CreateStereoI(&g_pStereoAPI)) { // create success
if(g_pStereoAPI->GetStereoState() == STEREO_STATE_ENABLED)
g_pStereoAPI->SetStereoState(1);
else
g_pStereoAPI->SetStereoState(0);
// clean up
delete g_pStereoAPI;
}
PS: someone said the link error is caused by mix-using the compiler and libs of vc of different version.
Weiguang