Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Taking address of temporary [-fpermissive] error
lihakimpale last edited by
I am trying to compile my Bluetooth C code on Qt Creator but I am getting an error "taking address of temporary [-fpermissive]" on line
@loc_addr.l2_bdaddr = *BDADDR_ANY;@
It compiles fine on my Eclipse and arm-linux-gnueabihf cross compiler. On Qt Creator I am using arm-linux-gnueabihf-gcc.4.6 compiler.
edit: It worked until I moved that Bluetooth code to main function.
Thank you in advance!