mirror of
https://github.com/kakopappa/how-to-make-a-precompiled-arduino-library-for-esp8266-esp32.git
synced 2025-06-07 21:50:13 +03:00
10 lines
276 B
C++
10 lines
276 B
C++
#include "hello.h"
|
|
|
|
int add(int x, int y) {
|
|
return x + y;
|
|
}
|
|
|
|
// C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3\bin
|
|
// xtensa-esp32-elf-gcc.exe -c hello.cpp -o hello.o
|
|
// xtensa-esp32-elf-ar.exe crf hello.a hello.o
|