EthernetIP not declared
Posted: Wed Mar 09, 2022 3:35 pm
I installed v3.3.7, and create an empty project. When I try to build the project, there are errors show that EthernetIP was not declared in tcp.cpp
Code: Select all
#include <predef.h>
#include <stdio.h>
#include <nbrtos.h>
#include <http.h>
#include <init.h>
#include <netinterface.h>
const char * AppName="project1";
void EnableOSStackProtector();
void UserMain(void * pd)
{
EnableOSStackProtector(); // TODO: Uncomment #define NBRTOS_STACKOVERFLOW and/or NBRTOS_UNDEROVERFLOWin predef.h, rebuild libraries
init();
GetInterfaceBlock()->discovery_server = "discover.netburner.com";
WaitForActiveNetwork(TICKS_PER_SECOND * 5); // Wait up to 5 seconds for active network activity
StartHttp();
iprintf("Application %s started\n",AppName );
while (1)
{
OSTimeDly(TICKS_PER_SECOND);
}
}