C++ pb with linux performer

New Message Reply Date view Thread view Subject view Author view

From: GAUVIN Yves (yves.gauvin++at++sncf.fr)
Date: 08/09/2000 07:04:55


Hello all,

        I try to use VRPN (for the Device) wich is a C++ code with my own
Performer code which is written in C.

I have changed my Makefile to the following :

PFROOT = $(ROOT)
include $(PFROOT)/home/gauvin/sofi/pfmakedefs

UNIQUE = ..
COMMON = /home/gauvin/sofi/source

PFROOT = $(ROOT)

#-- alternate locations for included files
LCXXINCS += \
        -I$(PFROOT)/usr/include/CC \
        -I$(PFROOT)/usr/include/g++-3

LCINCS += \
        -I${UNIQUE} \
        -I${COMMON} \
        -I/usr/lib/glib/include \
        -I/usr/lib/gnome-libs/include \
        -I/home/gauvin/sofi/headers \
        -I/home/gauvin/VRPN/vrpn \

#-- this is a C++ program, so use CC as the linker
LINKERF = $(CXXF)

#-- base name of program
TARGET = sofi

#-- files from which the target is built {some are in the common
directory}
CXXFILES = \
        SOFI_loadxml.c\
        SOFI_main.c \
        SOFI_server.c \
        SOFI_server_utils.c \
        SOFI_driver_space_mouse.c

include $(PFROOT)/home/gauvin/sofi/pfmakerules

I've got the following message when I try to compile:
[gauvin++at++d2r2 sofi]$ make
making OpenGL DSO version of sofi
make[1]: Entering directory `/home/gauvin/sofi/OPT.I386.OPENGL'
/usr/bin/g++ -O -O -Wall -MD -DI386 -DLinux -I/usr/include
-I/usr/include/CC -I/usr/include/g++-3 -I/usr/include
-I/usr/include/g++ -o sofi.DSO -L/usr/lib -L/usr/lib/libpfdb
-L/lib -L/lib -L/usr/lib -lpfdu_ogl -lpfui -lpfuiD -lpfutil_ogl
-lpf_ogl -lglib -lxml -lz -Wl -L/home/gauvin/VRPN/vrpn/pc_linux/
-L/home/gauvin/VRPN/quat -lvrpn -lquat -L/usr/X11R6/lib -lGLU -lGL
-lXext -lXmu -lX11 -lm
/usr/bin/ld: warning: libGLU.so.1, needed by /usr/lib/libpfdu_ogl.so,
may conflict with libGLU.so.3
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [sofi.DSO] Error 1
make[1]: Leaving directory `/home/gauvin/sofi/OPT.I386.OPENGL'
make: *** [sofi.ogldso] Error 2

Does somebody know what to do (I have also add
-L/home/gauvin/VRPN/vrpn/pc_linux/ -L/home/gauvin/VRPN/quat -lvrpn
-lquat in the pfMakedefs)

Cheers,
Yves GAUVIN


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 09 2000 - 07:07:55 PDT

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