Symbian
Symbian OS Library

FAQ-0877 Why do I have problems linking with edllstub.lib?

[Index][spacer] [Previous] [Next]



 

Classification: C++ Category: Debugging
Created: 05/22/2003 Modified: 06/09/2003
Number: FAQ-0877
Platform: Symbian OS v6.0

Question:
I'm using the latest version of the Nokia 9200 Communicator Series SDK, v1.2. Some of my code uses Dll::SetTls() and Dll::Tls(). I understand from FAQ-0818 that I need as a result to link to edllstub.lib as well as to euser.lib.
However, I'm still seeing problems with UserSvr::DllSetTls() missing:
..\..\..\Symbian\6.0\NokiaCPP\EPOC32\RELEASE\THUMB\UREL\EDLLSTUB.LIB(UP_DLL_TLS.o)(.text+0x6):Up_dll_tls.cpp: undefined reference to UserSvr::DllSetTls(int, void *)'
..\..\..\Symbian\6.0\NokiaCPP\EPOC32\RELEASE\THUMB\UREL\EDLLSTUB.LIB(UP_DLL_TLS.o)(.text+0x6):Up_dll_tls.cpp: relocation truncated to fit: ARM_THUMB23 UserSvr::DllSetTls(int, void *)
..\..\..\Symbian\6.0\NokiaCPP\EPOC32\RELEASE\THUMB\UREL\EDLLSTUB.LIB(UP_DLL_TLS.o)(.text+0x18):Up_dll_tls.cpp: undefined reference to `UserSvr::DllTls(int)'

What else do I need?


Answer:
The problem here is a subtle one. You need to declare the linkage to edllstub.lib in your .mmp file before that to euser.lib.