mingw 编译libtom

1 mingw install

 1.1 download from internet.

 1.2 config windows environment.

  C_INCLUDE_PATH

  CPLUS_INCLUDE_PATH

  LIBRARY_PATH

  PATH

 1.3 tes gcc -v

2 cd libtomcrypt

  make -f makefile.mingw

 cd libtommath

  make

 cd libtomcrypt

  make -f makefile.mingw test

3 Attention:

 3.1 #define USE_LTM 

    or: #error EXT_MATH_LIB is required to be defined

    in tomcrypt_test.h

 3.2 #define LTM_DESC in tomcrypt_customer.h

   3.3  tomcrypt_cfg.h little or big endian.

 

Compilation Done. Ok, Good Night.

  

  

posted @ 2017-03-09 23:29  JustRelax  阅读(281)  评论(0编辑  收藏  举报