Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 5 months ago.
"No Network Configuration" error in new program
In the online compiler:
- Create a new program using the Empty Program template.
- Import the latest mbed-os library.
- Add file main.cpp and add code:
int main() { while(1); return 1; }
Compile produces error
#error directive [NOT_SUPPORTED] No network configuration found for this target. from file extras/mbed-os.lib/TEST_APPS/device/socket_app/cmd_ifconfig.cpp
1 Answer
6 years, 5 months ago.
Hi Peter,
In the online compiler, please make sure you have selected a target board for your application in the top right hand corner of the screen, as seen in the screenshot below:
Also, make sure you include the Mbed header file at the top of your main.cpp
file:
#include "mbed.h" int main() { while(1); return 1; }
Then click "Compile".
Please let me know if you have any questions!
- Jenny, team Mbed
If this solved your question, please make sure to click the "Thanks" link below!