janjongboom/janpatch

janpatch-cli.c causes "multiple definition of main"

Closed this issue · 3 comments

amq commented

How to reproduce:

  1. Create a project with janpatch.lib
  2. mbed export -i gnuarmeclipse
  3. Build in Eclipse

Possible solutions:

  • Move janpatch-cli.c to some demo project
  • Move janpatch-cli.c to TESTS/

@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?

Fixed in #8