<div dir="ltr"><div>Dirk,<br><br></div><div>  SInce I wrote you this afternoon, I upgraded to R 2.15.3 and got version 0.10.3 of rcpp and <br>0.2.10 of Rinside. I am using ubuntu 12.04 LTS, with g++4.7.2 and Qt 5.0.1 in Qt creator 2.6.2<br>

</div><div>(the first few lines of the makefile generated by qmake are at the end of this message)<br></div><div><br>  Now rinsides's qtdensity example does not work anymore, for two reasons:<br></div><div>1) The file main.cpp does not compile. It is easy to fix this by addng <br>

these four lines to main.cpp:<br><br>#include <QLineEdit><br>#include <QGroupBox><br>#include <QRadioButton><br>#include <QButtonGroup><br></div><div><br></div><div>I guess these files are included via <qtGui> in your machine.<br>

<br></div><div>2) There is a link problem: <br><br></div><div>/usr/local/lib/R/site-library/RInside/lib/libRInside.so:-1: error: undefined reference to `Rcpp::Language::update()'<br><br></div><div>which I do not now how to solve. What should I do?<br>

<br></div><div>Once you tell me how to fix this I will build an example with qt in which I<br></div><div>use Rcpp to reproduce the results in a finance paper which were obtained<br>originally in matlab. I believe it will be a neat example of the use of Rcpp<br>

</div><div>(and I want to look very carefully at this article anyway)<br><br></div>Here are the first lines of the makefile:<br><br>##############################<div>###############################################<br># Makefile for building: qtdensity<br>

# Generated by qmake (3.0) (Qt 5.0.1) on: Fri Mar 29 21:33:20 2013<br># Project:  /usr/local/lib/R/site-library/RInside/examples/qt/<a href="http://qtdensity.pro" target="_blank">qtdensity.pro</a><br># Template: app<br># Command: /home/walter/qt.5.0.1/5.0.1/gcc_64/bin/qmake
 -spec linux-g++-64 CONFIG+=debug CONFIG+=declarative_debug 
CONFIG+=qml_debug QMAKE_CXX=g++-4.7 QMAKE_CXXFLAGS+=-std=c++11 -o 
Makefile /usr/local/lib/R/site-library/RInside/examples/qt/<a href="http://qtdensity.pro" target="_blank">qtdensity.pro</a><br>
#############################################################################<br><br>MAKEFILE      = Makefile<br><br>####### Compiler, tools and options<br><br>CC            = gcc<br>CXX           = g++-4.7<br>DEFINES       = -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB<br>

CFLAGS        = -m64 -pipe -g -Wall -W -D_REENTRANT -fPIE $(DEFINES)<br>CXXFLAGS      = -m64 -pipe -std=c++11 -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/include -I/usr/local/lib/R/site-library/RInside/include -g -Wall -W -D_REENTRANT -fPIE $(DEFINES)<br>

INCPATH       = -I../../../../qt.5.0.1/5.0.1/gcc_64/mkspecs/linux-g++-64 -I/usr/local/lib/R/site-library/RInside/examples/qt -I../../../../qt.5.0.1/5.0.1/gcc_64/include -I../../../../qt.5.0.1/5.0.1/gcc_64/include/QtSvg -I../../../../qt.5.0.1/5.0.1/gcc_64/include/QtWidgets -I../../../../qt.5.0.1/5.0.1/gcc_64/include/QtGui -I../../../../qt.5.0.1/5.0.1/gcc_64/include/QtCore -I. -I.<br>

LINK          = g++<br>LFLAGS        = -m64 -Wl,-rpath,/home/walter/qt.5.0.1/5.0.1/gcc_64 -Wl,-rpath,/home/walter/qt.5.0.1/5.0.1/gcc_64/lib<br>LIBS          = $(SUBLIBS) -L/usr/X11R6/lib64 -L/usr/lib/R/lib -lR -lblas -llapack -L/usr/local/lib/R/site-library/RInside/lib -lRInside -Wl,-rpath,/usr/local/lib/R/site-library/RInside/lib -L/usr/local/lib/R/site-library/Rcpp/lib -lRcpp -Wl,-rpath,/usr/local/lib/R/site-library/Rcpp/lib -L/home/walter/qt.5.0.1/5.0.1/gcc_64/lib -lQt5Svg -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread <br>

AR            = ar cqs<br>RANLIB        = <br>QMAKE         = /home/walter/qt.5.0.1/5.0.1/gcc_64/bin/qmake<br>TAR           = tar -cf<br>COMPRESS      = gzip -9f<br>COPY          = cp -f<br>SED           = sed<br>COPY_FILE     = cp -f<br>

COPY_DIR      = cp -f -R<br>STRIP         = strip<br>INSTALL_FILE  = install -m 644 -p<br>INSTALL_DIR   = $(COPY_DIR)<br>INSTALL_PROGRAM = install -m 755 -p<br>DEL_FILE      = rm -f<br>SYMLINK       = ln -f -s<br>DEL_DIR       = rmdir<br>

MOVE          = mv -f<br>CHK_DIR_EXISTS= test -d<br>MKDIR         = mkdir -p<div class=""><div id=":1fh" class="" tabindex="0"><img class="" src="https://mail.google.com/mail/images/cleardot.gif"></div></div></div></div>