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 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
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

#1
Posted 06/11/2007 06:04 PM   
Make sure that StereoI.lib is added to the 'Additional Librarys' section in linker-options.
Make sure that StereoI.lib is added to the 'Additional Librarys' section in linker-options.

#2
Posted 06/13/2007 01:22 PM   
[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...
[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.

[snapback]208831[/snapback]






Yes, I did. I think it is because I use vc6 and StereoI.lib was generated with either vc7 or vc8...

#3
Posted 06/13/2007 01:32 PM   
Try to disable /GZ switch in debug-settings, i mean this is the old synonym for /RTC.
Try to disable /GZ switch in debug-settings, i mean this is the old synonym for /RTC.

#4
Posted 06/14/2007 09:52 AM   
Scroll To Top