[Rcpp-devel] RInside and Qt Error

Yusfil Khoir Pulungan yusfil_r at yahoo.com
Thu Jan 22 22:01:18 CET 2015


I use netbeans to build Qt applications and uses MinGW as compiler. But I have not been able to resolve this error:

build/Debug/MinGW-Windows/qtdensity.o: In function `ZN4Rcpp10RstreambufILb1EE6xsputnEPKci':C:\Users\Yusfil Pulungan\Documents\NetBeansProjects\QtRTest/../../../../../Program Files/R/R-3.1.2/library/Rcpp/include/Rcpp/iostream/Rstreambuf.h:61: undefined reference to `Rprintf'build/Debug/MinGW-Windows/qtdensity.o: In function `ZN4Rcpp10RstreambufILb0EE6xsputnEPKci':C:\Users\Yusfil Pulungan\Documents\NetBeansProjects\QtRTest/../../../../../Program Files/R/R-3.1.2/library/Rcpp/include/Rcpp/iostream/Rstreambuf.h:65: undefined reference to `REprintf'build/Debug/MinGW-Windows/qtdensity.o: In function `ZN4Rcpp10RstreambufILb1EE8overflowEi':nbproject/qt-Debug.mk:78: recipe for target `dist/Debug/MinGW-Windows/QtRTest.exe' failedC:\Users\Yusfil Pulungan\Documents\NetBeansProjects\QtRTest/../../../../../Program Files/R/R-3.1.2/library/Rcpp/include/Rcpp/iostream/Rstreambuf.h:70: undefined reference to `Rprintf'make.exe[2]: Leaving directory `/c/Users/Yusfil Pulungan/Documents/NetBeansProjects/QtRTest'build/Debug/MinGW-Windows/qtdensity.o: In function `ZN4Rcpp10RstreambufILb0EE8overflowEi':nbproject/Makefile-Debug.mk:66: recipe for target `.build-conf' failedC:\Users\Yusfil Pulungan\Documents\NetBeansProjects\QtRTest/../../../../../Program Files/R/R-3.1.2/library/Rcpp/include/Rcpp/iostream/Rstreambuf.h:74: undefined reference to `REprintf'make.exe[1]: Leaving directory `/c/Users/Yusfil Pulungan/Documents/NetBeansProjects/QtRTest'build/Debug/MinGW-Windows/qtdensity.o: In function `ZN4Rcpp10RstreambufILb1EE4syncEv':nbproject/Makefile-impl.mk:39: recipe for target `.build-impl' failedC:\Users\Yusfil Pulungan\Documents\NetBeansProjects\QtRTest/../../../../../Program Files/R/R-3.1.2/library/Rcpp/include/Rcpp/iostream/Rstreambuf.h:79: undefined reference to `R_FlushConsole'build/Debug/MinGW-Windows/qtdensity.o: In function `ZN4Rcpp10RstreambufILb0EE4syncEv':C:\Users\Yusfil Pulungan\Documents\NetBeansProjects\QtRTest/../../../../../Program Files/R/R-3.1.2/library/Rcpp/include/Rcpp/iostream/Rstreambuf.h:83: undefined reference to `R_FlushConsole'collect2.exe: error: ld returned 1 exit statusmake.exe[2]: *** [dist/Debug/MinGW-Windows/QtRTest.exe] Error 1make.exe[1]: *** [.build-conf] Error 2make.exe": *** [.build-impl] Error 2
 

     On Friday, 23 January 2015, 2:52, Dirk Eddelbuettel <edd at debian.org> wrote:
   

 
On 22 January 2015 at 19:28, Yusfil Khoir Pulungan wrote:
| I get this error when making simple GUI using RInside, Qt, netbeans. How to fix
| it ?

a) I would forget netbeans and used the _supported_ and _shipped_ qmake /
  Makefile combination.  I have used this in the past on Windows; I did it
  so far back that I had to build Qt using the MinGW compiler R uses.  That
  gotter, but make sure 
  - you use the Qt version for MinGW
  - you use the correct Rtools etc pp and get lucky that it plays along with Qt

b) You use the cmake files contributed by Peter, and also shipped. These
  should work too, but I am less familar with them.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org


   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150122/66d205b5/attachment.html>


More information about the Rcpp-devel mailing list