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:[EMAIL PROTECTED]]
Sent: 10 October 2001 17:29
To: [EMAIL PROTECTED]
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
[EMAIL PROTECTED]

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to