Hi Ana,
If I understand correctly, the problem is in how you build. The crux of
the problem is that you need to build the object files separately and
then bind the object files together using ld -r.
I have not tested it, but a Makefile similar to the stuff below should
work (note you need tabs for the commands, the output module is called
module_rt):
RTFLAGS = -D__RT__
INC = -I. -I/usr/src/rtl/include
KFLAGS = -D__KERNEL__ -DMODULE
CFLAGS = $(INC) -Wall -O2 -g $(RTFLAGS)
MOD_FILES = module_rt.o fun.o
module_rt : $(MOD_FILES)
$(LD) -r -o $@ $^
%.o : %.c
$(CC) -c $(CFLAGS) $(KFLAGS) -o $@ $<
Regards, Stuart
Vidarte Ana wrote:
>
> Hello,
>
> I would like to make a real time application
[snip]
>
> The following functions Actualiza_modelo(), Salida_modelo,
> Inicializa_modelo, Finaliza_modelo() are in a different file: fun.c and they
> are declared in the include file # include modelo.h.
>
> How would I compile and create the RTL programm?
>
> I have proved
> make -f rtl.mk modulo_rt.c fun.c modulo_rt.o but the module_rt.o does not
> recogniza the functions written in fun.c file.
>
> Would I make a RT program with main() function with
> pthread_create();
> pthread_setperiod_np(); and so on
> functions?
>
> Could someone help me, please?
>
> Ana.
>
--- [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/~rtlinux/