Collision/Compiling Problems

New Message Reply Date view Thread view Subject view Author view

Payton White (va90sap++at++sgva-xs4.ucsd.edu)
Fri, 6 May 1994 10:30:12 -0800 (PDT)


        I am having some problems getting collision detection to work
in a simulation that I am writing using Performer 1.2. Considering that
the faq and release notes warned that the pfuCollide functions are
jumpy I set out writing my own. After implementing simple terrain
following (just like pfuCollideGrnd returning zpr) I decided to test
out the pfu version. Here's the problem:

        When I compile my code that calls pfNodeTravMask, pfSegsIsectNode and
pfQueryHit everything goes nicely and I have great performance.

        When I try to use the pfuCollideGrnd function as a replacement
with all of the same links (including a link to libpfutil.a) and all of
the same includes (including #include "/usr/src/Performer/include/pfutil.h")
I get the following:

cc pfobj2.o vrnav.o pftri.o vr.o -o vr -xansi -D__STDC__ -I. -I..
-I/usr/src/Performer/include -I/usr/include/Performer /usr/lib/libpf.a
/usr/src/Performer/lib/libpfutil.a /usr/lib/libpr.a -lmpc -limage -lfm
-lgl_s -lX11 -lm -lfpe -lC

/usr/bin/ld:
Undefined:
pfNodeTravMask
pfMQueryHit
pfSegsIsectNode
pfQueryHit
*** Error code 1

Stop.

So almost identical versions of code are having problems finding functions
that should be easily found. This isn't the first time I have had a
problem with mysteriously undefined functions (just the most frustrating).
Obviously I have overlooked some small something, or we have installed
Performer incorrectly.

Any insight is greatly appreciated.

       -- Visualization << SGI >> Simulation --
Payton R. White __ __ __
prwhite++at++ucsd.edu / / /_/ _/ /_
       ______ _____ __ __ / /___ __ / __/______
      / __ // .__// /__/ // __ // / / / / ____/
     / /_/ // / / _ // / / // /_ / /_ / __/_
    / ____//_/ \_/ \_//_/ /_//___/ /___//_____/
   / /When the going gets weird, the weird turn pro.
  /_/ - Hunter S. Thompson


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:16 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.