Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 2 months ago.
Linker undefined references
Hi.
I get several linker errors:
Link: mbedos5 ./BUILD/NUCLEO_F401RE/GCC_ARM/jerryscript-mbed/jerryscript-mbed-launcher/source/setup.o: In function `jsmbed_js_load_magic_strings()': setup.cpp:(.text._Z28jsmbed_js_load_magic_stringsv+0x6c): undefined reference to `jsmbed_js_magic_string_count' setup.cpp:(.text._Z28jsmbed_js_load_magic_stringsv+0x70): undefined reference to `jsmbed_js_magic_string_lengths' setup.cpp:(.text._Z28jsmbed_js_load_magic_stringsv+0x74): undefined reference to `jsmbed_js_magic_strings' setup.cpp:(.text._Z28jsmbed_js_load_magic_stringsv+0x78): undefined reference to `jsmbed_js_magic_string_values' collect2.exe: error: ld returned 1 exit status [ERROR] ./BUILD/NUCLEO_F401RE/GCC_ARM/jerryscript-mbed/jerryscript-mbed-launcher/source/setup.o: In function `jsmbed_js_load_magic_strings()': setup.cpp:(.text._Z28jsmbed_js_load_magic_stringsv+0x6c): undefined reference to `jsmbed_js_magic_string_count' setup.cpp:(.text._Z28jsmbed_js_load_magic_stringsv+0x70): undefined reference to `jsmbed_js_magic_string_lengths' setup.cpp:(.text._Z28jsmbed_js_load_magic_stringsv+0x74): undefined reference to `jsmbed_js_magic_strings' setup.cpp:(.text._Z28jsmbed_js_load_magic_stringsv+0x78): undefined reference to `jsmbed_js_magic_string_values' collect2.exe: error: ld returned 1 exit status
[mbed] ERROR: "python" returned error code 1.
[mbed] ERROR: Command "python -u D:\Progetti\Embedded\mBed\5\jerryscript\targets\mbedos5\mbed-os\tools\make.py -t GCC_ARM -m NUCLEO_F401RE source . source ../../ build .\BUILD\NUCLEO_F401RE\GCC_ARM -j0 -D CONFIG_MEM_HEAP_AREA_SIZE=(1024*16)" in "D:\Progetti\Embedded\mBed\5\jerryscript\targets\mbedos5"
-
make: * [all] Error 1
Any idea?
Thanks!
Question relating to:
1 Answer
7 years ago.
So I never saw this thread, but we've replaced the build tools with a Gulp based toolchain.
Follow the instructions at https://github.com/ARMmbed/mbed-js-example to get started.