> > I just realized something I?d overlooked.
> >
> > Your for loop **is** unexpected in your example, it?s outside of any 
> > function.
> >
> > I just fired up the Arduino and tried my example template code (with 
> > the for loop inside of Setup) , and it worked for me.

Ah good point!

I've got the 'for' statement inside setup() and now I get this:

sketch/simple-wireframe-test.ino.cpp.o: In function 
`__static_initialization_and_destruction_0':
/home/alex/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/arm-none-eabi/include/c++/4.8.3/iostream:74:
 undefined reference to `std::ios_base::Init::Init()'
sketch/simple-wireframe-test.ino.cpp.o: In function 
`__static_initialization_and_destruction_0':
/home/alex/Arduino/simple-wireframe-test/simple-wireframe-test.ino:21: 
undefined reference to `std::ios_base::Init::~Init()'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino Due (Programming Port)

if I use 'new'. If I don't:

/home/alex/Arduino/simple-wireframe-test/simple-wireframe-test.ino: In function 
'void setup()':
simple-wireframe-test:29:76: error: cannot convert 'Vec3<unsigned char>' to 
'Vec3<unsigned char>*' in assignment
     for (uint32_t i = 0; i < imageWidth * imageHeight; ++i) frameBuffer[i] = 
Vec3<unsigned char>(255);
                                                                            ^
exit status 1
cannot convert 'Vec3<unsigned char>' to 'Vec3<unsigned char>*' in assignment


-- 
"The theater of noise is proof of our potential."
|\ |  (¯  \/ |¯\  |V| |\ ¯|¯ |¯) | \/ | | | |¯\ (¯   /¯  /\ |V|
|-||_ (_  /\ |_/ @| | |-| |  | \ | /\ |^| | |_/ (_ . \_  \/ | |

You won't find me on Facebook.

_______________________________________________
Triangle, NC Embedded Computing mailing list

To post message: [email protected]
List info: http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
TriEmbed web site: http://TriEmbed.org
To unsubscribe, click link and send a blank message: 
mailto:[email protected]?subject=unsubscribe

Reply via email to