Skip to content

Cannot build example/piu/wifi-config for esp #125

Description

@gusdgg

When I try to build the Wifi-Config example for esp8266 in windows, I got the following error message:

libxslib.a(xsNumber.o): In function fxNewNumberInstance': xsNumber.c:83: undefined reference to fxBigIntToNumber'
libxslib.a(xsNumber.o): In function fx_Number': xsNumber.c:220: undefined reference to fxBigIntToNumber'
collect2: error: ld returned 1 exit status

It's seems that the windows build is missing a required file. I've fix the issue editing the "%MODDABLE%\tools\mcconfig\nmake.esp.mk" make file and adding the required "xsBigInt.o" reference in the XS_OBJ section:

XS_OBJ = \
$(LIB_DIR)\xsAll.o \
$(LIB_DIR)\xsAPI.o \
$(LIB_DIR)\xsArguments.o \
$(LIB_DIR)\xsArray.o \
$(LIB_DIR)\xsAtomics.o
$(LIB_DIR)\xsBigInt.o \
$(LIB_DIR)\xsBoolean.o \

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions