C (125/254)

From:robinausdemwald
Date:05 Apr 00 at 20:20:05
Subject:reactor/makefile

Hi!
I have some problems with using using the Reactor-Tool from the Dev2.1-CD.
Let`s say, I want a prog, which just opens a window with a simple Button in
it.
After writing the source-code, building the reactor-file and doing all
things mentioned in the reactor-doc (adding the header-file to the sources,
the assembler-file and object-file to the project), all modules compile
fine, but when linking together I get the following linker-error:

"Undefined symbol BUTTON_LOC1, first referenced in File 'reactor.o'."

BUTTON_LOC1 is the string I used for the LocaleID of the button, reactor.o
is the the object-file made by Reactor.
The same error I get with BUTTON_LOC1_STR, WIN_LOC, WIN_LOC_STR.
I know these strings are defined in the asm-file created by catcomp, but I
don't know, how to use this.
I also tried to recompile the eurocalc-example from the DevCD with SASC and
StormC,
but I got the same result, so I assume the error must be in my makefile (I
am not very good in writing makefiles).
My makefile looks like this (created with the help of mkmk):

OBJS = reactionprg.o reactor.o reaction_cd.o
reactionprg: $(OBJS)
sc link to reactionprg with <<
$(OBJS)
<
[snip]

reactionprg.o is the compiled c-source, reactor.o the object file created by
reactor and reaction_cd.o
the assembler-object file.

It would be be very nice, if someone could explain me, what I am doing wrong
and how I must link the files together
( an example-makefile would be fine)

Thanks
Christian

------------------------------------------------------------------------
Get a NextCard Visa, in 30 seconds!
1. Fill in the brief application
2. Receive approval decision within 30 seconds
3. Get rates as low as 2.9% Intro or 9.9% Fixed APR
Apply NOW!
http://click.egroups.com/1/975/1/_/451227/_/954962576/
------------------------------------------------------------------------