windows - Libiconv C++ Builder -
i'm trying integrate zbar library application built in c++ builder (xe6). however, zbar library depends on iconv not available in windows, managed static library of iconv windows : "libiconvstatic.lib".
then tried import project way (i'm not sure first line necessary though) :
#define using_static_libiconv #include <iconv.h> #pragma comment (lib, "libiconvstatic.lib")
the functions iconv called in file iconv_open(), iconv() , iconv_close().
i through compilation error linker :
[ilink64 error] fatal : invalid object file '/72'
i tried both 32bits , 64bits versions of libiconvstatic.lib .
do know why .lib not recognized , how solve problem? or other way make use of iconv in windows (and c++ builder) ?
thank you.
as mentioned in comments: should build library c++builder directly, object file format different between msvc , c++builder.
alternatively, build dynamic version of library msvc, , implib libiconv.lib libiconv.dll
generate c++builder compatible library dll.
Comments
Post a Comment