[ell-i-developers] Ellduino Emulator: Fixing issues for Linux (Ubuntu 12.04 LTS)

  • From: Asif Sardar <engr.asif.sardar@xxxxxxxxxxxxxx>
  • To: ell-i-developers@xxxxxxxxxxxxx
  • Date: Fri, 14 Feb 2014 02:46:25 +0200

Hi Pekka,

For the sake of documenting everything about Emulator, Robot Testing
Framework and test cases into the developer mailing list, I am initiating
the mailing thread for *Emulator issues on Linux*, then later another
thread for *Robot Testing Framework and test cases for Emulator *issues.

...

When I build for emulator from path -> ....../Runtime/stm32/build/ through
command
make PLATFORM=emulator, I get following specific error at Ubuntu command
line:

*cc1plus: error: unrecognized command line option '-std=c++11'*

In my understanding, there might be issues with ...

1- Flags in emulator.mk file at path ....../Runtime/stm32/make/

    CFLAGS   := \
    $(subst -std=c99,-std=c++98,$(subst -mcpu=cortex-m0,,$(call
expand,compiler.cmd.cc.flags)))

    CXXFLAGS := \
    $(subst -std=gnu++0x,-std=c++98,$(subst -mcpu=cortex-m0,,$(call
expand,compiler.cmd.cxx.flags)))

2- LIBS in emulator.mk file at path ....../Runtime/stm32/make/
    LIBS += -lstdc++

3- Makefile at path ......./Runtime/stm32/build/
    PLATFORM ?= arduino
    # PLATFORM = emulator (why this is commented, uncomment still didn't
work with same error)


I haven't changed the flags in emulator.mk yet, I wanted to discuss with
you first!



-- 



*With Best Regards,Asif Sardar.+358 43 8265795*

Other related posts: