Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Help: Link error with class: TDrive

3 replies · 2,027 views · Started 03 May 2005

Hi.
I have these errors:

"...
Project: Project.mcp, Target: WINSCW UDEB
Link Error : Undefined symbol: 'int TDrive::LockDevice(class TBuf8<16> &, class TBuf8<16> &, int) (?LockDevice@TDrive@@QAEHAAV?�TBuf8�OBA@@@OH@Z)

Project: Project.mcp, Target: WINSCW UDEB
Link Error : Link failed
..."

Maybe it's due to I didn't make any inizialization of the object
that is a TDrive, or maybe it's due to I didn't use any constructor
for that object but I didn't find any. Well but I'm not sure about this,
I need your help, please.

Do you know how can I solve them?.

Thank you very very much for your attention and help.

Atreo.

Linker errors are always due to not including the required libs.
Check what lib is required for TDrive and include it in the .mmp.
Bye.
--eminemence.

Hello, thank you for your answer.

I'm going to test your suggestion now, the thing is that I don't know how can I find the suitable library for some class.

Using the help file, I could find the header file where this class is, but not the library.
How can I know which library I need to add to my project?.

Thank you for your help.

Thats simple do this.
Search in release\armi folder for libs that have TDrive as text.
i.e. while searching fill TDrive in the 'Containing Text' field and search for *.lib as
file type.
Mostly it must be efsrv.lib or efile.lib.
Bye.
--eminemence.