[Botan-devel] Building for MIPS

Jack Lloyd lloyd at randombit.net
Mon Oct 22 23:00:52 EDT 2007

On Tue, Oct 23, 2007 at 02:30:07AM -0000, Meenal Verma wrote:

> HiSorry for sending so many queries but I am totally new to this
> library and cross-compilation issues have got me really confused. I
> tried a simple program from the examples (dsa_sign)It gives the
> following error

> test.cpp: In function `int main(int, char**)\':test.cpp:43:
> `LibraryInitializer\' undeclared (first use this
> function)test.cpp:43: (Each undeclared identifier is reported only
> once for each   function it appears in.)test.cpp:43: parse
> error before `;\' tokenThe command I am using for compiling
> is

> /usr/local/bin/mipseb-linux-g++ -I. -I/usr/local/mipseb-linux/include/c++/3.2 -I/usr/local/mipseb-linux/include/c++/3.2/backward -I/usr/local/mipseb-linux/include/c++/3.2/mips-linux-gnu -static -Wa,-non_shared -mips2 -mno-abicalls -mabi=32 -mtune=r6000 -msplit-addresses -Wl,--script=/usr/local/mipseb-linux/lib/ldscripts/mint.x -mips2 -Wa,-non_shared test.cpp -L. -llibbotan -o verify

If you haven't installed this Botan somewhere via make install or
similiar, then when you include headers via -I you want to use
-I<wherever_botan_is>/build/include - this includes a directory that
contains headers to all of the botan headers that are included in that
particular configuration of the library.

Also rather than -llibbotan you probably want just -lbotan - typically
at least the toolchain adds a lib prefix by default.

Can you send a copy of test.cpp to the list?


More information about the botan-devel mailing list