Error on vector.cc

12 Sep 2012

Hello I try to use the menu library from Kyle Gilpin Mbed design challenge (http://circuitcellar.com/contests/nxpmbeddesignchallenge/winners/HM3915.htm)

with an other lcd KS018 compatible but I have some error that I don't know how to correct...

The program: http://mbed.org/users/GuiTwo/code/Menu/

If you have some idea ?

Thanks

Error: "expected an identifier" in file "opt/RVDS4.1-r791/includevector.cc", Line: 393, Col: 33

"expected a ";"" in file "opt/RVDS4.1-r791/includevector.cc", Line: 488, Col: 1

"members and base-classes will be initialized in declaration order, not in member initialisation list order" in file "KS0108_PCF8574KS0108.cpp", Line: 17, Col: 4

"expected an identifier" in file "opt/RVDS4.1-r791/includevector.cc", Line: 393, Col: 33

"expected a ";"" in file "opt/RVDS4.1-r791/includevector.cc", Line: 488, Col: 1

12 Sep 2012

Nobody can Help me. I think that I have include probleme but I don't know where...

12 Sep 2012

Hi,

The compiler seems to use vector::swap instead of your swap(a,b) macro in the KS0108.h. You can change a name of your macro 'swap' to another (and references as well) to avoid these errors.

I hope this helps.

Regards,

12 Sep 2012

Thanks It's that...

22 May 2017

WOW! This has been happening to me! It seems THAT is the problem but how can we put this solution out of a place where it is difficult to find for others with the same problem?! This must be STL101 for mbed or something!