Taking address of temporary [-fpermissive] error

  • 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!

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.