mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
2e76cd3687
This shows nicely formatted error messages for missing symbol names and for out-of-flash, out-of-RAM conditions (on microcontrollers with limited flash/RAM). Unfortunately the missing symbol name errors aren't available on Windows and WebAssembly because the linker doesn't report source locations yet. This is something that I could perhaps improve in LLD.
12 lines
211 B
Go
12 lines
211 B
Go
package main
|
|
|
|
func foo()
|
|
|
|
func main() {
|
|
foo()
|
|
foo()
|
|
}
|
|
|
|
// ERROR: linker-undefined.go:6: linker could not find symbol {{_?}}main.foo
|
|
// ERROR: linker-undefined.go:7: linker could not find symbol {{_?}}main.foo
|