B4R Question B4R compile problems

Discussion in 'B4R Questions' started by rodmcm, Sep 16, 2018.

  1. rodmcm

    rodmcm Member Licensed User

    Hi
    I am compiling onto an ESP32 and have the following error log.. Can anyone shed light on this please
    I have uploaded the program I am using which was on this forum

    B4R Version: 2.20
    Parsing code. (0.00s)
    Compiling code. (0.01s)
    Building project (0.03s)
    Compiling & deploying Ino project (ESP32 Dev Module - COM3) Error
    Loading configuration...
    Initializing packages...
    Preparing boards...
    Verifying...
    In file included from c:\users\mcmahon engineering\documents\arduino\hardware\espressif\esp32\tools\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\5.2.0\bits\stl_algobase.h:59:0,
    from c:\users\mcmahon engineering\documents\arduino\hardware\espressif\esp32\tools\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\5.2.0\memory:62,
    from C:\Users\McMahon Engineering\Documents\Arduino\hardware\espressif\esp32\libraries\WiFi\src/WiFiClient.h:28,
    from C:\Users\McMahon Engineering\Documents\Arduino\hardware\espressif\esp32\libraries\WiFi\src/WiFi.h:37,
    from C:\RODSFI~1\RODSPL~1\RODTOO~1\B4A\FORUMR~1\B4RSER~1\Objects\bin\sketch\rESP8266WiFi.h:4,
    from C:\RODSFI~1\RODSPL~1\RODTOO~1\B4A\FORUMR~1\B4RSER~1\Objects\bin\sketch\B4RDefines.h:26,
    from C:\RODSFI~1\RODSPL~1\RODTOO~1\B4A\FORUMR~1\B4RSER~1\Objects\bin\sketch\AsyncStreams.cpp:1:
    c:\users\mcmahon engineering\documents\arduino\hardware\espressif\esp32\tools\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\5.2.0\new: In function 'void* operator new(std::size_t, void*)':
    c:\users\mcmahon engineering\documents\arduino\hardware\espressif\esp32\tools\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\5.2.0\new:129:51: error: declaration of 'void* operator new(std::size_t, void*) noexcept' has a different exception specifier
    inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
    ^
    In file included from C:\RODSFI~1\RODSPL~1\RODTOO~1\B4A\FORUMR~1\B4RSER~1\Objects\bin\sketch\B4RDefines.h:24:0,
    from C:\RODSFI~1\RODSPL~1\RODTOO~1\B4A\FORUMR~1\B4RSER~1\Objects\bin\sketch\AsyncStreams.cpp:1:
    rCore.h:18: error: from previous declaration 'void* operator new(size_t, void*)'
    extern void *operator new( size_t size, void *ptr );
    ^
    exit status 1
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    Add this line:
    Code:
    #DefineExtra: #define SKIP_B4RNEW
     
  3. rodmcm

    rodmcm Member Licensed User

    That worked!... Thanks
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice