Re: [info-performer] unresolved refs on redhat 7.3 with performer 3.0.1

Date view Thread view Subject view Author view

From: Tom Flynn (flynnt++at++engr.sgi.com)
Date: 06/12/2003 14:50:15


with the gcc2 version of Performer, you must compile your c++ optimized,
even if you're compiling debug. this is a bug with that series of
compilers. it is not necessary to do this with gcc3.
-tom

On Thu, 12 Jun 2003, Pete Woodward Woodward wrote:

> Hello,
>
> I'm having problems linking for my basic performer
> application.Basically there are unresolved references to standard
> pfCalls. Not all, only some are not found...???
>
> The outline code is below, the other salient details are included.
>
> Anybody with that little nugget of information that resolves
> this prob. ?
>
> Ta,
>
> Pete Woodward
>
> --------------Detailed Information Below------------------------
>
>
> errors:
> -------
> mainwin.o: In function `mainWin::buildDisplayConfig(void)':
> .../mainwin.cpp:71: undefined reference to `pfNewPWin(pfPipe *)'
> .../mainwin.cpp:74: undefined reference to `pfNewChan(pfPipe *)'
> .../mainwin.cpp:78: undefined reference to `pfAddChan(pfPipeWindow *,
> pfChannel *)'
> .../mainwin.cpp:81: undefined reference to `pfOpenPWin(pfPipeWindow *)'
>
> os:
> ---
> redhat 7.3
>
> compiler version gcc/c++ ver 2.96
> ---------------------------------
>
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
> gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)
>
> performer header/version
> ------------------------
> pf.h
> * $Revision: 1.460 $
> * $Date: 2002/10/28 23:22:57 $
>
> performer version 3.0.1
> gcc 2 version execution/developement environments
>
>
>
> The outline of the code is below, with the command lines used to
> compile/link
> the modules together.
>
>
> pfInit()
>
> pfConfig()
>
>
> // acquire handle pipe number 0
> pfPipe *pipe = pfGetPipe(0);
>
> // create pipe window and associate it with the pipe
> pfPipeWindow *pwin = pfNewPWin(pipe);
>
> // create channel and associate it with the pipe
> pfChannel *chan = pfNewChan(pipe);
>
> //associate channel and
> // pipe window so channel is drawn in it
> pfAddChan(pwin, chan);
>
> //open window at next frame
> pfOpenPWin(pwin);
> pfFrame();
>
> c++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -O0 -g3 -Wall -DI386 -DLinux
> -DHAVE_POSIX -I/usr/include/CC -I/usr/include -I/usr/include/g++
> -fno-exceptions -fno-check-new -c mainwin.cpp
> c++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -O0 -g3 -Wall -DI386 -DLinux
> -DHAVE_POSIX -I/usr/include/CC -I/usr/include -I/usr/include/g++
> -fno-exceptions -fno-check-new -c main.cpp
> c++ -O2 -O0 -g3 -Wall -DI386 -DLinux -DHAVE_POSIX -I/usr/include/CC
> -I/usr/include -I/usr/include/g++ -fno-exceptions -fno-check-new -o
> mainwin mainwin.o main.o -L/usr/lib -L/usr/lib/libpfdb -L/lib
> -L/usr/X11R6/lib -lpfv -lpfdu -lpfutil -lpfdu -lpfui -lpf -lX11
> mainwin.o: In function `mainWin::buildDisplayConfig(void)':
> /home/petew/project/mainwin/mainwin/mainwin.cpp:71: undefined reference to
> `pfNewPWin(pfPipe *)'
> /home/petew/project/mainwin/mainwin/mainwin.cpp:74: undefined reference to
> `pfNewChan(pfPipe *)'
> /home/petew/project/mainwin/mainwin/mainwin.cpp:78: undefined reference to
> `pfAddChan(pfPipeWindow *, pfChannel *)'
> /home/petew/project/mainwin/mainwin/mainwin.cpp:81: undefined reference to
> `pfOpenPWin(pfPipeWindow *)'
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
>

--
"Mongooses are famous for their snake-fighting ability, and are
 almost always victorious because of their speed, agility, and timing
 and also because of their thick coat."


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Jun 12 2003 - 14:51:03 PDT