defragster
Senior Member+
Building the Large FLASH code: T4Encrypt\Code4Code\CodeMade.ino :: Defragster/T4LockBeta/tree/main/Code4Code
There are 4000 of these funcs, console output is truncated. Switching to smaller set with 4 not 4,000 copies:
Gotta Run ... This built fine before - now 'int' is a problem and cascades ???
Code:
<< TRUNCATED console output ??? >>
| ~~~~~^~~~~~~~~~~~~~~~~~~
C:\T_Drive\tCode\T4Encrypt\Code4Code\CodeMade.ino: In function 'uint32_t [B]ThisFunc3752[/B](uint32_t, uint32_t, const uint32_t*)':
C:\T_Drive\tCode\T4Encrypt\Code4Code\CodeMade.ino:56297:24: error: 'seePi' cannot be used as a function
56297 | uint32_t myPi = seePi( PI_DIGITS, szPi );
| ~~~~~^~~~~~~~~~~~~~~~~~~
...
C:\T_Drive\tCode\T4Encrypt\Code4Code\CodeMade.ino: In function 'uint32_t [B]ThisFunc0[/B](uint32_t, uint32_t, const uint32_t*)':
C:\T_Drive\tCode\T4Encrypt\Code4Code\CodeMade.ino:60019:24: error: 'seePi' cannot be used as a function
60019 | uint32_t myPi = seePi( PI_DIGITS, szPi );
| ~~~~~^~~~~~~~~~~~~~~~~~~
exit status 1
Compilation error: 'uint' was not declared in this scope; did you mean 'rint'?
There are 4000 of these funcs, console output is truncated. Switching to smaller set with 4 not 4,000 copies:
Code:
Using board 'teensy41' from platform in folder: C:\Users\Tim\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.0-beta1
Using core 'teensy4' from platform in folder: C:\Users\Tim\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.0-beta1
Detecting libraries used...
"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1-beta1/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10607 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta1\\cores\\teensy4" "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino-sketch-4CE48C18C39C39394423426F2C82860A\\sketch\\Code4Code.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1-beta1/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10607 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta1\\cores\\teensy4" "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino-sketch-4CE48C18C39C39394423426F2C82860A\\sketch\\Code4Code.ino.cpp" -o "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino-sketch-4CE48C18C39C39394423426F2C82860A\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino-sketch-4CE48C18C39C39394423426F2C82860A\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-tools\\1.58.0-beta1/precompile_helper" "C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta1/cores/teensy4" "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino-sketch-4CE48C18C39C39394423426F2C82860A" "C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1-beta1/arm/bin/arm-none-eabi-g++" -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10607 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta1/cores/teensy4" "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino-sketch-4CE48C18C39C39394423426F2C82860A/pch/Arduino.h" -o "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino-sketch-4CE48C18C39C39394423426F2C82860A/pch/Arduino.h.gch"
Using previously compiled file: C:\Users\Tim\AppData\Local\Temp\arduino-sketch-4CE48C18C39C39394423426F2C82860A\pch\Arduino.h.gch
"C:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\tools\\teensy-compile\\11.3.1-beta1/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10607 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Tim\\AppData\\Local\\Temp\\arduino-sketch-4CE48C18C39C39394423426F2C82860A/pch" "-IC:\\Users\\Tim\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.0-beta1\\cores\\teensy4" "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino-sketch-4CE48C18C39C39394423426F2C82860A\\sketch\\Code4Code.ino.cpp" -o "C:\\Users\\Tim\\AppData\\Local\\Temp\\arduino-sketch-4CE48C18C39C39394423426F2C82860A\\sketch\\Code4Code.ino.cpp.o"
C:\T_Drive\tCode\T4Encrypt\Code4Code\Code4Code.ino:172:12: error: 'uint' was not declared in this scope; did you mean 'rint'?
172 | PI_INLINE int seePi( uint maxDigits, char *szPi ) {
| ^~~~
| rint
C:\T_Drive\tCode\T4Encrypt\Code4Code\Code4Code.ino:172:28: error: expected primary-expression before 'char'
172 | PI_INLINE int seePi( uint maxDigits, char *szPi ) {
| ^~~~
C:\T_Drive\tCode\T4Encrypt\Code4Code\Code4Code.ino:172:39: warning: expression list treated as compound expression in initializer [-fpermissive]
172 | PI_INLINE int seePi( uint maxDigits, char *szPi ) {
| ^
C:\T_Drive\tCode\T4Encrypt\Code4Code\Code4Code.ino: In function 'void setup()':
C:\T_Drive\tCode\T4Encrypt\Code4Code\Code4Code.ino:41:8: error: 'seePi' cannot be used as a function
41 | seePi( 200, NULL ); // Just for fun to see 800 Pi digits takes 9.1ms
| ~~~~~^~~~~~~~~~~~~
C:\T_Drive\tCode\T4Encrypt\Code4Code\Code4Code.ino:44:41: error: 'seePi' cannot be used as a function
44 | iiCnt = theCount = ThisFunc1( 0, seePi( PI_DIGITS, szPi ), &sumPi60dig );
| ~~~~~^~~~~~~~~~~~~~~~~~~
C:\T_Drive\tCode\T4Encrypt\Code4Code\Code4Code.ino:49:25: error: 'seePi' cannot be used as a function
49 | int seePiStart = seePi( PI_DIGITS, szPi );
| ~~~~~^~~~~~~~~~~~~~~~~~~
C:\T_Drive\tCode\T4Encrypt\Code4Code\Code4Code.ino:77:33: error: 'seePi' cannot be used as a function
77 | theCount = ThisFunc1( 0, seePi( PI_DIGITS, szPi ), &sumPi60dig );
| ~~~~~^~~~~~~~~~~~~~~~~~~
C:\T_Drive\tCode\T4Encrypt\Code4Code\Code4Code.ino:91:21: error: 'seePi' cannot be used as a function
91 | seePiStart = seePi( PI_DIGITS, szPi );
| ~~~~~^~~~~~~~~~~~~~~~~~~
C:\T_Drive\tCode\T4Encrypt\Code4Code\Code4Code.ino: In function 'void loop()':
C:\T_Drive\tCode\T4Encrypt\Code4Code\Code4Code.ino:125:35: error: 'seePi' cannot be used as a function
125 | theCount = ThisFunc1( 0, seePi( PI_DIGITS, szPi ), &sumPi60dig );
| ~~~~~^~~~~~~~~~~~~~~~~~~
C:\T_Drive\tCode\T4Encrypt\Code4Code\Code4Code.ino:131:27: error: 'seePi' cannot be used as a function
131 | int seePiStart = seePi( PI_DIGITS, szPi );
| ~~~~~^~~~~~~~~~~~~~~~~~~
C:\T_Drive\tCode\T4Encrypt\Code4Code\Code4Code.ino: At global scope:
C:\T_Drive\tCode\T4Encrypt\Code4Code\Code4Code.ino:12:20: warning: inline variables are only available with '-std=c++17' or '-std=gnu++17'
12 | #define PI_INLINE inline // Set to 'inline' for seePi() inline
| ^~~~~~
C:\T_Drive\tCode\T4Encrypt\Code4Code\Code4Code.ino:172:1: note: in expansion of macro 'PI_INLINE'
172 | PI_INLINE int seePi( uint maxDigits, char *szPi ) {
| ^~~~~~~~~
C:\T_Drive\tCode\T4Encrypt\Code4Code\Code4Code.ino:172:15: error: redefinition of 'int seePi'
172 | PI_INLINE int seePi( uint maxDigits, char *szPi ) {
| ^~~~~
C:\T_Drive\tCode\T4Encrypt\Code4Code\Code4Code.ino:172:5: note: 'int seePi' previously defined here
172 | PI_INLINE int seePi( uint maxDigits, char *szPi ) {
| ^~~~~
C:\T_Drive\tCode\T4Encrypt\Code4Code\Code4Code.ino:172:22: error: 'uint' was not declared in this scope; did you mean 'rint'?
172 | PI_INLINE int seePi( uint maxDigits, char *szPi ) {
| ^~~~
| rint
C:\T_Drive\tCode\T4Encrypt\Code4Code\Code4Code.ino:172:38: error: expected primary-expression before 'char'
172 | PI_INLINE int seePi( uint maxDigits, char *szPi ) {
| ^~~~
C:\T_Drive\tCode\T4Encrypt\Code4Code\CodeMade.ino: In function 'uint32_t ThisFunc1(uint32_t, uint32_t, const uint32_t*)':
C:\T_Drive\tCode\T4Encrypt\Code4Code\CodeMade.ino:32:24: error: 'seePi' cannot be used as a function
32 | uint32_t myPi = seePi( PI_DIGITS, szPi );
| ~~~~~^~~~~~~~~~~~~~~~~~~
C:\T_Drive\tCode\T4Encrypt\Code4Code\CodeMade.ino: In function 'uint32_t ThisFunc2(uint32_t, uint32_t, const uint32_t*)':
C:\T_Drive\tCode\T4Encrypt\Code4Code\CodeMade.ino:47:24: error: 'seePi' cannot be used as a function
47 | uint32_t myPi = seePi( PI_DIGITS, szPi );
| ~~~~~^~~~~~~~~~~~~~~~~~~
C:\T_Drive\tCode\T4Encrypt\Code4Code\CodeMade.ino: In function 'uint32_t ThisFunc3(uint32_t, uint32_t, const uint32_t*)':
C:\T_Drive\tCode\T4Encrypt\Code4Code\CodeMade.ino:62:24: error: 'seePi' cannot be used as a function
62 | uint32_t myPi = seePi( PI_DIGITS, szPi );
| ~~~~~^~~~~~~~~~~~~~~~~~~
C:\T_Drive\tCode\T4Encrypt\Code4Code\CodeMade.ino: In function 'uint32_t ThisFunc0(uint32_t, uint32_t, const uint32_t*)':
C:\T_Drive\tCode\T4Encrypt\Code4Code\CodeMade.ino:79:24: error: 'seePi' cannot be used as a function
79 | uint32_t myPi = seePi( PI_DIGITS, szPi );
| ~~~~~^~~~~~~~~~~~~~~~~~~
exit status 1
Compilation error: 'uint' was not declared in this scope; did you mean 'rint'?
Gotta Run ... This built fine before - now 'int' is a problem and cascades ???