RNDIS IP address not coming

Hi,

Thanks for replying.
Let me explain more. The rndis freertos code with C code base working fine with ST controller and ip address is good like 192.168.2.1. I can access rndis webpages too.

When I change the project main file from C to C++ in stm ide without any changes to actual code, the ip address is not coming or going to 169.254.

All i did is added #ifdef __cplusplus extern “c” { #endif where ever necessart in header files. Code compiled and no issues or crashes after several testing. Only thing bothering is the ip.

IF you have any idea on this let me know, it will help me great, and i can try.

Thanks