Discussion Board

Results 1 to 2 of 2

Thread: Linking Error

  1. #1
    Regular Contributor nintel's Avatar
    Join Date
    Mar 2003
    Posts
    86
    Hi

    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.

    SYBERA_BT.APP - 4 error(s), 0 warning(s)
    ""

    Nintel

  2. #2
    Regular Contributor Denever's Avatar
    Join Date
    Mar 2003
    Location
    Tampere
    Posts
    475
    '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. :)

    Best Regards
    (V) - Forum Nokia Developer Support

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved