I have added a small BT function to find a specific BT device. It compiles well. But gets error in the linking phase. I have added the required .lib files inthe .mmp and then rebuild using abld makefile vc6 and reloaded it in VC6, still I get the errors..Errors are
Can someone please tell me what is wrong here?
""
Doing first-stage link by name
link.exe @D:\DOKUME~1\Rall\LOKALE~1\Temp\nma01208.
Creating library \Symbian\6.1\Series60\EPOC32\BUILD\KABIR\PROGRAMS\SYBERA_BT\GROUP\SYBERA_BT\WINS\UDEB\SYBERA_BT.lib and object \Symbian\6.1\Series60\EPOC32\BUILD\KABIR\PROGRAMS\SYBERA_BT\GROUP\SYBERA_BT\WINS\UDEB\SYBERA_BT.exp
SYBERA_BTAPPUI.obj : error LNK2001: unresolved external symbol "public: void __thiscall CSybera_BTContainer::SelectDeviceL(void)" (?SelectDeviceL@CSybera_BTContainer@@QAEXXZ)
\Symbian\6.1\Series60\EPOC32\BUILD\KABIR\PROGRAMS\SYBERA_BT\GROUP\SYBERA_BT\WINS\UDEB\SYBERA_BT.APP : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link.exe' : return code '0x460'
Stop.
if exist "\Symbian\6.1\Series60\EPOC32\BUILD\KABIR\PROGRAMS\SYBERA_BT\GROUP\SYBERA_BT\WINS\UDEB\SYBERA_BT.exp" del "\Symbian\6.1\Series60\EPOC32\BUILD\KABIR\PROGRAMS\SYBERA_BT\GROUP\SYBERA_BT\WINS\UDEB\SYBERA_BT.exp"
Stopped the build by removing the export object,
if present, because the pre-link stage failed
Linking...
LINK : fatal error LNK1104: cannot open file "\Symbian\6.1\Series60\EPOC32\BUILD\KABIR\PROGRAMS\SYBERA_BT\GROUP\SYBERA_BT\WINS\UDEB\SYBERA_BT.exp"
Error executing link.exe.
'error LNK2001: unresolved external symbol "public: void __thiscall CSybera_BTContainer::SelectDeviceL(void)" '
This line means, you probably call a class own method in your CSybera_BTContainer like:
SelectDeviceL();
Normally it give you 'error C2065: 'SelectDeviceL' : undeclared identifier' if there is no such as method declared, however you probably add this method in your class CSybera_BTContainer.
The header file might look like
class CSybera_BTContainer : public CCoeControl
{
public:
void SelectDeviceL(void);
}
The compiler try to find in your cpp file something like :
void CSybera_BTContainer::SelectDeviceL(void){};
Unfortunately compiler did not find any method content. Please check your cpp, and if the method body is missing(or just 'CSybera_BTContainer::' missing) either add it, or remove the reference to the method.
Personally I believe what the compiler said, but its just my view. :)