Qwiic OLED Compile Error

I’m getting an error compiling an OLED sketch in the new Arduino App Lab for the UnoQ. How could this be resolved? I tried installing older versions of the library but that didn’t work.

/home/arduino/.arduino15/packages/zephyr/tools/arm-zephyr-eabi/0.16.8/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld: /home/arduino/ArduinoApps/test/.cache/sketch/libraries/SparkFun Qwiic OLED Arduino Library/qwiic_grbuffer.cpp.o: in function QwGrBufferDevice::initDrawFunctions()': /home/arduino/.arduino15/internal/SparkFun_Qwiic_OLED_Arduino_Library_1.0.11_90ab66587a174f36/SparkFun Qwiic OLED Arduino Library/src/qwiic_grbuffer.cpp:142: undefined reference to stderr’
/home/arduino/.arduino15/packages/zephyr/tools/arm-zephyr-eabi/0.16.8/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld: /home/arduino/.arduino15/internal/SparkFun_Qwiic_OLED_Arduino_Library_1.0.11_90ab66587a174f36/SparkFun Qwiic OLED Arduino Library/src/qwiic_grbuffer.cpp:142: undefined reference to `fputs’
collect2: error: ld returned 1 exit status
exit status 1

about to out myself:

have you copied and pasted that error into ChatGPT or similar? Its not perfect, but gives some good ideas asto where to investigate and a couple of things worth trying.

you can even point ChatGPT to the repo or your code for context.

I have been learning a LOT this way.

  • Tell ChatGPT the Issue (error message in this case)
  • Give ChatGPT the context of the issue. (link to the code base somehow)
  • ask for steps to resolve that can be implmented one at a time to make sure you don’t break anything.
  • check at each step along the way so you can internalise the learning and not just copy and paste solutions from ChatGPT.

I threw your error message into ChatGPT with no context and it seemed to find some good solutions.

It looks like our library isn’t currently compatible with Zephyr, you might be able to try and use the Adafruit SSD1306 library instead and see how that goes (nearly identical to our version)