| Summary | LNK2019 error in Orbacus build |
|---|---|
| Article Number | 18274 |
| Environment |
Orbacus 4.3.4 Windows Perl V5.12.0 or later is used in build |
| Question/Problem Description | LNK2019 error in Orbacus build link.exe /nologo /debug /subsystem:console /incremental:no /out:ThreadCreateTest.exe ThreadCreateTest.obj ..\\lib\\jtcd.lib ThreadCreateTest.obj : error LNK2019: unresolved external symbol "public: __thiscall JTCInitialize::~JTCInitialize(void)" (??1JTCInitialize@@QAE@XZ) referenced in function __catch$_main$0 ThreadCreateTest.obj : error LNK2019: unresolved external symbol "public: void __thiscall JTCThread::join(void)" (?join@JTCThread@@QAEXXZ) referenced in function _main ThreadCreateTest.obj : error LNK2019: unresolved external symbol "public: bool __thiscall JTCThread::isAlive(void)const " (?isAlive@JTCThread@@QBE_NXZ) referenced in function _main ThreadCreateTest.obj : error LNK2019: unresolved external symbol "public: void __thiscall JTCThread::start(void)" (?start@JTCThread@@QAEXXZ) referenced in function _main ThreadCreateTest.obj : error LNK2019: unresolved external symbol "public: char const * __thiscall JTCThread::getName(void)const " (?getName@JTCThread@@QBEPBDXZ) referenced in function _main ThreadCreateTest.obj : error LNK2019: unresolved external symbol "public: static class JTCThread * __cdecl JTCThread::currentThread(void)" (?currentThread@JTCThread@@SAPAV1@XZ) referenced in function _main ThreadCreateTest.obj : error LNK2019: unresolved external symbol "public: __thiscall JTCInitialize::JTCInitialize(void)" (??0JTCInitialize@@QAE@XZ) referenced in function _main ThreadCreateTest.obj : error LNK2019: unresolved external symbol "public: __thiscall JTCThread::JTCThread(char const *)" (??0JTCThread@@QAE@PBD@Z) referenced in function "public: __thiscall TCTSimpleThread::TCTSimpleThread(char const *)" (??0TCTSimpleThread@@QAE@PBD@Z) ThreadCreateTest.obj : error LNK2019: unresolved external symbol "public: static void __cdecl JTCThread::sleep(long,int)" (?sleep@JTCThread@@SAXJH@Z) referenced in function "public: virtual void __thiscall TCTSimpleThread::run(void)" (?run@TCTSimpleThread@@UAEXXZ) ThreadCreateTest.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall JTCThread::~JTCThread(void)" (??1JTCThread@@UAE@XZ) referenced in function "public: virtual __thiscall TCTSimpleThread::~TCTSimpleThread(void)" (??1TCTSimpleThread@@UAE@XZ) ThreadCreateTest.obj : error LNK2019: unresolved external symbol "public: __thiscall JTCThread::JTCThread(class JTCHandleT,char const *)" (??0JTCThread@@QAE@V?$JTCHandleT@VJTCRunnable@@@@PBD@Z) referenced in function "public: __thiscall EmptyThread::EmptyThread(void)" (??0EmptyThread@@QAE@XZ) ThreadCreateTest.exe : fatal error LNK1120: 11 unresolved external ... The DEF files whose extensions are ".def" does not include any external functions and lists only the following two lines. The DEF files are created in build and located in 'src' folder. LIBRARY *** EXPORTS |
| Clarifying Information | |
| Error Message | |
| Defect/Enhancement Number | |
| Cause | |
| Resolution | 1. Modify the line 31 in config\\makedef.pl: add "@_ =" before split as follows. @_ = split; 2. rebuild |
| Workaround | |
| Notes | |
| Attachment |
| Created date: | 06 September 2011 |
|---|---|
| Last Modified: | 13 February 2013 |
| Last Published: | 23 June 2012 |
| First Published date: | 10 September 2011 |
#KnowledgeDocs
#Orbacus