Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: expected '=', ',', ';', 'asm' or '__attribute__' before Error for C++ header file

I created a new library and made everything a C++ file (.cpp) and that seem to have cleared up all the errors and not having to deal with compiler directives.  This is for a ANE library.  It compiles, but I still need to test it on the device.  So far, so good.

Highlighted
Retired
Posts: 45
Registered: ‎10-25-2010
My Device: Bold 9700
My Carrier: Rogers

Re: expected '=', ',', ';', 'asm' or '__attribute__' before Error for C++ header file


jtegen wrote:

I created a new library and made everything a C++ file (.cpp) and that seem to have cleared up all the errors and not having to deal with compiler directives.  This is for a ANE library.  It compiles, but I still need to test it on the device.  So far, so good.


Oh, OK.  If these were *.c files previously, then that would explain it.  The IDE will treat those as C language sources.

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: expected '=', ',', ';', 'asm' or '__attribute__' before Error for C++ header file

Woudl a .cpp file prevent an ANE from working? None of that now seems to work and there is not a easy way to debug/trace what is going on with an ANE.