This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Wolfssl pthread.h is missing

Hi
I want to use wolfssl library (v3.6.9) on Keil (v5.17), but when I add wolfCrypt to project, I get this error:

C:\Program Files (x86)\Keil 5.17\ARM\PACK\wolfSSL\CyaSSL\3.6.9\wolfssl\wolfssl/wolfcrypt/wc_port.h(78): error:  #5: cannot open source input file "pthread.h": No such file or directory


I searched all directories for pthread.h, but it's not available! How can I use the WolfSSL for cryptography?

Parents
  • Standard step when having an error, is to take a bit closer look at the error.

    The header file in question does try to include pthread.h.

    But there are several interesting #define there - have you spent some time thinking about them.

    Like #SINGLE_THREADED?
    Like #WOLFSSL_CMSIS_RTOS?
    Like #WOLFSSL_MDK_ARM?

    And have you verified exactly what #defines your code gets compiled with?

    Are you running your project?
    Or a project supplied by Keil?
    Or a project supplied from WolfSSL?
    Or from some else source?

Reply
  • Standard step when having an error, is to take a bit closer look at the error.

    The header file in question does try to include pthread.h.

    But there are several interesting #define there - have you spent some time thinking about them.

    Like #SINGLE_THREADED?
    Like #WOLFSSL_CMSIS_RTOS?
    Like #WOLFSSL_MDK_ARM?

    And have you verified exactly what #defines your code gets compiled with?

    Are you running your project?
    Or a project supplied by Keil?
    Or a project supplied from WolfSSL?
    Or from some else source?

Children