Wiring Forum
Programming Questions & Help >> Syntax >> Working with c++ code.

Message started by darkn on 02/11/08 at 00:34:12

Title: Working with c++ code.
Post by darkn on 02/11/08 at 00:34:12
I'll start this off by apologizing if this is in the wrong sub-forum.

I'm working with some code that I wrote to navigate a robot. I wrote it in c++, as the Learning\Comparison page seemed to imply that I could. So I now have a large piece of code in c++, and I haven't been able to get it running on the Wiring board.

Basically, the code is in three sections: A bunch of classes + constructors, a bunch of functions that use those classes, and the main loop. The main loop should be pretty easy to break down into the setup() and loop() functions.

The other two sections aren't so easy to get working. I've been trying to get them to both work as a library. I've tried to get the classes + constructors in a library, and the functions in the main file, and no luck. Even though the classes are being imported, the compiler tells me that the functions are being passed something that's not a type.

I was excited when I saw the Hello World library topic by Zambetti, but all those links are dead.

So can anyone give me advice on using classes and constructors in wiring? And then using those classes in functions? I'm stuck here, and haven't been able to find any good documentation on what I need.

Thanks for reading this, if you made it this far.

Title: Re: Working with c++ code.
Post by barragan on 02/12/08 at 16:49:52
hi, I wrote to nick to see of we coan move those files locally since the ivrea site went down. IŽll get back to you soon.

Title: Re: Working with c++ code.
Post by darkn on 02/12/08 at 18:40:15
Sweet, thanks.

Wiring Forum » Powered by YaBB 2.5 AE!
YaBB Forum Software © 2000-2010. All Rights Reserved.