Hi Vasilii…
vasilii wrote:
sounds like you are mixing up the free gnu c++ libs and the non-free
dinkum c++ libs.
may be. how to avoid it?
You may not have an option.
You indicated that you are using rtp6.2-NC, and it is my understanding
that the NC edition only includes the free GNU libraries. In any case,
see a previous post, and try some of the suggestions already indicated.
If you have your common.mk file setup correctly, you should not have
any problems. Here is a common.mk file that I use as a reference (of
course you will have to change a number of things to fit your needs).
With this common.mk I compile mixed c/c++ programs.
Regards…
Miguel.
/home/dev/src / heli / cand / server
~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
DEV_BASE_HOME / DEV_PRODUCT_NAME/DEV_PROJECT_NAME / DEV_MK_NAME
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DEV_PRODUCT_HOME
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DEV_PROJECT_HOME
ifndef QCONFIG
QCONFIG=qconfig.mk
endif
include $(QCONFIG)
\
-------------- Pre-set macros go here --------------------------
#executable name is: $(DEV_PROJECT_NAME)$(DEV_NAME_SUFFIX)
for example: DEV_PROJECT_NAME = cand, DEV_NAME_SUFFIX = _s
then, executable name = cand_s
DEV_NAME_SUFIX = _s
------------- other specific defines --------------------------
DEV_BASE_HOME
= /home/dev/src
DEV_PRODUCT_NAME = heli
DEV_PROJECT_NAME = cand
DEV_MK_NAME = server
DEV_USE_FILE_NAME = useage.use
DEV_INSTALL_DIR = dev/bin
#--------------------- Include Path --------------------------------
DEV_COMMON_INCLUDE = $(DEV_BASE_HOME)/common/include
DEV_PRODUCT_HOME = $(DEV_BASE_HOME)/$(DEV_PRODUCT_NAME)
DEV_PROJECT_HOME = $(DEV_PRODUCT_HOME)/$(DEV_PROJECT_NAME)
DEV_DEV_INC = $(DEV_BASE_HOME)/utilities/devset/include
DEV_DEV_SRC = $(DEV_BASE_HOME)/utilities/devset/src
DEV_VMIC_INC = $(DEV_BASE_HOME)/utilities/vmic/include
DEV_VMIC_SRC = $(DEV_BASE_HOME)/utilities/vmic/src
DEV_CAN_INC = $(DEV_BASE_HOME)/utilities/can/include
DEV_CAN_SRC = $(DEV_BASE_HOME)/utilities/can/src
#------------------------ C Flags ---------------------------------
CXX = QCC
CCFLAGS += -Wno-reorder
#LDFLAGS += -lrpc
CC_nto_x86_gcc_qcc = QCC -Vgcc_ntox86 -c
EXTRA_INCVPATH += $(DEV_PROJECT_HOME)/include $(DEV_COMMON_INCLUDE)
$(DEV_DEV_INC) $(DEV_VMIC_INC) $(DEV_CAN_INC)
EXTRA_SRCVPATH += $(DEV_PROJECT_HOME)/src $(DEV_DEV_SRC)
$(DEV_VMIC_SRC) $(DEV_CAN_SRC)
\
------------- name + install directory ----------------------------
USEFILE= $(DEV_PROJECT_HOME)/$(DEV_MK_NAME)/$(DEV_USE_FILE_NAME)
INSTALLDIR = $(DEV_INSTALL_DIR)
NAME = $(DEV_PROJECT_NAME)$(DEV_NAME_SUFIX)
------------- post-set macros go here ----------------------------
include $(MKFILES_ROOT)/qtargets.mk
VFLAG_g = -gdwarf-2
–
Thanks
vasilii