6 years, 5 months ago.

Compile error in LPC4088QS

Hello,

I recently updated mbed_src library (from 84 to 114) and mbed-rtos (from 16 to 17). I get a compile error in file EaLcdBoard.cpp. EALib version is unchanged (12)

Error: Too many arguments in function call in "EALib/EaLcdBoard.cpp", Line: 642, Col: 29

The offending line is >> "gpio_init(&gp, pin, PIN_OUTPUT);"

I don't even use the LCD libraries.

...kevin

2 Answers

6 years, 5 months ago.

The gpio functions were slightly changed, which generally isn't a problem since you only use the DigitalOut stuff, but apparrantly they used it directly there. The relevant changes: https://github.com/mbedmicro/mbed/commit/423ddcb86e83e2e0d599ca7106d436eb3c47e6dd

If you don't use it anyway you can probably delete it. But the fix would be replacing that line with:

 gpio_init_out(&gp, pin);

Accepted Answer
6 years, 4 months ago.

I ran into the same problem. This fix worked.