i was wondering if we can compil a sktech with multiple files as
main.ino
functions.h
myFunctions.cpp
main.ino :
Code: Select all
#include "functions.h"
void loop {
test();
}
Code: Select all
void test();
Code: Select all
void test(){
}
Code: Select all
Preprocessing file: Print.cpp with SDCPP...
Compiling Print_sdcpp_.cpp ...
Preprocessing file: Stream.cpp with SDCPP...
Compiling Stream_sdcpp_.cpp ...
Preprocessing file: HardwareSerial.cpp with SDCPP...
Compiling HardwareSerial_sdcpp_.cpp ...
Preprocessing file: HLCore.cpp with SDCPP...
Compiling HLCore_sdcpp_.cpp ...
Preprocessing file: _main.cpp with SDCPP...
Compiling _main_sdcpp_.cpp ...
Preprocessing file: Print.cpp with SDCPP...
Compiling Print_sdcpp_.cpp ...
Preprocessing file: Stream.cpp with SDCPP...
Compiling Stream_sdcpp_.cpp ...
Preprocessing file: HardwareSerial.cpp with SDCPP...
Compiling HardwareSerial_sdcpp_.cpp ...
Preprocessing file: HLCore.cpp with SDCPP...
Compiling HLCore_sdcpp_.cpp ...
Preprocessing file: _main.cpp with SDCPP...
Compiling _main_sdcpp_.cpp ...Compiling file "LLCore_arduino.c" by means of SDCC...
sdcc: Calling preprocessor...
sdcc: sdcpp.exe -nostdinc -Wall -obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCC=3_5_0 -DSDCC=350 -D__SDCC_REVISION=9253 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__ -D__STDC_NO_THREADS__ -D__STDC_NO_ATOMICS__ -D__STDC_NO_VLA__ -isystem "C:\Users\chiquito\AppData\Roaming\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.20\zuno_toolchain/sdcc/\bin\..\include\mcs51" -isystem "C:\Users\chiquito\AppData\Roaming\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.20\zuno_toolchain/sdcc/\bin\..\include" "LLCore_arduino.c"
sdcc: Generating code...
sdcc: Calling assembler...
sdcc: sdas8051.exe -plosgffw "LLCore_arduino.rel" "LLCore_arduino".asm
LLCore_arduino.c:25: warning 85: in function NOPS unreferenced function argument : 'i'
LLCore_arduino.c:218: warning 85: in function delayLoops unreferenced function argument : 'v'
Compiling file "Print_ucxx.c" by means of SDCC...
sdcc: Calling preprocessor...
sdcc: sdcpp.exe -nostdinc -Wall -obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCC=3_5_0 -DSDCC=350 -D__SDCC_REVISION=9253 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__ -D__STDC_NO_THREADS__ -D__STDC_NO_ATOMICS__ -D__STDC_NO_VLA__ -isystem "C:\Users\chiquito\AppData\Roaming\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.20\zuno_toolchain/sdcc/\bin\..\include\mcs51" -isystem "C:\Users\chiquito\AppData\Roaming\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.20\zuno_toolchain/sdcc/\bin\..\include" "Print_ucxx.c"
sdcc: Generating code...
sdcc: Calling assembler...
sdcc: sdas8051.exe -plosgffw "Print_ucxx.rel" "Print_ucxx".asm
Compiling file "Stream_ucxx.c" by means of SDCC...
sdcc: Calling preprocessor...
sdcc: sdcpp.exe -nostdinc -Wall -obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCC=3_5_0 -DSDCC=350 -D__SDCC_REVISION=9253 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__ -D__STDC_NO_THREADS__ -D__STDC_NO_ATOMICS__ -D__STDC_NO_VLA__ -isystem "C:\Users\chiquito\AppData\Roaming\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.20\zuno_toolchain/sdcc/\bin\..\include\mcs51" -isystem "C:\Users\chiquito\AppData\Roaming\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.20\zuno_toolchain/sdcc/\bin\..\include" "Stream_ucxx.c"
sdcc: Generating code...
sdcc: Calling assembler...
sdcc: sdas8051.exe -plosgffw "Stream_ucxx.rel" "Stream_ucxx".asm
Compiling file "HardwareSerial_ucxx.c" by means of SDCC...
sdcc: Calling preprocessor...
sdcc: sdcpp.exe -nostdinc -Wall -obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCC=3_5_0 -DSDCC=350 -D__SDCC_REVISION=9253 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__ -D__STDC_NO_THREADS__ -D__STDC_NO_ATOMICS__ -D__STDC_NO_VLA__ -isystem "C:\Users\chiquito\AppData\Roaming\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.20\zuno_toolchain/sdcc/\bin\..\include\mcs51" -isystem "C:\Users\chiquito\AppData\Roaming\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.20\zuno_toolchain/sdcc/\bin\..\include" "HardwareSerial_ucxx.c"
sdcc: Generating code...
sdcc: Calling assembler...
sdcc: sdas8051.exe -plosgffw "HardwareSerial_ucxx.rel" "HardwareSerial_ucxx".asm
Compiling file "HLCore_ucxx.c" by means of SDCC...
sdcc: Calling preprocessor...
sdcc: sdcpp.exe -nostdinc -Wall -obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCC=3_5_0 -DSDCC=350 -D__SDCC_REVISION=9253 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__ -D__STDC_NO_THREADS__ -D__STDC_NO_ATOMICS__ -D__STDC_NO_VLA__ -isystem "C:\Users\chiquito\AppData\Roaming\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.20\zuno_toolchain/sdcc/\bin\..\include\mcs51" -isystem "C:\Users\chiquito\AppData\Roaming\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.20\zuno_toolchain/sdcc/\bin\..\include" "HLCore_ucxx.c"
sdcc: Generating code...
sdcc: Calling assembler...
sdcc: sdas8051.exe -plosgffw "HLCore_ucxx.rel" "HLCore_ucxx".asm
Compiling file "_main_ucxx.c" by means of SDCC...
sdcc: Calling preprocessor...
sdcc: sdcpp.exe -nostdinc -Wall -obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCC=3_5_0 -DSDCC=350 -D__SDCC_REVISION=9253 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__ -D__STDC_NO_THREADS__ -D__STDC_NO_ATOMICS__ -D__STDC_NO_VLA__ -isystem "C:\Users\chiquito\AppData\Roaming\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.20\zuno_toolchain/sdcc/\bin\..\include\mcs51" -isystem "C:\Users\chiquito\AppData\Roaming\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.20\zuno_toolchain/sdcc/\bin\..\include" "_main_ucxx.c"
sdcc: Generating code...
sdcc: Calling assembler...
sdcc: sdas8051.exe -plosgffw "_main_ucxx.rel" "_main_ucxx".asm
?ASlink-Warning-Undefined Global '_test' referenced by module '_main_ucxx'
sdcc: Calling preprocessor...
sdcc: sdcpp.exe -nostdinc -Wall -obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_MODEL_LARGE -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCC=3_5_0 -DSDCC=350 -D__SDCC_REVISION=9253 -D__SDCC_mcs51 -D__STDC_NO_COMPLEX__ -D__STDC_NO_THREADS__ -D__STDC_NO_ATOMICS__ -D__STDC_NO_VLA__ -isystem "C:\Users\chiquito\AppData\Roaming\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.20\zuno_toolchain/sdcc/\bin\..\include\mcs51" -isystem "C:\Users\chiquito\AppData\Roaming\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.20\zuno_toolchain/sdcc/\bin\..\include" "C:\Users\chiquito\AppData\Local\Temp\build8529676853814033870.tmp/main.c"
sdcc: Generating code...
sdcc: Calling assembler...
sdcc: sdas8051.exe -plosgffw "main.rel" "main".asm
sdcc: Calling linker...
sdcc: sdld.exe -nf "main.lk"
Error. SDCC returned: 1
Erreur lors de la compilation.
Code: Select all
?ASlink-Warning-Undefined Global '_test' referenced by module '_main_ucxx'