<div dir="ltr">Hi,<br><br>I am trying to static link libsword.lib in my MFC application. The .lib is compiled from sword-1.5.11.<br>I am using visual studio 2008. I got the following warning and error.<br><br>libsword.lib(regex.obj) : warning LNK4217: locally defined symbol _isxdigit imported in function _regex_compile<br>
1>libsword.lib(url.obj) : warning LNK4049: locally defined symbol _isxdigit imported<br>1>libsword.lib(regex.obj) : warning LNK4217: locally defined symbol _isupper imported in function _regex_compile<br>1>libsword.lib(regex.obj) : warning LNK4217: locally defined symbol _ispunct imported in function _regex_compile<br>
1>libsword.lib(regex.obj) : warning LNK4217: locally defined symbol _islower imported in function _regex_compile<br>1>libsword.lib(regex.obj) : warning LNK4217: locally defined symbol _isspace imported in function _regex_compile<br>
1>libsword.lib(regex.obj) : warning LNK4217: locally defined symbol _isprint imported in function _regex_compile<br>1>libsword.lib(regex.obj) : warning LNK4217: locally defined symbol _iscntrl imported in function _regex_compile<br>
1>libsword.lib(regex.obj) : warning LNK4217: locally defined symbol _isalnum imported in function _regex_compile<br>1>libsword.lib(regex.obj) : warning LNK4217: locally defined symbol _tolower imported in function _regcomp<br>
1>OLDNAMES.lib(close.obi) : warning LNK4049: locally defined symbol __close imported<br>1>OLDNAMES.lib(write.obi) : warning LNK4049: locally defined symbol __write imported<br>1>OLDNAMES.lib(read.obi) : warning LNK4049: locally defined symbol __read imported<br>
1>OLDNAMES.lib(stricmp.obi) : warning LNK4049: locally defined symbol __stricmp imported<br>1>libsword.lib(treekey.obj) : error LNK2001: unresolved external symbol __imp__strtok<br>1>libsword.lib(localemgr.obj) : error LNK2001: unresolved external symbol __imp__strtok<br>
1>libsword.lib(treekeyidx.obj) : error LNK2001: unresolved external symbol __imp__strtok<br>1>libsword.lib(swmgr.obj) : error LNK2019: unresolved external symbol __imp__strtok referenced in function "public: static void __cdecl sword::SWMgr::findConfig(char *,char * *,char * *,class std::list<class sword::SWBuf,class std::allocator<class sword::SWBuf> > *,class sword::SWConfig *)" (?findConfig@SWMgr@sword@@SAXPADPAPAD1PAV?$list@VSWBuf@sword@@V?$allocator@VSWBuf@sword@@@std@@@std@@PAVSWConfig@2@@Z)<br>
1>libsword.lib(swconfig.obj) : error LNK2001: unresolved external symbol __imp__strtok<br>1>libsword.lib(rawtext.obj) : error LNK2001: unresolved external symbol __imp__strtok<br>1>libsword.lib(rawtext4.obj) : error LNK2001: unresolved external symbol __imp__strtok<br>
1>libsword.lib(swbuf.obj) : error LNK2019: unresolved external symbol __imp__vsprintf referenced in function "public: void __cdecl sword::SWBuf::setFormatted(char const *,...)" (?setFormatted@SWBuf@sword@@QAAXPBDZZ)<br>
1>libsword.lib(swlog.obj) : error LNK2001: unresolved external symbol __imp__vsprintf<br>1>libsword.lib(swbuf.obj) : error LNK2019: unresolved external symbol __imp__vsnprintf referenced in function "public: void __cdecl sword::SWBuf::setFormatted(char const *,...)" (?setFormatted@SWBuf@sword@@QAAXPBDZZ)<br>
1>libsword.lib(unicodertf.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>1>libsword.lib(utf8html.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>1>libsword.lib(zld.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>
1>libsword.lib(greeklexattribs.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>1>libsword.lib(versekey.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>1>libsword.lib(treekeyidx.obj) : error LNK2019: unresolved external symbol __imp__sprintf referenced in function "public: void __thiscall sword::FileMgr::`default constructor closure'(void)" (??_FFileMgr@sword@@QAEXXZ)<br>
1>libsword.lib(thmlscripref.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>1>libsword.lib(rawfiles.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>1>libsword.lib(zverse.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>
1>libsword.lib(zstr.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>1>libsword.lib(osisstrongs.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>1>libsword.lib(thmlstrongs.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>
1>libsword.lib(thmlfootnotes.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>1>libsword.lib(thmlheadings.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>1>libsword.lib(gbfstrongs.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>
1>libsword.lib(gbffootnotes.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>1>libsword.lib(osisheadings.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>1>libsword.lib(osisfootnotes.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>
1>libsword.lib(rawgenbook.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>1>libsword.lib(rawstr.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>1>libsword.lib(rawld.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>
1>libsword.lib(rawld4.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>1>libsword.lib(rawverse.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>1>libsword.lib(rawverse4.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>
1>libsword.lib(rawstr4.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>1>libsword.lib(filemgr.obj) : error LNK2001: unresolved external symbol __imp__sprintf<br>1>libsword.lib(url.obj) : error LNK2001: unresolved external symbol __imp__strstr<br>
1>libsword.lib(thmlosis.obj) : error LNK2001: unresolved external symbol __imp__strstr<br>1>libsword.lib(osisrtf.obj) : error LNK2001: unresolved external symbol __imp__strstr<br>1>libsword.lib(gbfwebif.obj) : error LNK2001: unresolved external symbol __imp__strstr<br>
1>libsword.lib(osiswebif.obj) : error LNK2001: unresolved external symbol __imp__strstr<br>1>libsword.lib(gbfhtml.obj) : error LNK2001: unresolved external symbol __imp__strstr<br>1>libsword.lib(thmlhtmlhref.obj) : error LNK2001: unresolved external symbol __imp__strstr<br>
1>libsword.lib(gbfrtf.obj) : error LNK2001: unresolved external symbol __imp__strstr<br>1>libsword.lib(gbfosis.obj) : error LNK2001: unresolved external symbol __imp__strstr<br>1>libsword.lib(osisredletterwords.obj) : error LNK2001: unresolved external symbol __imp__strstr<br>
1>libsword.lib(thmlmorph.obj) : error LNK2001: unresolved external symbol __imp__strstr<br>1>libsword.lib(thmllemma.obj) : error LNK2001: unresolved external symbol __imp__strstr<br>1>libsword.lib(thmlhtml.obj) : error LNK2001: unresolved external symbol __imp__strstr<br>
1>libsword.lib(swmodule.obj) : error LNK2019: unresolved external symbol __imp__strstr referenced in function __catch$?search@SWModule@sword@@UAEAAVListKey@2@PBDHHPAVSWKey@2@PA_NP6AXDPAX@Z3@Z$0<br>1>libsword.lib(osisplain.obj) : error LNK2001: unresolved external symbol __imp__strstr<br>
1>libsword.lib(osisfootnotes.obj) : error LNK2001: unresolved external symbol __imp__strstr<br>1>libsword.lib(osismorph.obj) : error LNK2001: unresolved external symbol __imp__strstr<br>1>libsword.lib(zstr.obj) : error LNK2001: unresolved external symbol __imp__strncpy<br>
1>libsword.lib(regex.obj) : error LNK2001: unresolved external symbol __imp__strncpy<br>1>libsword.lib(rawstr4.obj) : error LNK2019: unresolved external symbol __imp__strncpy referenced in function "public: void __thiscall sword::RawStr4::readText(long,unsigned long *,char * *,class sword::SWBuf &)" (?readText@RawStr4@sword@@QAEXJPAKPAPADAAVSWBuf@2@@Z)<br>
1>libsword.lib(rawstr.obj) : error LNK2001: unresolved external symbol __imp__strncpy<br>1>libsword.lib(utilxml.obj) : error LNK2001: unresolved external symbol __imp__strncpy<br>1>libsword.lib(zverse.obj) : error LNK2001: unresolved external symbol __imp__strncpy<br>
1>libsword.lib(filemgr.obj) : error LNK2019: unresolved external symbol __imp___stat64i32 referenced in function _stat<br>1>libsword.lib(filemgr.obj) : error LNK2019: unresolved external symbol __imp__close referenced in function "private: virtual __thiscall sword::FileDesc::~FileDesc(void)" (??1FileDesc@sword@@EAE@XZ)<br>
1>OLDNAMES.lib(close.obi) : error LNK2001: unresolved external symbol __imp__close<br>1>libsword.lib(filemgr.obj) : error LNK2019: unresolved external symbol __imp__open referenced in function "private: int __thiscall sword::FileMgr::sysOpen(class sword::FileDesc *)" (?sysOpen@FileMgr@sword@@AAEHPAVFileDesc@2@@Z)<br>
1>OLDNAMES.lib(open.obi) : error LNK2001: unresolved external symbol __imp__open<br>1>libsword.lib(filemgr.obj) : error LNK2019: unresolved external symbol __imp__access referenced in function "private: int __thiscall sword::FileMgr::sysOpen(class sword::FileDesc *)" (?sysOpen@FileMgr@sword@@AAEHPAVFileDesc@2@@Z)<br>
1>OLDNAMES.lib(access.obi) : error LNK2001: unresolved external symbol __imp__access<br>1>libsword.lib(filemgr.obj) : error LNK2019: unresolved external symbol __imp__lseek referenced in function "private: int __thiscall sword::FileMgr::sysOpen(class sword::FileDesc *)" (?sysOpen@FileMgr@sword@@AAEHPAVFileDesc@2@@Z)<br>
1>OLDNAMES.lib(lseek.obi) : error LNK2001: unresolved external symbol __imp__lseek<br>1>libsword.lib(filemgr.obj) : error LNK2019: unresolved external symbol __imp__mkdir referenced in function "public: static int __cdecl sword::FileMgr::createParent(char const *)" (?createParent@FileMgr@sword@@SAHPBD@Z)<br>
1>OLDNAMES.lib(mkdir.obi) : error LNK2001: unresolved external symbol __imp__mkdir<br>1>libsword.lib(filemgr.obj) : error LNK2019: unresolved external symbol __imp__write referenced in function "public: static int __cdecl sword::FileMgr::copyFile(char const *,char const *)" (?copyFile@FileMgr@sword@@SAHPBD0@Z)<br>
1>OLDNAMES.lib(write.obi) : error LNK2001: unresolved external symbol __imp__write<br>1>libsword.lib(filemgr.obj) : error LNK2019: unresolved external symbol __imp__read referenced in function "public: static int __cdecl sword::FileMgr::copyFile(char const *,char const *)" (?copyFile@FileMgr@sword@@SAHPBD0@Z)<br>
1>OLDNAMES.lib(read.obi) : error LNK2001: unresolved external symbol __imp__read<br>1>libsword.lib(filemgr.obj) : error LNK2019: unresolved external symbol __imp__remove referenced in function "public: static int __cdecl sword::FileMgr::removeFile(char const *)" (?removeFile@FileMgr@sword@@SAHPBD@Z)<br>
1>libsword.lib(rawld.obj) : error LNK2019: unresolved external symbol __imp__toupper referenced in function "private: void __thiscall sword::RawLD::strongsPad(char *)" (?strongsPad@RawLD@sword@@AAEXPAD@Z)<br>
1>libsword.lib(rawld4.obj) : error LNK2001: unresolved external symbol __imp__toupper<br>1>libsword.lib(zld.obj) : error LNK2001: unresolved external symbol __imp__toupper<br>1>libsword.lib(url.obj) : error LNK2001: unresolved external symbol __imp__toupper<br>
1>libsword.lib(zipcomprs.obj) : error LNK2019: unresolved external symbol __imp__fprintf referenced in function "public: virtual void __thiscall sword::ZipCompress::Encode(void)" (?Encode@ZipCompress@sword@@UAEXXZ)<br>
1>libsword.lib(dirent.obj) : error LNK2019: unresolved external symbol __imp___findfirst64i32 referenced in function "struct DIR * __cdecl opendir(char const *)" (?opendir@@YAPAUDIR@@PBD@Z)<br>1>libsword.lib(dirent.obj) : error LNK2019: unresolved external symbol __imp___findclose referenced in function "int __cdecl closedir(struct DIR *)" (?closedir@@YAHPAUDIR@@@Z)<br>
1>libsword.lib(dirent.obj) : error LNK2019: unresolved external symbol __imp___findnext64i32 referenced in function "struct dirent * __cdecl readdir(struct DIR *)" (?readdir@@YAPAUdirent@@PAUDIR@@@Z)<br>1>libsword.lib(utilstr.obj) : error LNK2019: unresolved external symbol __imp__stricmp referenced in function "int __cdecl sword::stricmp(char const *,char const *)" (?stricmp@sword@@YAHPBD0@Z)<br>
1>OLDNAMES.lib(stricmp.obi) : error LNK2001: unresolved external symbol __imp__stricmp<br>1>libsword.lib(versekey.obj) : error LNK2019: unresolved external symbol __imp__sscanf referenced in function "protected: virtual char __thiscall sword::VerseKey::parse(bool)" (?parse@VerseKey@sword@@MAED_N@Z)<br>
1>OLDNAMES.lib(open.obi) : error LNK2001: unresolved external symbol __imp___open<br>1>OLDNAMES.lib(access.obi) : error LNK2001: unresolved external symbol __imp___access<br>1>OLDNAMES.lib(lseek.obi) : error LNK2001: unresolved external symbol __imp___lseek<br>
1>OLDNAMES.lib(mkdir.obi) : error LNK2001: unresolved external symbol __imp___mkdir<br><br><br>I really appreciate any help in this. <br><br>Regards<br>Hlun<br></div>