|
From: Michael H. <ma...@ma...> - 2013-11-11 05:57:50
|
Frank, I think the Makefile rules will not build a RT module out of C++ code since the kernel environment is not geared for C++ runtime support any chance you recode this into plain C ? -m Am 11.11.2013 um 04:42 schrieb Frank Tkalcevic <fr...@fr...>: > I'm trying to add a new C++ kinematics module. If I just put my .cc file in > the src/emc/kinematics directory, nothing happens. > > > > I looked in src/Makefile and found these lines (I'm building the simulator > at the moment). > > > > $(sort $(RTOBJS)) : objects/rt%.o : %.c > > $(ECHO) Compiling realtime $< > > @mkdir -p $(dir $@) > > $(Q)$(CC) -c $(OPT) $(DEBUG) -DSIM -DSIMULATOR -DRTAPI $(EXTRA_CFLAGS) > $< -o $@ > > > > > > Firstly, I've never seen a make line with 3 colons, so I'm not really sure > what this does. If I duplicate the block and change the rule to look for > .cc and run the CXX compiler, like this. > > > > > > $(sort $(RTOBJS)) : objects/rt%.o : %.cc > > $(ECHO) Compiling realtime $< > > @mkdir -p $(dir $@) > > $(Q)$(CXX) -c $(OPT) $(DEBUG) -DSIM -DSIMULATOR -DRTAPI $(EXTRA_CFLAGS) > $< -o $@ > > > > > > I get this repeated for all objects/rt* but still no build. > > > > Makefile:880: warning: overriding commands for target > `objects/rtobjects/hal/components/xor2.o' > > Makefile:875: warning: ignoring old commands for target > `objects/rtobjects/hal/components/xor2.o > > > > It appears the .c and .cc rules are the same. I using the 2.5.3 source. > Any ideas? > > > > Frank > > > > ------------------------------------------------------------------------------ > November Webinars for C, C++, Fortran Developers > Accelerate application performance with scalable programming models. Explore > techniques for threading, error checking, porting, and tuning. Get the most > from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk > _______________________________________________ > Emc-developers mailing list > Emc...@li... > https://lists.sourceforge.net/lists/listinfo/emc-developers |