Thanks Alex and EBo!
I didn't realize that the extra function would need to reimplemented in
those extra places. I looked at the code and now I understand why it has to
be reimplemented in those two additional places and it compiles great now!
Thank you again!
Lawrence
On Wed, Mar 31, 2010 at 12:27 AM, EBo <[email protected]> wrote:
> Look in the .h files to find the prototype for STRAIGHT_TRAVERSE, and add
> one
> for STRAIGHT_TRAVERSE2. That is my only guess without looking at the code.
>
> EBo --
>
> Flying Electron Inc <[email protected]> said:
>
> > --001636ed62f85029d7048312ceb1
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> > Hi all!
> >
> > This is kind of out there, but hoping someone might know what I did
> wrong.
> > I am trying to add a STRAIGHT_TRAVERSE2 function right next to the
> original
> > STRAIGHT_TRAVERSE function in the code.
> >
> > I did the following:
> >
> > 1. Added a STRAIGHT_TRAVERSE2 function in src/emc/task/emccanon.cc (This
> > already contains the original STRAIGHT_TRAVERSE function)
> > 2. Added an extern declaration for STRAIGHT_TRAVERSE2 in
> > /src/emc/nml_intf/canon.hh (This already contains an extern declaration
> for
> > the original STRAIGHT_TRAVERSE function)
> > 3. I try to call STRAIGHT_TRAVERSE2 in the
> > /src/emc/rs274ngc/interp_convert.cc file right below a call to the
> original
> > STRAIGHT_TRAVERSE function.
> >
> > When trying to build this, I get the following error
> >
> > Linking rs274
> > g++ -L/home/lawrence/emc2-dev/lib -Wl,-rpath,/home/lawrence/emc2-dev/lib
> -o
> > ../bin/rs274 objects/emc/sai/saicanon.o objects/emc/sai/driver.o
> > objects/emc/rs274ngc/tool_parse.o ../lib/librs274.so.0
> ../lib/libemcini.so.0
> > -Wall -g -I. -I/home/lawrence/emc2-dev/src/include -DULAPI -D_GNU_SOURCE
> -Os
> > -DLOCALE_DIR=\"/usr/share/locale\" -DPACKAGE=\"emc2\"
> > ../lib/librs274.so.0: undefined reference to `STRAIGHT_TRAVERSE2(int,
> > double, double, double, double, double, double, double, double, double)'
> > collect2: ld returned 1 exit status
> >
> > I must be doing something wrong but I can not for the life of me figure
> out
> > what it is. My implementation of STRAIGHT_TRAVERSE2 is right below the
> code
> > for STRAIGHT_TRAVERSE in emccanon.cc and my external declaration for
> > STRAIGHT_TRAVERSE2 is right below the external declaration for
> > STRAIGHT_TRAVERSE in canon.hh .
> >
> > Anybody suggest anything I can try? I really don't understand why the
> > linker is saying undefined reference when it is defined...
> >
> > Thanks in advance!
> >
> > Lawrence
> >
> > --001636ed62f85029d7048312ceb1
> > Content-Type: text/html; charset=ISO-8859-1
> > Content-Transfer-Encoding: quoted-printable
> >
> > Hi all!<div><br></div><div>This is kind of out there, but hoping someone
> mi=
> > ght know what I did wrong. =A0I am trying to add a STRAIGHT_TRAVERSE2
> funct=
> > ion right next to the original STRAIGHT_TRAVERSE function in the
> code.</div=
> > >
> > <div><br></div><div>I did the following:</div><div><br></div><div>1.
> =A0Add=
> > ed a STRAIGHT_TRAVERSE2 function in src/emc/task/emccanon.cc (This
> already =
> > contains the original STRAIGHT_TRAVERSE function)</div><div>2. =A0Added
> an =
> > extern declaration for STRAIGHT_TRAVERSE2 in /src/emc/nml_intf/canon.hh
> (Th=
> > is already contains an extern declaration for the original
> STRAIGHT_TRAVERS=
> > E function)</div>
> > <div>3. =A0I try to call STRAIGHT_TRAVERSE2 in the
> /src/emc/rs274ngc/interp=
> > _convert.cc file right below a call to the original STRAIGHT_TRAVERSE
> funct=
> > ion.</div><div><br></div><div>When trying to build this, I get the
> followin=
> > g error</div>
> > <div><br></div><div><div>Linking rs274</div><div>g++
> -L/home/lawrence/emc2-=
> > dev/lib -Wl,-rpath,/home/lawrence/emc2-dev/lib -o ../bin/rs274
> objects/emc/=
> > sai/saicanon.o objects/emc/sai/driver.o objects/emc/rs274ngc/tool_parse.o
> .=
> > ./lib/librs274.so.0 ../lib/libemcini.so.0 -Wall -g -I.
> -I/home/lawrence/emc=
> > 2-dev/src/include -DULAPI -D_GNU_SOURCE -Os
> -DLOCALE_DIR=3D\"/usr/shar=
> > e/locale\" -DPACKAGE=3D\"emc2\"=A0</div>
> > <div>../lib/librs274.so.0: undefined reference to
> `STRAIGHT_TRAVERSE2(int, =
> > double, double, double, double, double, double, double, double,
> double)'=
> > ;</div><div>collect2: ld returned 1 exit status</div><div><br></div><div>
> > I must be doing something wrong but I can not for the life of me figure
> out=
> > what it is. =A0My implementation of STRAIGHT_TRAVERSE2 is right below
> the =
> > code for STRAIGHT_TRAVERSE in emccanon.cc and my external declaration for
> S=
> > TRAIGHT_TRAVERSE2 is right below the external declaration for
> STRAIGHT_TRAV=
> > ERSE in canon.hh . =A0</div>
> > <div><br></div><div>Anybody suggest anything I can try? =A0I really
> don'=
> > ;t understand why the linker is saying undefined reference when it is
> defin=
> > ed...</div><div><br></div><div>Thanks in
> advance!</div><div><br></div><div>
> > Lawrence</div></div><div><br></div><div><br></div><div><br></div>
> >
> > --001636ed62f85029d7048312ceb1--
> >
> >
>
>
>
> --
>
>
>
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers