HI
compile u'r code in the following way,
$(CC) ${INCLUDE} ${CFLAGS} -c -o tempc_temp.o tempc.c
$(LD) -r -static tempc_temp.o -o tempc.o -L/usr/lib -L/usr/lib -lc
and one more suuggestion, what ever u are telling is not a make file for
u'r programme
in "rtl.mk" u will be having few flag variables useful while compiling,
have a habit of writing u'r own make file for u'r programmes ,
use variables defined in this sys geneaterd "rtl.mk" in u'r make file.
chandu
----- Original Message -----
From: Anumula Venkata Naga Seshaiah <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 29, 2001 10:10 AM
Subject: Re: [rtl] system command
>
> Hi ,
>
> Thanks for ur reply.
> The make file is RTlinux generated one when we install rtlinux.
> first.o is another module which is working well when i insert using insmod
> at prompt.
>
> thanks
> Venkat
>
> The make file is ...
>
> #Automatically generated by RTLinux Makefile
> RTL_DIR = /usr/src/rtlinux
> RTLINUX_DIR = /usr/src/rtlinux/linux
> INCLUDE= -I/usr/src/rtlinux/linux/include -I/usr/src/rtlinux/include
> -I/usr/src/rtlinux/include/compat
> CFLAGS = -D__KERNEL__ -Wall -Wstrict-prototypes -fno-strict-aliasing
> -D__SMP__ -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2
> -malign-functions=2 -DCPU=686 -g -D__RTL__ -DMODULE -D_LOOSE_KERNEL_NAMES
> -O2 -I/usr/src/rtlinux/linux/include -I/usr/src/rtlinux/include
> -I/usr/src/rtlinux/include/compat -I/usr/src/rtlinux/include/posix
> ARCH = i386
> CC = kgcc
> CXXFLAGS = -D__KERNEL__ -Wall -Wstrict-prototypes -fno-strict-aliasing
> -D__SMP__ -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2
> -malign-functions=2 -DCPU=686 -g -D__RTL__ -DMODULE -D_LOOSE_KERNEL_NAMES
> -fno-exceptions -fno-rtti
>
>
> >From: "chandu Reddy" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: <[EMAIL PROTECTED]>
> >Subject: Re: [rtl] system command
> >Date: Fri, 29 Jun 2001 09:53:10 +0100
> >
> >
> >hello
> > pls send u'r make file, so that i can tell.
> >what is first.o, whether it is object of this file or some thing else.
> >let me know , what the following call will do?(purpose)
> >because i didn't use this one so far, whetgher it is to make u'r module
to
> >be available
> > as a system module.
> >
> >system("rtlinux start first.o");
> >
> >chandu
> >
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> ----- End of forwarded message from [EMAIL PROTECTED] -----
> -- [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/