Author Topic: Ardunio Project Help  (Read 12024 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7323
    • My Best Post
Re: Ardunio Project Help
« Reply #15 on: June 25, 2018, 03:45:24 am »
Remove the option or use a compiler that supports that option. Did you setup the compiler tool chain correctly?
It's the standard Mingw-w64 6.2.0 with POSIX Threads. Ithink POSIXS...
It better be set up right, otherwise something is wrong and my other projects are some sort of miraculous outcome.
Any suggestions for this "other" compiler?

So, you are no longer building code you wish to run on an Ardunio board?
And, the current code is to run on Windows instead?

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline eldevstudios

  • Multiple posting newcomer
  • *
  • Posts: 10
  • We program in code
Re: Ardunio Project Help
« Reply #16 on: June 25, 2018, 06:35:12 am »
So, you are no longer building code you wish to run on an Ardunio board?
No, that wasn't said. I don't have a single project I am working on. If the compiler was the issue, I wouldn't be able to build code for my other projects. The toolchains are setup right. If they weren't, no project could build.
I am still trying to build the simple test code to see if it will even build for the Arduino.
We program in code here
Follow my instagram @eldevstudios

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: Ardunio Project Help
« Reply #17 on: June 25, 2018, 09:19:43 am »
To build code for arduino you need avr-gcc. Is it selected as a compiler for the uno target?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline headkase

  • Almost regular
  • **
  • Posts: 159
Re: Ardunio Project Help
« Reply #18 on: June 25, 2018, 06:01:25 pm »
Any suggestions for this "other" compiler?

MinGW-Builds has the latest compilers:

https://sourceforge.net/projects/mingw-w64/files/

In Toolchains targeting Win64 or Win32 -> Personal Builds -> mingw-builds -> GCC version (7.3.0 is more stable than the latest 8.1.0) -> Threading Model (posix is good) -> Exception handling (SEH is best but limited to 64-bit compilers, if you're 32-bit then Dwarf) -> Download the latest revision of the compiler.

Then see:

http://wiki.codeblocks.org/index.php/MinGW_installation#Code::Blocks_Configuration

For integrating the MinGW-Builds compiler into Code::Blocks.  Unarchive the compiler toolchain wherever you would like, then start from the given link to configure Code::Blocks to use it.

For cross-compiling to your Ardunio project I'm not completely sure this toolchain will do that but it's worth a shot and by being the most recent versions there should be support for more targets.

Offline eldevstudios

  • Multiple posting newcomer
  • *
  • Posts: 10
  • We program in code
Re: Ardunio Project Help
« Reply #19 on: June 25, 2018, 06:58:11 pm »
For cross-compiling to your Ardunio project I'm not completely sure this toolchain will do that but it's worth a shot and by being the most recent versions there should be support for more targets.
I hadn't asked how to set up Mingw-w64, it works fine for me. My question was what compiler should I use for AVR-GCC.

To build code for arduino you need avr-gcc. Is it selected as a compiler for the uno target?
I couldn't find an AVR-GCC compiler for some weird reason. I have Mingw-w64 as default most of the time.
We program in code here
Follow my instagram @eldevstudios

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: Ardunio Project Help
« Reply #20 on: June 25, 2018, 08:47:58 pm »
I think this is the official source: http://www.microchip.com/mplab/avr-support/avr-and-arm-toolchains-(c-compilers).
Also it seems the arduino installation includes a supported avr-gcc compiler.
So if you tell cb to look somewhere inside Arduino's folders it could use this compiler.
Search for bin/c++.exe or something similar.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3263
Re: Ardunio Project Help
« Reply #21 on: June 26, 2018, 12:57:34 am »
The avg-gcc is also shiped with the arduino ide: arduino-1.8.5\hardware\tools\avr\bin

Offline deka552

  • Single posting newcomer
  • *
  • Posts: 2
Re: Ardunio Project Help
« Reply #22 on: October 15, 2022, 07:41:56 pm »
Hello!
Any info is appreciated!
Thank you and have a nice day.
C::B 20.03
Arduino IDE 1.8.13
Win 10

#include <Arduino.h>
void setup(){
   // initialize the digital pin as an output.
   // Pin 13 has an LED connected on most Arduino boards:
   pinMode(13, OUTPUT);     
} void loop() {
   digitalWrite(13, HIGH);   // set the LED on
   delay(1000);              // wait for a second
   digitalWrite(13, LOW);    // set the LED off
   delay(1000);              // wait for a second
}

-------------- Build: Arduino Leonardo in 1 (compiler: GNU GCC Compiler for AVR)---------------

avr-g++.exe -DF_CPU=16000000L -DARDUINO=103 -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -Wall -Os -mmcu=atmega32u4 -D__AVR_ATmega32U4__ -DUSB_VID=0x2341 -DUSB_PID=0x8036 -I. -I"C:\Program Files\CodeBlocks/arduino\libraries\EEPROM" -I"C:\Program Files\CodeBlocks/arduino\libraries\Ethernet" -I"C:\Program Files\CodeBlocks/arduino\libraries\Firmata" -I"C:\Program Files\CodeBlocks/arduino\libraries\Flash" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4884" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4Bit_mod" -I"C:\Program Files\CodeBlocks/arduino\libraries\LiquidCrystal" -I"C:\Program Files\CodeBlocks/arduino\libraries\OBD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD\utility" -I"C:\Program Files\CodeBlocks/arduino\libraries\Servo" -I"C:\Program Files\CodeBlocks/arduino\libraries\SevenSegment" -I"C:\Program Files\CodeBlocks/arduino\libraries\SoftwareSerial" -I"C:\Program Files\CodeBlocks/arduino\libraries\SPI" -I"C:\Program Files\CodeBlocks/arduino\libraries\Stepper" -I"C:\Program Files\CodeBlocks/arduino\libraries\TinyGPS" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire\utility" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src" -IC:\WinAVR\avr\include -c cores\HID.cpp -o .objs\cores\HID.o
avr-g++.exe -DF_CPU=16000000L -DARDUINO=103 -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -Wall -Os -mmcu=atmega32u4 -D__AVR_ATmega32U4__ -DUSB_VID=0x2341 -DUSB_PID=0x8036 -I. -I"C:\Program Files\CodeBlocks/arduino\libraries\EEPROM" -I"C:\Program Files\CodeBlocks/arduino\libraries\Ethernet" -I"C:\Program Files\CodeBlocks/arduino\libraries\Firmata" -I"C:\Program Files\CodeBlocks/arduino\libraries\Flash" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4884" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4Bit_mod" -I"C:\Program Files\CodeBlocks/arduino\libraries\LiquidCrystal" -I"C:\Program Files\CodeBlocks/arduino\libraries\OBD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD\utility" -I"C:\Program Files\CodeBlocks/arduino\libraries\Servo" -I"C:\Program Files\CodeBlocks/arduino\libraries\SevenSegment" -I"C:\Program Files\CodeBlocks/arduino\libraries\SoftwareSerial" -I"C:\Program Files\CodeBlocks/arduino\libraries\SPI" -I"C:\Program Files\CodeBlocks/arduino\libraries\Stepper" -I"C:\Program Files\CodeBlocks/arduino\libraries\TinyGPS" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire\utility" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src" -IC:\WinAVR\avr\include -c cores\new.cpp -o .objs\cores\new.o
avr-g++.exe -DF_CPU=16000000L -DARDUINO=103 -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -Wall -Os -mmcu=atmega32u4 -D__AVR_ATmega32U4__ -DUSB_VID=0x2341 -DUSB_PID=0x8036 -I. -I"C:\Program Files\CodeBlocks/arduino\libraries\EEPROM" -I"C:\Program Files\CodeBlocks/arduino\libraries\Ethernet" -I"C:\Program Files\CodeBlocks/arduino\libraries\Firmata" -I"C:\Program Files\CodeBlocks/arduino\libraries\Flash" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4884" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4Bit_mod" -I"C:\Program Files\CodeBlocks/arduino\libraries\LiquidCrystal" -I"C:\Program Files\CodeBlocks/arduino\libraries\OBD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD\utility" -I"C:\Program Files\CodeBlocks/arduino\libraries\Servo" -I"C:\Program Files\CodeBlocks/arduino\libraries\SevenSegment" -I"C:\Program Files\CodeBlocks/arduino\libraries\SoftwareSerial" -I"C:\Program Files\CodeBlocks/arduino\libraries\SPI" -I"C:\Program Files\CodeBlocks/arduino\libraries\Stepper" -I"C:\Program Files\CodeBlocks/arduino\libraries\TinyGPS" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire\utility" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src" -IC:\WinAVR\avr\include -c cores\USBCore.cpp -o .objs\cores\USBCore.o
avr-g++.exe -DF_CPU=16000000L -DARDUINO=103 -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -Wall -Os -mmcu=atmega32u4 -D__AVR_ATmega32U4__ -DUSB_VID=0x2341 -DUSB_PID=0x8036 -I. -I"C:\Program Files\CodeBlocks/arduino\libraries\EEPROM" -I"C:\Program Files\CodeBlocks/arduino\libraries\Ethernet" -I"C:\Program Files\CodeBlocks/arduino\libraries\Firmata" -I"C:\Program Files\CodeBlocks/arduino\libraries\Flash" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4884" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4Bit_mod" -I"C:\Program Files\CodeBlocks/arduino\libraries\LiquidCrystal" -I"C:\Program Files\CodeBlocks/arduino\libraries\OBD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD\utility" -I"C:\Program Files\CodeBlocks/arduino\libraries\Servo" -I"C:\Program Files\CodeBlocks/arduino\libraries\SevenSegment" -I"C:\Program Files\CodeBlocks/arduino\libraries\SoftwareSerial" -I"C:\Program Files\CodeBlocks/arduino\libraries\SPI" -I"C:\Program Files\CodeBlocks/arduino\libraries\Stepper" -I"C:\Program Files\CodeBlocks/arduino\libraries\TinyGPS" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire\utility" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src" -IC:\WinAVR\avr\include -c cores\WString.cpp -o .objs\cores\WString.o
avr-g++.exe -DF_CPU=16000000L -DARDUINO=103 -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -Wall -Os -mmcu=atmega32u4 -D__AVR_ATmega32U4__ -DUSB_VID=0x2341 -DUSB_PID=0x8036 -I. -I"C:\Program Files\CodeBlocks/arduino\libraries\EEPROM" -I"C:\Program Files\CodeBlocks/arduino\libraries\Ethernet" -I"C:\Program Files\CodeBlocks/arduino\libraries\Firmata" -I"C:\Program Files\CodeBlocks/arduino\libraries\Flash" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4884" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4Bit_mod" -I"C:\Program Files\CodeBlocks/arduino\libraries\LiquidCrystal" -I"C:\Program Files\CodeBlocks/arduino\libraries\OBD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD\utility" -I"C:\Program Files\CodeBlocks/arduino\libraries\Servo" -I"C:\Program Files\CodeBlocks/arduino\libraries\SevenSegment" -I"C:\Program Files\CodeBlocks/arduino\libraries\SoftwareSerial" -I"C:\Program Files\CodeBlocks/arduino\libraries\SPI" -I"C:\Program Files\CodeBlocks/arduino\libraries\Stepper" -I"C:\Program Files\CodeBlocks/arduino\libraries\TinyGPS" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire\utility" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src" -IC:\WinAVR\avr\include -c libraries\libraries.cpp -o .objs\libraries\libraries.o
avr-g++.exe -DF_CPU=16000000L -DARDUINO=103 -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -Wall -Os -mmcu=atmega32u4 -D__AVR_ATmega32U4__ -DUSB_VID=0x2341 -DUSB_PID=0x8036 -I. -I"C:\Program Files\CodeBlocks/arduino\libraries\EEPROM" -I"C:\Program Files\CodeBlocks/arduino\libraries\Ethernet" -I"C:\Program Files\CodeBlocks/arduino\libraries\Firmata" -I"C:\Program Files\CodeBlocks/arduino\libraries\Flash" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4884" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4Bit_mod" -I"C:\Program Files\CodeBlocks/arduino\libraries\LiquidCrystal" -I"C:\Program Files\CodeBlocks/arduino\libraries\OBD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD\utility" -I"C:\Program Files\CodeBlocks/arduino\libraries\Servo" -I"C:\Program Files\CodeBlocks/arduino\libraries\SevenSegment" -I"C:\Program Files\CodeBlocks/arduino\libraries\SoftwareSerial" -I"C:\Program Files\CodeBlocks/arduino\libraries\SPI" -I"C:\Program Files\CodeBlocks/arduino\libraries\Stepper" -I"C:\Program Files\CodeBlocks/arduino\libraries\TinyGPS" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire\utility" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src" -IC:\WinAVR\avr\include -c sketch.cpp -o .objs\sketch.o
avr-g++.exe -LC:\WinAVR\avr\lib -o bin\Release\1.elf .objs\cores\CDC.o .objs\cores\HardwareSerial.o .objs\cores\HID.o .objs\cores\IPAddress.o .objs\cores\main.o .objs\cores\new.o .objs\cores\Print.o .objs\cores\Stream.o .objs\cores\Tone.o .objs\cores\USBCore.o .objs\cores\WInterrupts.o .objs\cores\wiring.o .objs\cores\wiring_analog.o .objs\cores\wiring_digital.o .objs\cores\wiring_pulse.o .objs\cores\wiring_shift.o .objs\cores\WMath.o .objs\cores\WString.o .objs\libraries\libraries.o .objs\sketch.o  -Wl,--gc-sections -s -mmcu=atmega32u4 
In file included from cores\new.cpp:1:
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/new.cpp:29: error: expected initializer before 'noexcept'
Process terminated with status 1 (0 minute(s), 0 second(s))
 
In file included from ..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src/HID.h:24,
                 from ..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src/HID.cpp:19,
                 from cores\HID.cpp:3:
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/PluggableUSB.h:47: error: ISO C++ forbids initialization of member 'next'
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/PluggableUSB.h:47: error: making 'next' static
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/PluggableUSB.h:47: error: invalid in-class initialization of static data member of non-integral type 'PluggableUSBModule*'
In file included from ..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src/HID.cpp:19,
                 from cores\HID.cpp:3:
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src/HID.h:84: error: ISO C++ forbids initialization of member 'next'
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src/HID.h:84: error: making 'next' static
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src/HID.h:84: error: invalid in-class initialization of static data member of non-integral type 'HIDSubDescriptor*'
In file included from cores\HID.cpp:3:
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src/HID.cpp: In member function 'virtual int HID_::getDescriptor(USBSetup&)':
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src/HID.cpp:51: error: 'class HIDSubDescriptor' has no member named 'next'
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src/HID.cpp: In member function 'void HID_::AppendDescriptor(HIDSubDescriptor*)':
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src/HID.cpp:81: error: 'class HIDSubDescriptor' has no member named 'next'
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src/HID.cpp:82: error: 'class HIDSubDescriptor' has no member named 'next'
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src/HID.cpp:84: error: 'class HIDSubDescriptor' has no member named 'next'
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src/HID.cpp: In member function 'int HID_::SendReport(uint8_t, const void*, int)':
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src/HID.cpp:91: error: ISO C++ forbids declaration of 'ret' with no type
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src/HID.cpp:93: error: ISO C++ forbids declaration of 'ret2' with no type
Process terminated with status 1 (0 minute(s), 0 second(s))
 
In file included from ..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/USBCore.cpp:21,
                 from cores\USBCore.cpp:1:
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/PluggableUSB.h:47: error: ISO C++ forbids initialization of member 'next'
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/PluggableUSB.h:47: error: making 'next' static
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/PluggableUSB.h:47: error: invalid in-class initialization of static data member of non-integral type 'PluggableUSBModule*'
In file included from cores\USBCore.cpp:1:
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/USBCore.cpp:49: warning: only initialized variables can be placed into program memory area
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/USBCore.cpp:66: warning: only initialized variables can be placed into program memory area
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/USBCore.cpp: In function 'int USB_RecvControl(void*, int)':
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/USBCore.cpp:446: error: ISO C++ forbids declaration of 'length' with no type
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/USBCore.cpp:451: error: ISO C++ forbids declaration of 'recvLength' with no type
In file included from cores\USBCore.cpp:3:
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/PluggableUSB.cpp: In member function 'int PluggableUSB_::getInterface(uint8_t*)':
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/PluggableUSB.cpp:32: error: 'class PluggableUSBModule' has no member named 'next'
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/PluggableUSB.cpp: In member function 'int PluggableUSB_::getDescriptor(USBSetup&)':
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/PluggableUSB.cpp:44: error: 'class PluggableUSBModule' has no member named 'next'
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/PluggableUSB.cpp: In member function 'void PluggableUSB_::getShortName(char*)':
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/PluggableUSB.cpp:56: error: 'class PluggableUSBModule' has no member named 'next'
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/PluggableUSB.cpp: In member function 'bool PluggableUSB_::setup(USBSetup&)':
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/PluggableUSB.cpp:65: error: 'class PluggableUSBModule' has no member named 'next'
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/PluggableUSB.cpp: In member function 'bool PluggableUSB_::plug(PluggableUSBModule*)':
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/PluggableUSB.cpp:83: error: 'class PluggableUSBModule' has no member named 'next'
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/PluggableUSB.cpp:84: error: 'class PluggableUSBModule' has no member named 'next'
..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/PluggableUSB.cpp:86: error: 'class PluggableUSBModule' has no member named 'next'
Process terminated with status 1 (0 minute(s), 0 second(s))
 
Process terminated with status 0 (0 minute(s), 0 second(s))
25 error(s), 2 warning(s) (0 minute(s), 0 second(s))
 

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3263
Re: Ardunio Project Help
« Reply #23 on: October 15, 2022, 08:25:57 pm »
You probably have to tell the compiler to use c++11
In project->Build options->select your project on the left->compiler flags->Check the "have gcc follow the 2011 ISO C++ language standard

Offline deka552

  • Single posting newcomer
  • *
  • Posts: 2
Re: Ardunio Project Help
« Reply #24 on: October 15, 2022, 09:56:14 pm »
Thanks, it's much better now

gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project)

-------------- Build: Arduino Leonardo in 2 (compiler: GNU GCC Compiler for AVR)---------------

avr-g++.exe -mmcu=atmega32 -Wall -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DF_CPU=16000000L -DARDUINO=103 -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -Os -std=c11 -mmcu=atmega32u4 -D__AVR_ATmega32U4__ -DUSB_VID=0x2341 -DUSB_PID=0x803C -I. -I"C:\Program Files\CodeBlocks/arduino\libraries\EEPROM" -I"C:\Program Files\CodeBlocks/arduino\libraries\Ethernet" -I"C:\Program Files\CodeBlocks/arduino\libraries\Firmata" -I"C:\Program Files\CodeBlocks/arduino\libraries\Flash" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4884" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4Bit_mod" -I"C:\Program Files\CodeBlocks/arduino\libraries\LiquidCrystal" -I"C:\Program Files\CodeBlocks/arduino\libraries\OBD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD\utility" -I"C:\Program Files\CodeBlocks/arduino\libraries\Servo" -I"C:\Program Files\CodeBlocks/arduino\libraries\SevenSegment" -I"C:\Program Files\CodeBlocks/arduino\libraries\SoftwareSerial" -I"C:\Program Files\CodeBlocks/arduino\libraries\SPI" -I"C:\Program Files\CodeBlocks/arduino\libraries\Stepper" -I"C:\Program Files\CodeBlocks/arduino\libraries\TinyGPS" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire\utility" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo" -IC:\WinAVR\avr\include -c cores\HID.cpp -o .objs\cores\HID.o
avr-g++.exe -mmcu=atmega32 -Wall -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DF_CPU=16000000L -DARDUINO=103 -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -Os -std=c11 -mmcu=atmega32u4 -D__AVR_ATmega32U4__ -DUSB_VID=0x2341 -DUSB_PID=0x803C -I. -I"C:\Program Files\CodeBlocks/arduino\libraries\EEPROM" -I"C:\Program Files\CodeBlocks/arduino\libraries\Ethernet" -I"C:\Program Files\CodeBlocks/arduino\libraries\Firmata" -I"C:\Program Files\CodeBlocks/arduino\libraries\Flash" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4884" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4Bit_mod" -I"C:\Program Files\CodeBlocks/arduino\libraries\LiquidCrystal" -I"C:\Program Files\CodeBlocks/arduino\libraries\OBD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD\utility" -I"C:\Program Files\CodeBlocks/arduino\libraries\Servo" -I"C:\Program Files\CodeBlocks/arduino\libraries\SevenSegment" -I"C:\Program Files\CodeBlocks/arduino\libraries\SoftwareSerial" -I"C:\Program Files\CodeBlocks/arduino\libraries\SPI" -I"C:\Program Files\CodeBlocks/arduino\libraries\Stepper" -I"C:\Program Files\CodeBlocks/arduino\libraries\TinyGPS" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire\utility" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo" -IC:\WinAVR\avr\include -c cores\new.cpp -o .objs\cores\new.o
avr-g++.exe -mmcu=atmega32 -Wall -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DF_CPU=16000000L -DARDUINO=103 -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -Os -std=c11 -mmcu=atmega32u4 -D__AVR_ATmega32U4__ -DUSB_VID=0x2341 -DUSB_PID=0x803C -I. -I"C:\Program Files\CodeBlocks/arduino\libraries\EEPROM" -I"C:\Program Files\CodeBlocks/arduino\libraries\Ethernet" -I"C:\Program Files\CodeBlocks/arduino\libraries\Firmata" -I"C:\Program Files\CodeBlocks/arduino\libraries\Flash" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4884" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4Bit_mod" -I"C:\Program Files\CodeBlocks/arduino\libraries\LiquidCrystal" -I"C:\Program Files\CodeBlocks/arduino\libraries\OBD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD\utility" -I"C:\Program Files\CodeBlocks/arduino\libraries\Servo" -I"C:\Program Files\CodeBlocks/arduino\libraries\SevenSegment" -I"C:\Program Files\CodeBlocks/arduino\libraries\SoftwareSerial" -I"C:\Program Files\CodeBlocks/arduino\libraries\SPI" -I"C:\Program Files\CodeBlocks/arduino\libraries\Stepper" -I"C:\Program Files\CodeBlocks/arduino\libraries\TinyGPS" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire\utility" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo" -IC:\WinAVR\avr\include -c cores\USBCore.cpp -o .objs\cores\USBCore.o
avr-gcc.exe -mmcu=atmega32 -Wall -std=c11 -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DF_CPU=16000000L -DARDUINO=103 -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -Os -std=c11 -mmcu=atmega32u4 -D__AVR_ATmega32U4__ -DUSB_VID=0x2341 -DUSB_PID=0x803C -I. -I"C:\Program Files\CodeBlocks/arduino\libraries\EEPROM" -I"C:\Program Files\CodeBlocks/arduino\libraries\Ethernet" -I"C:\Program Files\CodeBlocks/arduino\libraries\Firmata" -I"C:\Program Files\CodeBlocks/arduino\libraries\Flash" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4884" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4Bit_mod" -I"C:\Program Files\CodeBlocks/arduino\libraries\LiquidCrystal" -I"C:\Program Files\CodeBlocks/arduino\libraries\OBD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD\utility" -I"C:\Program Files\CodeBlocks/arduino\libraries\Servo" -I"C:\Program Files\CodeBlocks/arduino\libraries\SevenSegment" -I"C:\Program Files\CodeBlocks/arduino\libraries\SoftwareSerial" -I"C:\Program Files\CodeBlocks/arduino\libraries\SPI" -I"C:\Program Files\CodeBlocks/arduino\libraries\Stepper" -I"C:\Program Files\CodeBlocks/arduino\libraries\TinyGPS" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire\utility" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo" -IC:\WinAVR\avr\include -c cores\WInterrupts.c -o .objs\cores\WInterrupts.o
avr-gcc.exe -mmcu=atmega32 -Wall -std=c11 -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DF_CPU=16000000L -DARDUINO=103 -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -Os -std=c11 -mmcu=atmega32u4 -D__AVR_ATmega32U4__ -DUSB_VID=0x2341 -DUSB_PID=0x803C -I. -I"C:\Program Files\CodeBlocks/arduino\libraries\EEPROM" -I"C:\Program Files\CodeBlocks/arduino\libraries\Ethernet" -I"C:\Program Files\CodeBlocks/arduino\libraries\Firmata" -I"C:\Program Files\CodeBlocks/arduino\libraries\Flash" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4884" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4Bit_mod" -I"C:\Program Files\CodeBlocks/arduino\libraries\LiquidCrystal" -I"C:\Program Files\CodeBlocks/arduino\libraries\OBD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD\utility" -I"C:\Program Files\CodeBlocks/arduino\libraries\Servo" -I"C:\Program Files\CodeBlocks/arduino\libraries\SevenSegment" -I"C:\Program Files\CodeBlocks/arduino\libraries\SoftwareSerial" -I"C:\Program Files\CodeBlocks/arduino\libraries\SPI" -I"C:\Program Files\CodeBlocks/arduino\libraries\Stepper" -I"C:\Program Files\CodeBlocks/arduino\libraries\TinyGPS" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire\utility" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo" -IC:\WinAVR\avr\include -c cores\wiring.c -o .objs\cores\wiring.o
avr-gcc.exe -mmcu=atmega32 -Wall -std=c11 -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DF_CPU=16000000L -DARDUINO=103 -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -Os -std=c11 -mmcu=atmega32u4 -D__AVR_ATmega32U4__ -DUSB_VID=0x2341 -DUSB_PID=0x803C -I. -I"C:\Program Files\CodeBlocks/arduino\libraries\EEPROM" -I"C:\Program Files\CodeBlocks/arduino\libraries\Ethernet" -I"C:\Program Files\CodeBlocks/arduino\libraries\Firmata" -I"C:\Program Files\CodeBlocks/arduino\libraries\Flash" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4884" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4Bit_mod" -I"C:\Program Files\CodeBlocks/arduino\libraries\LiquidCrystal" -I"C:\Program Files\CodeBlocks/arduino\libraries\OBD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD\utility" -I"C:\Program Files\CodeBlocks/arduino\libraries\Servo" -I"C:\Program Files\CodeBlocks/arduino\libraries\SevenSegment" -I"C:\Program Files\CodeBlocks/arduino\libraries\SoftwareSerial" -I"C:\Program Files\CodeBlocks/arduino\libraries\SPI" -I"C:\Program Files\CodeBlocks/arduino\libraries\Stepper" -I"C:\Program Files\CodeBlocks/arduino\libraries\TinyGPS" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire\utility" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo" -IC:\WinAVR\avr\include -c cores\wiring_analog.c -o .objs\cores\wiring_analog.o
avr-gcc.exe -mmcu=atmega32 -Wall -std=c11 -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DF_CPU=16000000L -DARDUINO=103 -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -Os -std=c11 -mmcu=atmega32u4 -D__AVR_ATmega32U4__ -DUSB_VID=0x2341 -DUSB_PID=0x803C -I. -I"C:\Program Files\CodeBlocks/arduino\libraries\EEPROM" -I"C:\Program Files\CodeBlocks/arduino\libraries\Ethernet" -I"C:\Program Files\CodeBlocks/arduino\libraries\Firmata" -I"C:\Program Files\CodeBlocks/arduino\libraries\Flash" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4884" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4Bit_mod" -I"C:\Program Files\CodeBlocks/arduino\libraries\LiquidCrystal" -I"C:\Program Files\CodeBlocks/arduino\libraries\OBD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD\utility" -I"C:\Program Files\CodeBlocks/arduino\libraries\Servo" -I"C:\Program Files\CodeBlocks/arduino\libraries\SevenSegment" -I"C:\Program Files\CodeBlocks/arduino\libraries\SoftwareSerial" -I"C:\Program Files\CodeBlocks/arduino\libraries\SPI" -I"C:\Program Files\CodeBlocks/arduino\libraries\Stepper" -I"C:\Program Files\CodeBlocks/arduino\libraries\TinyGPS" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire\utility" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo" -IC:\WinAVR\avr\include -c cores\wiring_digital.c -o .objs\cores\wiring_digital.o
avr-gcc.exe -mmcu=atmega32 -Wall -std=c11 -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DF_CPU=16000000L -DARDUINO=103 -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -Os -std=c11 -mmcu=atmega32u4 -D__AVR_ATmega32U4__ -DUSB_VID=0x2341 -DUSB_PID=0x803C -I. -I"C:\Program Files\CodeBlocks/arduino\libraries\EEPROM" -I"C:\Program Files\CodeBlocks/arduino\libraries\Ethernet" -I"C:\Program Files\CodeBlocks/arduino\libraries\Firmata" -I"C:\Program Files\CodeBlocks/arduino\libraries\Flash" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4884" -I"C:\Program Files\CodeBlocks/arduino\libraries\LCD4Bit_mod" -I"C:\Program Files\CodeBlocks/arduino\libraries\LiquidCrystal" -I"C:\Program Files\CodeBlocks/arduino\libraries\OBD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD" -I"C:\Program Files\CodeBlocks/arduino\libraries\SD\utility" -I"C:\Program Files\CodeBlocks/arduino\libraries\Servo" -I"C:\Program Files\CodeBlocks/arduino\libraries\SevenSegment" -I"C:\Program Files\CodeBlocks/arduino\libraries\SoftwareSerial" -I"C:\Program Files\CodeBlocks/arduino\libraries\SPI" -I"C:\Program Files\CodeBlocks/arduino\libraries\Stepper" -I"C:\Program Files\CodeBlocks/arduino\libraries\TinyGPS" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire" -I"C:\Program Files\CodeBlocks/arduino\libraries\Wire\utility" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\HID\src" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"..\..\..\..\..\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo" -IC:\WinAVR\avr\include -c cores\wiring_pulse.c -o .objs\cores\wiring_pulse.o
cc1plus.exe: error: unrecognized command line option "-std=c11"
Process terminated with status 1 (0 minute(s), 0 second(s))
 
cc1plus.exe: error: unrecognized command line option "-std=c11"
Process terminated with status 1 (0 minute(s), 0 second(s))
 
cc1plus.exe: error: unrecognized command line option "-std=c11"
Process terminated with status 1 (0 minute(s), 0 second(s))
 
cc1plus.exe: error: unrecognized command line option "-std=c11"
cc1plus.exe: error: unrecognized command line option "-std=c11"
Process terminated with status 1 (0 minute(s), 0 second(s))
 
cc1plus.exe: error: unrecognized command line option "-std=c11"
cc1plus.exe: error: unrecognized command line option "-std=c11"
Process terminated with status 1 (0 minute(s), 0 second(s))
 
cc1plus.exe: error: unrecognized command line option "-std=c11"
cc1plus.exe: error: unrecognized command line option "-std=c11"
Process terminated with status 1 (0 minute(s), 0 second(s))
 
cc1plus.exe: error: unrecognized command line option "-std=c11"
cc1plus.exe: error: unrecognized command line option "-std=c11"
Process terminated with status 1 (0 minute(s), 0 second(s))
 
cc1plus.exe: error: unrecognized command line option "-std=c11"
cc1plus.exe: error: unrecognized command line option "-std=c11"
Process terminated with status 1 (0 minute(s), 0 second(s))
13 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 
« Last Edit: October 15, 2022, 10:07:06 pm by deka552 »

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3263
Re: Ardunio Project Help
« Reply #25 on: October 16, 2022, 12:25:11 am »
you have ticket the c11 option, not the c++11 option, but you need the c++11 option