PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Linking errors including "edge.h"

Hello!

I've got a linking errors including "edge.h"


    error LNK2001: unresolved external symbol "public: __cdecl std::exception::exception(class exception::exception const &)" (??0exception@std@@QAA@ABV01@@Z)

    error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)

    error LNK2019: unresolved external symbol "public: virtual __cdecl std::exception::~exception(void)" (??1exception@std@@UAA@XZ) referenced in function "public: __cdecl std::logic_error::logic_error(class logic_error::logic_error cons
    t &)" (??0logic_error@std@@QAA@ABV01@@Z)

    error LNK2019: unresolved external symbol "public: __cdecl std::exception::exception(char const *)" (??0exception@std@@QAA@PBD@Z) referenced in function "public: __cdecl std::logic_error::logic_error(class logic_error::basic_string<c
    har,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0logic_error@std@@QAA@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)


Also it says

    C:\projectsPDA\edge\include\edgemain.h(135): Could not find the file eikstart.h.
    C:\projectsPDA\edge\include\esound\hekkus.h(11): Could not find the file HSS.h.
    C:\projectsPDA\edge\include\edgedevice.h(87): Could not find the file avkon.hrh.
    C:\projectsPDA\edge\include\edgedevice.h(88): Could not find the file avkon.rsg.
    C:\projectsPDA\edge\include\edgedevice.h(89): Could not find the file aknappui.h.
    C:\projectsPDA\edge\include\edgedevice.h(90): Could not find the file aknapp.h.
    C:\projectsPDA\edge\include\edgedevice.h(91): Could not find the file akndoc.h.
    C:\projectsPDA\edge\include\edgedevice.h(92): Could not find the file aknsoundsystem.h.
    C:\projectsPDA\edge\include\edgedevice.h(93): Could not find the file aknnotewrappers.h.
    C:\projectsPDA\edge\include\edgedevice.h(96): Could not find the file qikappui.h.
    C:\projectsPDA\edge\include\edgedevice.h(97): Could not find the file qikapplication.h.
    C:\projectsPDA\edge\include\edgedevice.h(98): Could not find the file qikdocument.h.
    C:\projectsPDA\edge\include\edgedevice.h(100): Could not find the file eikappui.h.
    C:\projectsPDA\edge\include\edgedevice.h(101): Could not find the file eikapp.h.
    C:\projectsPDA\edge\include\edgedevice.h(102): Could not find the file eikdoc.h.
    C:\projectsPDA\edge\include\edgedevice.h(112): Could not find the file eikon.hrh.
    C:\projectsPDA\edge\include\edgedevice.h(145): Could not find the file Etel3rdParty.h.
    C:\projectsPDA\edge\include\edgedevice.h(148): Could not find the file plpvariant.h.
    C:\projectsPDA\edge\include\edgedevice.h(150): Could not find the file hal.h.
    C:\projectsPDA\edge\include\edgedevice.h(151): Could not find the file coeccntx.h.
    C:\projectsPDA\edge\include\edgedevice.h(152): Could not find the file eikenv.h.
    C:\projectsPDA\edge\include\edgedevice.h(153): Could not find the file eikmenup.h.
    C:\projectsPDA\edge\include\edgedevice.h(154): Could not find the file f32file.h.
    C:\projectsPDA\edge\include\edgedevice.h(155): Could not find the file apgtask.h.
    C:\projectsPDA\edge\include\edgedevice.h(157): Could not find the file etel.h.
    C:\projectsPDA\edge\include\edgedevice.h(158): Could not find the file es_sock.h.
    C:\projectsPDA\edge\include\edgedevice.h(159): Could not find the file in_sock.h.
    C:\projectsPDA\edge\include\edgedevice.h(161): Could not find the file bt_sock.h.
    C:\projectsPDA\edge\include\edgedevice.h(162): Could not find the file btsdp.h.
    C:\projectsPDA\edge\include\edgedevice.h(163): Could not find the file btmanclient.h.
    C:\projectsPDA\edge\include\edgedevice.h(166): Could not find the file sys/mman.h.
    C:\projectsPDA\edge\include\edgedevice.h(167): Could not find the file sys/time.h.
    C:\projectsPDA\edge\include\edgedevice.h(168): Could not find the file sys/ioctl.h.
    C:\projectsPDA\edge\include\edgedevice.h(169): Could not find the file sys/socket.h.
    C:\projectsPDA\edge\include\edgedevice.h(171): Could not find the file linux/fb.h.
    C:\projectsPDA\edge\include\edgedevice.h(172): Could not find the file linux/i2c-dev.h.
    C:\projectsPDA\edge\include\edgedevice.h(173): Could not find the file arpa/inet.h.
    C:\projectsPDA\edge\include\edgedevice.h(174): Could not find the file netinet/in.h.
    C:\projectsPDA\edge\include\edgedevice.h(175): Could not find the file netdb.h.
    C:\projectsPDA\edge\include\edgedevice.h(177): Could not find the file dirent.h.
    C:\projectsPDA\edge\include\edgedevice.h(181): Could not find the file unistd.h.


I'm using Microsoft Embedded Visual c++

Do I need to link another lib as well as:
#pragma comment(lib, "edge.lib") ??

Thanks for your help.
Hi Meiline,

Can you tell me if one of your .cpp files includes edgemain.h? If that doesn't help, can you try to compile the embedded visual c++ project of the helloworld sample? Does it give the same errors?

You can ignore the list of header files it can't find. Embedded visual c++ seems to ignore #if directives, so it also tries to scan for the Symbian header files.
Hello Edge,

I include "edgemain.h" in one of my *.cpp where I have the edgeMain function. The others *.cpp include "edge.h"

If I use the Edge IDE I have the same linking errors, the errors about don't find the *.h dissapear.

The helloworld example is ok. I don't have problems with this example.
Hi Meiline,

I think the linker errors aren't related to the EDGELIB SDK. Can you tell me if you're using specific c++ features (like exception handling)?

Another possible fix is to create a release build (please check if your current build configuration is set to debug). Also you can try checking the library, perhaps it's using the incorrect edge.lib file.

The header file warnings don't appear in the Edge IDE, because these warnings are generated by the Embedded Visual C++ environment, and not by the compiler.
I solved the linking error. But now, I don't remember how! 8O

I was away for a few days and I couldn't replay.

Anyway, thanks for your help.