Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) esp8266 board -library build errors in random.h -GLIBCXX_DEBUG_ASSERT was not defined in this scope (Read 3911 times)
PK Green
Junior Member
**
Offline


Posts: 11
Joined: Jun 29th, 2019
esp8266 board -library build errors in random.h -GLIBCXX_DEBUG_ASSERT was not defined in this scope
Jun 29th, 2019 at 6:12am
Print Post  
Appears to impact any sketch compiled with any esp8266 board. Including simple adafruit_gfx example from library.

--------------- version -------------------

vMicro 1905.29

------------- Error part of verbose output ----------------

 
Building libraries ...

Using library SPI version 1.0 in folder 2.5.2/libraries/SPI"
c\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ tools/sdk/include" tools/sdk/lwip2/include" tools/sdk/libc/xtensa-lx106-elf/include" /core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DNONOSDK221=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10809 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD=\"ESP8266_GENERIC\" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 libraries\SPI" -I"C:\Users\pkg\OneDrive\Arduino\libraries\Adafruit_ILI9341" -I"C:\Users\pkg\OneDrive\Arduino\libraries\Adafruit_GFX_Library" -I"C:\Program Files (x86)\Arduino\libraries" -I"C:\Program Files (x86)\Atmel\Studio\7.0\Extensions\xx1dvarl.dku\Micro Platforms\default\debuggers" libraries" -I"C:\Users\pkg\OneDrive\Arduino\libraries" cores\esp8266" variants\generic" braries\SPI\SPI.cpp" -o PI\SPI.cpp.o"
 
random:50: In file included from
stl_algo.h:65: from
algorithm:62: from
Arduino.h:257: from
SPI.h:24: from
SPI.cpp:22: from
random.h: In constructor std::bernoulli_distribution::param_type::param_type(double)
 
random.h: 3586:54: error: '_GLIBCXX_DEBUG_ASSERT' was not declared in this scope
   _GLIBCXX_DEBUG_ASSERT((_M_p >= 0.0) && (_M_p <= 1.0))
random.h: In constructor std::geometric_distribution<_IntType>::param_type::param_type(double)
 
random.h: 4026:54: error: there are no arguments to '_GLIBCXX_DEBUG_ASSERT' that depend on a template parameter, so a declaration of '_GLIBCXX_DEBUG_ASSERT' must be available [-fpermissive]
   _GLIBCXX_DEBUG_ASSERT((_M_p > 0.0) && (_M_p < 1.0))
random.h:4026: note  (if you use -fpermissive, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
random.h: In constructor std::poisson_distribution<_IntType>::param_type::param_type(double)
 
random.h: 4448:39: error: there are no arguments to '_GLIBCXX_DEBUG_ASSERT' that depend on a template parameter, so a declaration of '_GLIBCXX_DEBUG_ASSERT' must be available [-fpermissive]
   _GLIBCXX_DEBUG_ASSERT(_M_mean > 0.0)
 
algorithm:61: In file included from
Arduino.h:257: from
SPI.h:24: from
SPI.cpp:22: from
stl_algobase.h: In instantiation of void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = long unsigned int*; _Tp = int]
Error compiling libraries
stl_bvector.h:396: required from here
Build failed for project 'mock_ili9341'
 
stl_algobase.h: 726:53: error: '__glibcxx_requires_valid_range' was not declared in this scope
   __glibcxx_requires_valid_range(__first, __last)

-------------------- complete Verbose output ------------

emailed due to attachment failing
« Last Edit: Jun 29th, 2019 at 6:19am by PK Green »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: esp8266 board -library build errors in random.h -GLIBCXX_DEBUG_ASSERT was not defined in this scope
Reply #1 - Jun 29th, 2019 at 1:48pm
Print Post  
Does the lib build for the esp8266 using the arduino ide?
  
Back to top
WWW  
IP Logged
 
PK Green
Junior Member
**
Offline


Posts: 11
Joined: Jun 29th, 2019
Re: esp8266 board -library build errors in random.h -GLIBCXX_DEBUG_ASSERT was not defined in this scope
Reply #2 - Jun 29th, 2019 at 3:44pm
Print Post  
Yes compiles fine with Arduino IDE. Two more details. 
1- updated to very latest vmicro version. Still fails.

2 - Using Atmel studio 7.0 . Am in process of installing visual studio community 2019 to see if it makes a difference
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: esp8266 board -library build errors in random.h -GLIBCXX_DEBUG_ASSERT was not defined in this scope
Reply #3 - Jun 29th, 2019 at 4:03pm
Print Post  
The issue appears to be that "vMicro>Compiler>Deep Search for Libraries" is switched off.



  
Back to top
WWW  
IP Logged
 
PK Green
Junior Member
**
Offline


Posts: 11
Joined: Jun 29th, 2019
Re: esp8266 board -library build errors in random.h -GLIBCXX_DEBUG_ASSERT was not defined in this scope
Reply #4 - Jun 29th, 2019 at 4:33pm
Print Post  
The error is not affected by deep search option or debug/ release build switches
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: esp8266 board -library build errors in random.h -GLIBCXX_DEBUG_ASSERT was not defined in this scope
Reply #5 - Jun 29th, 2019 at 5:08pm
Print Post  
Oh sorry, I have same libs as you have installed with following code in a new project with a single .ino. Can you please post output from building this code.

Thanks

Code (C++)
Select All
#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"

// For the Adafruit shield, these are the default.
#define TFT_DC 9
#define TFT_CS 10

// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
// If using the breakout, change pins as desired
//Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST, TFT_MISO);

void setup() {
  Serial.begin(9600);
  Serial.println("ILI9341 Test!");

  tft.begin();

  // read diagnostics (optional but can help debug problems)
  uint8_t x = tft.readcommand8(ILI9341_RDMODE);
  Serial.print("Display Power Mode: 0x"); Serial.println(x, HEX);
  x = tft.readcommand8(ILI9341_RDMADCTL);
  Serial.print("MADCTL Mode: 0x"); Serial.println(x, HEX);
  x = tft.readcommand8(ILI9341_RDPIXFMT);
  Serial.print("Pixel Format: 0x"); Serial.println(x, HEX);
  x = tft.readcommand8(ILI9341_RDIMGFMT);
  Serial.print("Image Format: 0x"); Serial.println(x, HEX);
  x = tft.readcommand8(ILI9341_RDSELFDIAG);
  Serial.print("Self Diagnostic: 0x"); Serial.println(x, HEX);

  Serial.println(F("Benchmark                Time (microseconds)"));
  delay(10);
  Serial.print(F("Screen fill              "));
  Serial.println(testFillScreen());
  delay(500);

  Serial.print(F("Text                     "));
  Serial.println(testText());
  delay(3000);

  Serial.print(F("Lines                    "));
  Serial.println(testLines(ILI9341_CYAN));
  delay(500);

  Serial.print(F("Horiz/Vert Lines         "));
  Serial.println(testFastLines(ILI9341_RED, ILI9341_BLUE));
  delay(500);

  Serial.print(F("Rectangles (outline)     "));
  Serial.println(testRects(ILI9341_GREEN));
  delay(500);

  Serial.print(F("Rectangles (filled)      "));
  Serial.println(testFilledRects(ILI9341_YELLOW, ILI9341_MAGENTA));
  delay(500);

  Serial.print(F("Circles (filled)         "));
  Serial.println(testFilledCircles(10, ILI9341_MAGENTA));

  Serial.print(F("Circles (outline)        "));
  Serial.println(testCircles(10, ILI9341_WHITE));
  delay(500);

  Serial.print(F("Triangles (outline)      "));
  Serial.println(testTriangles());
  delay(500);

  Serial.print(F("Triangles (filled)       "));
  Serial.println(testFilledTriangles());
  delay(500);

  Serial.print(F("Rounded rects (outline)  "));
  Serial.println(testRoundRects());
  delay(500);

  Serial.print(F("Rounded rects (filled)   "));
  Serial.println(testFilledRoundRects());
  delay(500);

  Serial.println(F("Done!"));

}


void loop(void) {
  for(uint8_t rotation=0; rotation<4; rotation++) {
    tft.setRotation(rotation);
    testText();
    delay(1000);
  }
}

unsigned long testFillScreen() {
  unsigned long start = micros();
  tft.fillScreen(ILI9341_BLACK);
  yield();
  tft.fillScreen(ILI9341_RED);
  yield();
  tft.fillScreen(ILI9341_GREEN);
  yield();
  tft.fillScreen(ILI9341_BLUE);
  yield();
  tft.fillScreen(ILI9341_BLACK);
  yield();
  return micros() - start;
}

unsigned long testText() {
  tft.fillScreen(ILI9341_BLACK);
  unsigned long start = micros();
  tft.setCursor(0, 0);
  tft.setTextColor(ILI9341_WHITE);  tft.setTextSize(1);
  tft.println("Hello World!");
  tft.setTextColor(ILI9341_YELLOW); tft.setTextSize(2);
  tft.println(1234.56);
  tft.setTextColor(ILI9341_RED);    tft.setTextSize(3);
  tft.println(0xDEADBEEF, HEX);
  tft.println();
  tft.setTextColor(ILI9341_GREEN);
  tft.setTextSize(5);
  tft.println("Groop");
  tft.setTextSize(2);
  tft.println("I implore thee,");
  tft.setTextSize(1);
  tft.println("my foonting turlingdromes.");
  tft.println("And hooptiously drangle me");
  tft.println("with crinkly bindlewurdles,");
  tft.println("Or I will rend thee");
  tft.println("in the gobberwarts");
  tft.println("with my blurglecruncheon,");
  tft.println("see if I don't!");
  return micros() - start;
}

unsigned long testLines(uint16_t color) {
  unsigned long start, t;
  int           x1, y1, x2, y2,
                w = tft.width(),
                h = tft.height();

  tft.fillScreen(ILI9341_BLACK);
  yield();

  x1 = y1 = 0;
  y2    = h - 1;
  start = micros();
  for(x2=0; x2<w; x2+=6) tft.drawLine(x1, y1, x2, y2, color);
  x2    = w - 1;
  for(y2=0; y2<h; y2+=6) tft.drawLine(x1, y1, x2, y2, color);
  t     = micros() - start; // fillScreen doesn't count against timing

  yield();
  tft.fillScreen(ILI9341_BLACK);
  yield();

  x1    = w - 1;
  y1    = 0;
  y2    = h - 1;
  start = micros();
  for(x2=0; x2<w; x2+=6) tft.drawLine(x1, y1, x2, y2, color);
  x2    = 0;
  for(y2=0; y2<h; y2+=6) tft.drawLine(x1, y1, x2, y2, color);
  t    += micros() - start;

  yield();
  tft.fillScreen(ILI9341_BLACK);
  yield();

  x1    = 0;
  y1    = h - 1;
  y2    = 0;
  start = micros();
  for(x2=0; x2<w; x2+=6) tft.drawLine(x1, y1, x2, y2, color);
  x2    = w - 1;
  for(y2=0; y2<h; y2+=6) tft.drawLine(x1, y1, x2, y2, color);
  t    += micros() - start;

  yield();
  tft.fillScreen(ILI9341_BLACK);
  yield();

  x1    = w - 1;
  y1    = h - 1;
  y2    = 0;
  start = micros();
  for(x2=0; x2<w; x2+=6) tft.drawLine(x1, y1, x2, y2, color);
  x2    = 0;
  for(y2=0; y2<h; y2+=6) tft.drawLine(x1, y1, x2, y2, color);

  yield();
  return micros() - start;
}

unsigned long testFastLines(uint16_t color1, uint16_t color2) {
  unsigned long start;
  int           x, y, w = tft.width(), h = tft.height();

  tft.fillScreen(ILI9341_BLACK);
  start = micros();
  for(y=0; y<h; y+=5) tft.drawFastHLine(0, y, w, color1);
  for(x=0; x<w; x+=5) tft.drawFastVLine(x, 0, h, color2);

  return micros() - start;
}

unsigned long testRects(uint16_t color) {
  unsigned long start;
  int           n, i, i2,
                cx = tft.width()  / 2,
                cy = tft.height() / 2;

  tft.fillScreen(ILI9341_BLACK);
  n     = min(tft.width(), tft.height());
  start = micros();
  for(i=2; i<n; i+=6) {
    i2 = i / 2;
    tft.drawRect(cx-i2, cy-i2, i, i, color);
  }

  return micros() - start;
}

unsigned long testFilledRects(uint16_t color1, uint16_t color2) {
  unsigned long start, t = 0;
  int           n, i, i2,
                cx = tft.width()  / 2 - 1,
                cy = tft.height() / 2 - 1;

  tft.fillScreen(ILI9341_BLACK);
  n = min(tft.width(), tft.height());
  for(i=n; i>0; i-=6) {
    i2    = i / 2;
    start = micros();
    tft.fillRect(cx-i2, cy-i2, i, i, color1);
    t    += micros() - start;
    // Outlines are not included in timing results
    tft.drawRect(cx-i2, cy-i2, i, i, color2);
    yield();
  }

  return t;
}

unsigned long testFilledCircles(uint8_t radius, uint16_t color) {
  unsigned long start;
  int x, y, w = tft.width(), h = tft.height(), r2 = radius * 2;

  tft.fillScreen(ILI9341_BLACK);
  start = micros();
  for(x=radius; x<w; x+=r2) {
    for(y=radius; y<h; y+=r2) {
      tft.fillCircle(x, y, radius, color);
    }
  }

  return micros() - start;
}

unsigned long testCircles(uint8_t radius, uint16_t color) {
  unsigned long start;
  int           x, y, r2 = radius * 2,
                w = tft.width()  + radius,
                h = tft.height() + radius;

  // Screen is not cleared for this one -- this is
  // intentional and does not affect the reported time.
  start = micros();
  for(x=0; x<w; x+=r2) {
    for(y=0; y<h; y+=r2) {
      tft.drawCircle(x, y, radius, color);
    }
  }

  return micros() - start;
}

unsigned long testTriangles() {
  unsigned long start;
  int           n, i, cx = tft.width()  / 2 - 1,
                      cy = tft.height() / 2 - 1;

  tft.fillScreen(ILI9341_BLACK);
  n     = min(cx, cy);
  start = micros();
  for(i=0; i<n; i+=5) {
    tft.drawTriangle(
      cx    , cy - i, // peak
      cx - i, cy + i, // bottom left
      cx + i, cy + i, // bottom right
      tft.color565(i, i, i));
  }

  return micros() - start;
}

unsigned long testFilledTriangles() {
  unsigned long start, t = 0;
  int           i, cx = tft.width()  / 2 - 1,
                   cy = tft.height() / 2 - 1;

  tft.fillScreen(ILI9341_BLACK);
  start = micros();
  for(i=min(cx,cy); i>10; i-=5) {
    start = micros();
    tft.fillTriangle(cx, cy - i, cx - i, cy + i, cx + i, cy + i,
      tft.color565(0, i*10, i*10));
    t += micros() - start;
    tft.drawTriangle(cx, cy - i, cx - i, cy + i, cx + i, cy + i,
      tft.color565(i*10, i*10, 0));
    yield();
  }

  return t;
}

unsigned long testRoundRects() {
  unsigned long start;
  int           w, i, i2,
                cx = tft.width()  / 2 - 1,
                cy = tft.height() / 2 - 1;

  tft.fillScreen(ILI9341_BLACK);
  w     = min(tft.width(), tft.height());
  start = micros();
  for(i=0; i<w; i+=6) {
    i2 = i / 2;
    tft.drawRoundRect(cx-i2, cy-i2, i, i, i/8, tft.color565(i, 0, 0));
  }

  return micros() - start;
}

unsigned long testFilledRoundRects() {
  unsigned long start;
  int           i, i2,
                cx = tft.width()  / 2 - 1,
                cy = tft.height() / 2 - 1;

  tft.fillScreen(ILI9341_BLACK);
  start = micros();
  for(i=min(tft.width(), tft.height()); i>20; i-=6) {
    i2 = i / 2;
    tft.fillRoundRect(cx-i2, cy-i2, i, i, i/8, tft.color565(0, i, 0));
    yield();
  }

  return micros() - start;
}

 

« Last Edit: Jun 29th, 2019 at 5:08pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
PK Green
Junior Member
**
Offline


Posts: 11
Joined: Jun 29th, 2019
Re: esp8266 board -library build errors in random.h -GLIBCXX_DEBUG_ASSERT was not defined in this scope
Reply #6 - Jun 29th, 2019 at 5:46pm
Print Post  
attached
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: esp8266 board -library build errors in random.h -GLIBCXX_DEBUG_ASSERT was not defined in this scope
Reply #7 - Jun 29th, 2019 at 6:08pm
Print Post  
Thanks it's a strange one. The compile of each file is independent to everything else. It's failing to compile the SPI.cpp.

Below is the spi compile line, please switch on "File>Preferences>Compile Verbose" in the arduino ide so that we see the same output and post here. Thanks


If we pasted the compiler for the SPI.cpp into cmd prompt we should see the same especially if we first changed to the build folder with cd se


Code
Select All
c\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ tools/sdk/include" tools/sdk/lwip2/include" tools/sdk/libc/xtensa-lx106-elf/include" lease/core" -c -Wall -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DNONOSDK221=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10809 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD=\"ESP8266_GENERIC\" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 cores\esp8266" variants\generic" libraries\SPI" -I"C:\Users\pkg\OneDrive\Arduino\libraries\Adafruit_GFX_Library" -I"C:\Users\pkg\OneDrive\Arduino\libraries\Adafruit_ILI9341" -I"C:\Program Files (x86)\Arduino\libraries" -I"C:\Program Files (x86)\Atmel\Studio\7.0\Extensions\gdrd3t1k.uac\Micro Platforms\default\debuggers" -I"C:\Users\pkg\OneDrive\Arduino\libraries" libraries" braries\SPI\SPI.cpp" -o ase\SPI\SPI.cpp.o"
 

« Last Edit: Jun 29th, 2019 at 6:09pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
PK Green
Junior Member
**
Offline


Posts: 11
Joined: Jun 29th, 2019
Re: esp8266 board -library build errors in random.h -GLIBCXX_DEBUG_ASSERT was not defined in this scope
Reply #8 - Jun 29th, 2019 at 6:37pm
Print Post  
attached
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
PK Green
Junior Member
**
Offline


Posts: 11
Joined: Jun 29th, 2019
Re: esp8266 board -library build errors in random.h -GLIBCXX_DEBUG_ASSERT was not defined in this scope
Reply #9 - Jun 29th, 2019 at 6:45pm
Print Post  
I did the command line experiment and do indeed get same errors
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: esp8266 board -library build errors in random.h -GLIBCXX_DEBUG_ASSERT was not defined in this scope
Reply #10 - Jun 29th, 2019 at 6:51pm
Print Post  
Thanks can you please confirm that there are no stray .h files in C:\Users\pkg\OneDrive\Arduino\libraries?


  
Back to top
WWW  
IP Logged
 
PK Green
Junior Member
**
Offline


Posts: 11
Joined: Jun 29th, 2019
Re: esp8266 board -library build errors in random.h -GLIBCXX_DEBUG_ASSERT was not defined in this scope
Reply #11 - Jun 29th, 2019 at 7:11pm
Print Post  
If by stray .h files you mean .h files in the top library diretory, there are none.
  
Back to top
 
IP Logged
 
PK Green
Junior Member
**
Offline


Posts: 11
Joined: Jun 29th, 2019
Re: esp8266 board -library build errors in random.h -GLIBCXX_DEBUG_ASSERT was not defined in this scope
Reply #12 - Jun 29th, 2019 at 7:30pm
Print Post  
Is there a way to force flush of the library caching in Arduino IDE? BUild is using cached version, so can't see equivalent gcc command line.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: esp8266 board -library build errors in random.h -GLIBCXX_DEBUG_ASSERT was not defined in this scope
Reply #13 - Jun 29th, 2019 at 7:37pm
Print Post  
Build>Clean Solution (or Project) clears the build cache but the cmd line shows this isn't a cache issue. 

Is the libraries folder below the arduino ide empty other than folders?
  
Back to top
WWW  
IP Logged
 
PK Green
Junior Member
**
Offline


Posts: 11
Joined: Jun 29th, 2019
Re: esp8266 board -library build errors in random.h -GLIBCXX_DEBUG_ASSERT was not defined in this scope
Reply #14 - Jun 29th, 2019 at 7:44pm
Print Post  
The libray directory has one file "readme.txt", one directory shortcut ", and otherwise all directories

The compile commandline being used by Arduino IDE is:

06-elf-gcc\\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ 66\\2.5.2/tools/sdk/include" 66\\2.5.2/tools/sdk/lwip2/include" 66\\2.5.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\pkg\\AppData\\Local\\Temp\\arduino_build_226749/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DNONOSDK221=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10809 -DARDUINO_ESP8266_WEMOS_D1R1 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1R1\"" -DFLASHMODE_DIO -DESP8266 66\\2.5.2\\cores\\esp8266" 66\\2.5.2\\variants\\d1" 66\\2.5.2\\libraries\\SPI" "-IC:\\Users\\pkg\\OneDrive\\Arduino\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\pkg\\OneDrive\\Arduino\\libraries\\Adafruit_ILI9341" \\2.5.2\\libraries\\SPI\\SPI.cpp" -o .cpp.o"

and can be run in command window without errors (same directory)
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: esp8266 board -library build errors in random.h -GLIBCXX_DEBUG_ASSERT was not defined in this scope
Reply #15 - Jun 29th, 2019 at 7:48pm
Print Post  
That's a different board but expect it will still work with generic 8266

If you use the same board in both IDE's then it's just a matter of comparing the command line. Visual Micro will add the extra lib folder but everything else should be the same. You can try visual micro without the extra "\libraries" paths but you already confirmed two are empty but worth a try. Can't really see how it will change anything or why is works for others.
  
Back to top
WWW  
IP Logged
 
PK Green
Junior Member
**
Offline


Posts: 11
Joined: Jun 29th, 2019
Re: esp8266 board -library build errors in random.h -GLIBCXX_DEBUG_ASSERT was not defined in this scope
Reply #16 - Jun 29th, 2019 at 9:22pm
Print Post  
If I move all but the two graphics libraries out of the arduino/libraries directory, the sketch compiles. If I figure out which of the many libraries was causing the problem, I will report back.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: esp8266 board -library build errors in random.h -GLIBCXX_DEBUG_ASSERT was not defined in this scope
Reply #17 - Jun 29th, 2019 at 9:34pm
Print Post  
Useful thanks. We will make the additional lib paths (which are not required) optional and default to OFF.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint