[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] C++ makefiles and compiling
I wrote a module for RTAI that does C++, you might find it in the archive on
the rtai website www.rtai.org. Several things like the use of new/delete are
possible with that. I am planning to include it in the next major release of
RTAI. You might find some things in there you could use with RTL.
- Erwin
David.Hamilton@jet.uk wrote:
>
> Maxime,
> I've just succeeded in getting a two source file program linked.
> Initially, both .cpp files had the rtl_cpp.h file included and I was getting
> link errors due to the new, new[] etc routines existing twice.
>
> I have now divided the rtl_cpp.h file into two files.
> one with the #includes only
> the other with the function definitions
> The first can now be included in both my source files, and the second is
> included only in the one with the init_module and cleanup_module functions.
> This links aok.
>
> Hope this helps and is in time to save some of your hair,
> David
>
> -----Original Message-----
> From: Maxime Brunet [mailto:maxime_brunet@hotmail.com]
> Sent: 10 October 2001 17:29
> To: rtl@rtlinux.org
> Subject: [rtl] C++ makefiles and compiling
>
> Hello everyone,
>
> Would anyone have an example C++ Makefile to compile multiple source files
> in C++ with rtlinux.
>
> I can compile C okay, but C++ compiling gives me a gazillion errors and I'm
> starting to rip my hair out trying to understand how this works ...
>
> I checked out the Makefile in examples/cpp but, it does not help me very
> much. ( I would like to understand what are the differences that exist
> between compiling C in rt, and compiling C++ in rt )
>
> Thanks a lot.
>
> Maxime Brunet
> maxime.brunet@hermes.usherb.ca
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/