nvidia SDK + vc6 unresolved external symbol __RTC_***
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 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.
[quote name='connan' date='Jun 13 2007, 08:22 AM']Make sure that StereoI.lib is added to the 'Additional Librarys' section in linker-options.
[right][snapback]208831[/snapback][/right]
[/quote]
Yes, I did. I think it is because I use vc6 and StereoI.lib was generated with either vc7 or vc8...
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
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
[right][snapback]208831[/snapback][/right]
[/quote]
Yes, I did. I think it is because I use vc6 and StereoI.lib was generated with either vc7 or vc8...
Yes, I did. I think it is because I use vc6 and StereoI.lib was generated with either vc7 or vc8...