Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Switch to gnu++17 for GIGA #973

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
SuMere wants to merge 1 commit into arduino:main
base: main
Choose a base branch
Loading
from SuMere:g++17
Open

Switch to gnu++17 for GIGA #973

SuMere wants to merge 1 commit into arduino:main from SuMere:g++17

Conversation

Copy link

@SuMere SuMere commented Oct 8, 2024

Temporary support for g++17 for GIGA

@SuMere SuMere requested a review from facchinm October 8, 2024 08:19
Copy link

CLAassistant commented Oct 8, 2024
edited
Loading

CLA assistant check
All committers have signed the CLA.

Copy link

x37v commented Nov 5, 2024

I'm simply altering the files that came with the latest arduino IDE so hopefully I'm not off base here but I made the Arduino.h change but I'm still having issues with PI in Common.h

/Users/xnor/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -w -g3 -nostdlib @/Users/xnor/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.1.5/variants/GIGA/defines.txt @/Users/xnor/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.1.5/variants/GIGA/cxxflags.txt -MMD -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -DARDUINO=10607 -DARDUINO_GIGA -DARDUINO_ARCH_MBED_GIGA -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=0 -I/Users/xnor/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.1.5/cores/arduino -I/Users/xnor/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.1.5/variants/GIGA -I/Users/xnor/Documents/Arduino/libraries/Arduino_AdvancedAnalog/src -I/Users/xnor/Documents/Arduino/libraries/rnbo/src -DCM4_BINARY_START=0x60000000 -DCM4_BINARY_END=0x60040000 -DCM4_RAM_END=0x60080000 -std=gnu++17 -I/Users/xnor/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.1.5/cores/arduino/api/deprecated -I/Users/xnor/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.1.5/cores/arduino/api/deprecated-avr-comp -iprefix/Users/xnor/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.1.5/cores/arduino @/Users/xnor/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.1.5/variants/GIGA/../GIGA/includes.txt /private/var/folders/8j/z_f6vtxs27s50txpq8q3p7w00000gn/T/arduino/sketches/4A4EB28BF770E6CAA54E6C29B3655FEB/sketch/sketch_nov5a.ino.cpp -o /private/var/folders/8j/z_f6vtxs27s50txpq8q3p7w00000gn/T/arduino/sketches/4A4EB28BF770E6CAA54E6C29B3655FEB/sketch/sketch_nov5a.ino.cpp.o
In file included from /Users/xnor/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.1.5/variants/GIGA/pinmode_arduino.h:30:0,
 from /Users/xnor/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.1.5/cores/arduino/Arduino.h:26,
 from /private/var/folders/8j/z_f6vtxs27s50txpq8q3p7w00000gn/T/arduino/sketches/4A4EB28BF770E6CAA54E6C29B3655FEB/sketch/sketch_nov5a.ino.cpp:1:
/Users/xnor/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.1.5/cores/arduino/api/Common.h:51:21: error: expected unqualified-id before numeric constant
 #define PI 3.1415926535897932384626433832795
 ^
/Users/xnor/Library/Arduino15/packages/arduino/hardware/mbed_giga/4.1.5/cores/arduino/api/Common.h:51:21: note: in definition of macro 'PI'
 #define PI 3.1415926535897932384626433832795
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

adding that same ifdef around the #define PI line resolves it

#if __cplusplus < 201703L
#define PI 3.1415926535897932384626433832795
#endif

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

@facchinm facchinm Awaiting requested review from facchinm

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /