link pstsdk problem on mac OS

Mar 4, 2013 at 3:52 AM
hi,all.
I am a new comer in using pstsdk project. And I plan to build a library on MAC to read .pst file to our existing project.I followed the README.txt file to build source code but it came to link problems.
The error message is:

Linking CXX executable pstsdk_test
Undefined symbols for architecture x86_64:
"_libiconv", referenced from:
  pstsdk::bytes_to_wstring(std::vector<unsigned char, std::allocator<unsigned char> > const&) in highlevel.cpp.o
  pstsdk::wstring_to_bytes(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&) in highlevel.cpp.o
  pstsdk::bytes_to_wstring(std::vector<unsigned char, std::allocator<unsigned char> > const&) in pstlevel.cpp.o
  pstsdk::bytes_to_wstring(std::vector<unsigned char, std::allocator<unsigned char> > const&) in utiltest.cpp.o
  pstsdk::wstring_to_bytes(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&) in utiltest.cpp.o
"_libiconv_close", referenced from:
  pstsdk::bytes_to_wstring(std::vector<unsigned char, std::allocator<unsigned char> > const&) in highlevel.cpp.o
  pstsdk::wstring_to_bytes(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&) in highlevel.cpp.o
  pstsdk::bytes_to_wstring(std::vector<unsigned char, std::allocator<unsigned char> > const&) in pstlevel.cpp.o
  pstsdk::bytes_to_wstring(std::vector<unsigned char, std::allocator<unsigned char> > const&) in utiltest.cpp.o
  pstsdk::wstring_to_bytes(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&) in utiltest.cpp.o
"_libiconv_open", referenced from:
  pstsdk::bytes_to_wstring(std::vector<unsigned char, std::allocator<unsigned char> > const&) in highlevel.cpp.o
  pstsdk::wstring_to_bytes(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&) in highlevel.cpp.o
  pstsdk::bytes_to_wstring(std::vector<unsigned char, std::allocator<unsigned char> > const&) in pstlevel.cpp.o
  pstsdk::bytes_to_wstring(std::vector<unsigned char, std::allocator<unsigned char> > const&) in utiltest.cpp.o
  pstsdk::wstring_to_bytes(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&) in utiltest.cpp.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [test/pstsdk_test] Error 1
make[1]: *** [test/CMakeFiles/pstsdk_test.dir/all] Error 2
make: *** [all] Error 2

The problem seems that linker can't find libiconv library but I definitely installed libiconv library by "sudo port install libiconv" command.

PS:I would like to use pstsdk library in 32bit app and how can i configure it?

thank you so much!
Mar 4, 2013 at 3:59 AM
And here is my installed items:
jimmyzywang-nb:pstsdk_0_3_0 emailtowzy$ port installed
The following ports are currently installed:
boost @1.52.0_1+no_single+no_static+python27 (active)
bzip2 @1.0.6_0 (active)
cctools @836_0+llvm32 (active)
cctools-headers @836_0 (active)
cloog @0.17.0_1 (active)
cmake @2.8.10_1 (active)
db46 @4.6.21_7 (active)
expat @2.1.0_0 (active)
gcc44 @4.4.7_6 (active)
gcc_select @0.1_8 (active)
gettext @0.18.2_2 (active)
glpk @4.47_0 (active)
gmp @5.0.5_0 (active)
icu @49.1.2_1 (active)
isl @0.10_1 (active)
ld64 @134.9_1+llvm32 (active)
libedit @20121213-3.0_0 (active)
libffi @3.0.11_1 (active)
libiconv @1.14_0 (active)
libidn @1.26_0 (active)
libmpc @1.0.1_0 (active)
libstdcxx @4.7.2_2 (active)
llvm-3.2 @3.2_0 (active)
llvm_select @0.2_0 (active)
mpfr @3.1.1-p2_0 (active)
ncurses @5.9_2 (active)
openssl @1.0.1e_1 (active)
ppl @1.0_0 (active)
python27 @2.7.3_1 (active)
python_select @0.3_2 (active)
sqlite3 @3.7.15.2_0 (active)
zlib @1.2.7_0 (active)
Jun 20, 2013 at 1:45 AM
same problem. ever get it fixed?