[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libstdc++ linking problem
From: |
michele |
Subject: |
libstdc++ linking problem |
Date: |
Sat, 05 Feb 2005 10:41:58 GMT |
User-agent: |
Mozilla Thunderbird 1.0 (X11/20041206) |
I hope that this message wouldn't be OT. If so, please, tell me where to
post... :)
I am compiling a simple application of a package, (vrjuggler, a virtual
reality suite). My configuration is a Mandrake 10.1 with gcc 3.4.1
When i link the .o files (i am not epert programmer, i just use make)
there is a warning message:
the libstdc++.so.5 may conflict with libstdc++.so.6 one.
How can i "say" to the compiler to use the libstdc++.so.5 library? I
found it in my /usr/lib path, bath i am not able to link.
I would really appreciate ANY kind of help. Thanks
PS:
this is the content of the makefile:
//comments
all: osgNav
APP_NAME= osgNav
# Basic options.
srcdir= .
SRCS= OsgNav.cpp main.cpp
NO_DEPEND= YES
include $(VJ_BASE_DIR)/share/vrjuggler/vrj.appdefs.mk
include $(DZR_BASE_DIR)/ext/vrjuggler/dzr.vrjuggler.glapp.mk
include $(DZR_BASE_DIR)/ext/tweek/dzr.tweek.mk
EXTRA_INCLUDES+= -I$(OSGHOME)/include
EXTRA_LIBS+= -L$(OSGHOME)/lib -losg -losgDB -losgGA -losgUtil
-lOpenThreads -L/home/michele/lib
CXX_GEN_DIR= .
PYTHON_GEN_DIR= remotenav/Server
vpath %.idl $(srcdir)/remotenav/Subject/idl
vpath %.cpp $(CXX_GEN_DIR)
vpath %.h $(CXX_GEN_DIR)
vpath %.py $(PYTHON_GEN_DIR)
ifeq ($(TWEEK_HAVE_CXX), Y)
CXX_IDL= $(TWEEK_IDL_CXX)
CXX_IDL_OPTS= $(TWEEK_IDLFLAGS_CXX) \
$(TWEEK_IDL_GENDIR_CXX)$(CXX_GEN_DIR)
CXX_IDL_INCLUDES=
EXTRA_CXXFLAGS+= $(TWEEK_CXX_FLAGS)
EXTRA_INCLUDES+= -I$(CXX_GEN_DIR)
EXTRA_LIBS+= $(TWEEK_LIBS) $(TWEEK_EXTRA_LIBS_MIN)
IDL_CXX_FILES= RemoteNavSubject.cpp RemoteNavSubject.h
# Need to not do this unless target is "remote"
SRCS+= RemoteNavSubject.cpp
endif
# Build python stuff
ifeq ($(TWEEK_HAVE_PYTHON), Y)
PYTHON_IDL= $(TWEEK_IDL_PYTHON)
PYTHON_IDL_OPTS= $(TWEEK_IDLFLAGS_PYTHON) \
$(TWEEK_IDL_GENDIR_PYTHON)$(PYTHON_GEN_DIR)
PYTHON_IDL_INCLUDES=
IDL_PYTHON_FILES= RemoteNavSubject_idl.py
endif
#
-----------------------------------------------------------------------------
# Application build targets.
#
-----------------------------------------------------------------------------
all:
$(MAKE) $(APP_NAME)
remote:
$(MAKE) cxx_idl
# $(MAKE) python_idl
$(MAKE) NO_DEPEND=0 cxx
$(MAKE) $(APP_NAME)
# $(MAKE) python
# -$(MAKE) install
osgNav: $(OBJS)
$(LINK) $(LINK_OUT)$@ $(OBJS) $(EXTRA_LIBS) $(LIBS)
cxx_idl: $(IDL_CXX_FILES)
%.cpp %.h: %.idl
$(CXX_IDL) $(CXX_IDL_OPTS) $(CXX_IDL_INCLUDES) $<
python_idl: $(IDL_PYTHON_FILES)
%.py: %.idl
$(PYTHON_IDL) $(PYTHON_IDL_OPTS) $(PYTHON_IDL_INCLUDES) $<
cxx: $(OBJS)
CLEAN_FILES+= $(addprefix $(CXX_GEN_DIR)/, $(IDL_CXX_FILES)) \
$(addprefix $(PYTHON_GEN_DIR)/, $(IDL_PYTHON_FILES))
- libstdc++ linking problem,
michele <=