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

ARM9 defined(_WIN32) if statement help

I am working on SMTP using mbedTLS-2.16.1 to create a secure email protocol. I downloaded the mbedTLS-2.16.1 package from:
tls.mbed.org/.../mbedtls-2.16.1-and-2.7.10-released

Now I am trying to use the mbedTLS with my ARM9 Keil project but when I copy the mbedTLS files into my project directory and try to run it, I recieve errors regarding "#if defined(_WIN32)".

MbedTLS has multiple files which include if statements regarding the machine I am using, which is Windows 10 64bit, to determine which header files to include. If I remove the if statement trying to check for _WIN32, mbedTLS tries to include <windows.h> but can not find it.

Is there a setting I am supposed to use to tell my project that I am using Windows 10 64bit? Also, I cannot use the new Keil SDK packages because my project uses ARM9 which is not supported by Keil v5. Any advise would help, thanks.

  • You're building for the TARGET not the HOST system. Keil doesn't need to know or care that you're on WIN10

    Perhaps replace "#if defined(_WIN32)" with #ifdef _WIN32 or #if 0

  • So what errors, exactly, do you receive?

    It's hard to advise how to fix errors when we don't know what the errors are!

    "if statements regarding the machine I am using"

    As already noted, they are about the Target you are building for - not the Host you are building on!