Sometimes you have to specify the extension translstion. Try renaming the file 
with .cpp pr .c++ entension or I can hunt down the extension translation in a 
few days when I get home.


Sent from my Galaxy S®III

-------- Original message --------
From: Frank Tkalcevic <[email protected]> 
Date: 2013/11/10  19:42  (GMT-08:00) 
To: EMC developers <[email protected]> 
Subject: [Emc-developers] Building a new C++ kinematics module 
 
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to