Guys,

I am trying to compile the cryptopp v5.2.1 on Fedora Core 3. After I've compiled the libcryptopp.a, I was trying to use it in my little driving program. However it shows the following error messages (just part of it).

My questions are:
1) Actually, I've set an environment variable to the <cryptopp lib's path> , am I suppose to set any others?
2) In the <cryptopp lib's path>, it contains only libcryptopp.a file. Do I have to place other files?
As I've read online that, I can also create a libcryptopp.so. Will that help either?
3) Are these linkage errors? How should I fix it then?


error message:
===========
/usr/include/c++/3.3.2/bits/stl_alloc.h:232: undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libcryptopp.a(ecp.o)(.gnu.linkonce.t._ZNSt14__simple_allocISt6vectorIjSaIjEESt24__default_alloc_templateILb1ELi0EEE10deallocateEPS2_j+0x24): In function `std::__simple_alloc<std::vector<unsigned int, std::allocator<unsigned int> >, std::__default_alloc_template<true, 0> >::deallocate(std::vector<unsigned int, std::allocator<unsigned int> >*, unsigned int)':
/usr/include/c++/3.3.2/bits/stl_alloc.h:242: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libcryptopp.a(ecp.o)(.gnu.linkonce.t._ZNSt14__simple_allocISt6vectorIbSaIbEESt24__default_alloc_templateILb1ELi0EEE8allocateEj+0x29): In function `std::__simple_alloc<std::vector<bool, std::allocator<bool> >, std::__default_alloc_template<true, 0> >::allocate(unsigned int)':


*I will be able to provide more information though*

Best regards,

-Tikcireviva

Reply via email to