PocketMatrix forums

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

Adding Hekkus to my project: getting linking errors

Error:
Code:
--------------------Configuration: Project_003 - Win32 (WCE ARMV4) Release--------------------
Compiling...
main.cpp
Linking...
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl hssSpeaker::hssSpeaker(void)" (__imp_??0hssSpeaker@@QAA@XZ) referenced in function $E2
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl hssSpeaker::~hssSpeaker(void)" (__imp_??1hssSpeaker@@UAA@XZ) referenced in function $E3
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl hssMusic::hssMusic(void)" (__imp_??0hssMusic@@QAA@XZ) referenced in function $E7
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl hssMusic::~hssMusic(void)" (__imp_??1hssMusic@@UAA@XZ) referenced in function $E8
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __cdecl hssSpeaker::playMusic(class hssMusic *,unsigned int)" (__imp_?playMusic@hssSpeaker@@QAAHPAVhssMusic@@I@Z) referenced in function "public: __cdecl Project
003::Project003(void)" (??0Project003@@QAA@XZ)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl hssMusic::loop(bool)" (__imp_?loop@hssMusic@@QAAX_N@Z) referenced in function "public: __cdecl Project003::Project003(void)" (??0Project003@@QAA@XZ)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __cdecl hssMusic::load(void *,bool)" (__imp_?load@hssMusic@@QAAHPAX_N@Z) referenced in function "public: __cdecl Project003::Project003(void)" (??0Project003@@QA
A@XZ)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __cdecl hssSpeaker::open(unsigned int,unsigned int,bool,unsigned int,unsigned int)" (__imp_?open@hssSpeaker@@QAAHII_NII@Z) referenced in function "public: __cdec
l Project003::Project003(void)" (??0Project003@@QAA@XZ)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __cdecl hssSpeaker::close(void)" (__imp_?close@hssSpeaker@@QAAHXZ) referenced in function "public: virtual __cdecl Project003::~Project003(void)" (??1Project003@
@UAA@XZ)
ARMV4Rel/Project_003.exe : fatal error LNK1120: 9 unresolved externals
Error executing link.exe.
Creating browse info file...
P:\Windows CE Tools\wce420\POCKET PC 2003\HekkusSoundSystem\include\hssTypes.h(37): Could not find the file e32std.h.
P:\Windows CE Tools\wce420\POCKET PC 2003\PocketHAL074\PocketHAL\symbian\symbian_defs.h(11): Could not find the file w32std.h.

Project_003.exe - 10 error(s), 0 warning(s)


the path to the hekkus library on my HD:
P:\Windows CE Tools\wce420\POCKET PC 2003\HekkusSoundSystem\lib

I've added this path to Tools -> Options -> Directories (library files)

and I've added "P:\Windows CE Tools\wce420\POCKET PC 2003\HekkusSoundSystem" to Tools -> Options -> Directories (include files)

compilation of my main.cpp works, but linking fails.

How can I fix it ?
Project -> Settings... -> Link Tab, add in the Hekkus lib to the "Object/library modules" edit box.

Dan East
adding hss.lib didn't fix it :(

Code:
Deleting intermediate files and output files for project 'Project_003 - Win32 (WCE emulator) Debug'.
--------------------Configuration: Project_003 - Win32 (WCE emulator) Debug--------------------
Compiling...
main.cpp
game.cpp
GameBase.cpp
utility.cpp
Linking...
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall hssSpeaker::hssSpeaker(void)" (__imp_??0hssSpeaker@@QAE@XZ) referenced in function _$E2
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall hssSpeaker::~hssSpeaker(void)" (__imp_??1hssSpeaker@@UAE@XZ) referenced in function _$E3
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall hssMusic::hssMusic(void)" (__imp_??0hssMusic@@QAE@XZ) referenced in function _$E7
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall hssMusic::~hssMusic(void)" (__imp_??1hssMusic@@UAE@XZ) referenced in function _$E8
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall hssSpeaker::playMusic(class hssMusic *,unsigned int)" (__imp_?playMusic@hssSpeaker@@QAEHPAVhssMusic@@I@Z) referenced in function "public: __thiscall P
roject003::Project003(void)" (??0Project003@@QAE@XZ)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall hssMusic::loop(bool)" (__imp_?loop@hssMusic@@QAEX_N@Z) referenced in function "public: __thiscall Project003::Project003(void)" (??0Project003@@QAE@X
Z)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall hssMusic::load(void *,bool)" (__imp_?load@hssMusic@@QAEHPAX_N@Z) referenced in function "public: __thiscall Project003::Project003(void)" (??0Project0
03@@QAE@XZ)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall hssSpeaker::open(unsigned int,unsigned int,bool,unsigned int,unsigned int)" (__imp_?open@hssSpeaker@@QAEHII_NII@Z) referenced in function "public: __t
hiscall Project003::Project003(void)" (??0Project003@@QAE@XZ)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall hssSpeaker::close(void)" (__imp_?close@hssSpeaker@@QAEHXZ) referenced in function "public: virtual __thiscall Project003::~Project003(void)" (??1Proje
ct003@@UAE@XZ)
emulatorDbg/Project_003.exe : fatal error LNK1120: 9 unresolved externals
Error executing link.exe.
Creating browse info file...

Project_003.exe - 10 error(s), 0 warning(s)
doesn't the hekkus lib folder have sub directories? if so, add /arm or whatever...
that fixed it. I thought the compiler would have picked the folder depending on the build that's being done.