janpatch-cli.c causes "multiple definition of main"
Closed this issue · 3 comments
amq commented
How to reproduce:
- Create a project with
janpatch.lib
mbed export -i gnuarmeclipse
- Build in Eclipse
Possible solutions:
- Move
janpatch-cli.c
to some demo project - Move
janpatch-cli.c
toTESTS/
janjongboom commented
@amq So I've covered this by having an .mbedignore file present, which ignores the file when building with Mbed CLI. Apparently mbedignore is not respected by the gnuarmeclipse exporter. Made a bug report in mbed-os: ARMmbed/mbed-os#6060
amq commented
Seems like a fix in mbed-os / mbed-cli is quite far away, could you use a workaround in the meantime?
janjongboom commented
Fixed in #8