<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">I use netbeans to build Qt applications and uses MinGW as compiler. But I have not been able to resolve this error:<br><br>build/Debug/MinGW-Windows/qtdensity.o: In function `ZN4Rcpp10RstreambufILb1EE6xsputnEPKci':</div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">C:\Users\Yusfil Pulungan\Documents\NetBeansProjects\QtRTest/../../../../..<font color="#cd232c" id="yui_3_16_0_1_1421960081512_5593">/Program Files/R/R-3.1.2/library/Rcpp/include/Rcpp/iostream/Rstreambuf.h:61: undefined reference to `Rprintf'</font></div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">build/Debug/MinGW-Windows/qtdensity.o: In function `ZN4Rcpp10RstreambufILb0EE6xsputnEPKci':</div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">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'</div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">build/Debug/MinGW-Windows/qtdensity.o: In function `ZN4Rcpp10RstreambufILb1EE8overflowEi':</div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">nbproject/qt-Debug.mk:78: recipe for target `dist/Debug/MinGW-Windows/QtRTest.exe' failed</div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">C:\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'</div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">make.exe[2]: Leaving directory `/c/Users/Yusfil Pulungan/Documents/NetBeansProjects/QtRTest'</div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">build/Debug/MinGW-Windows/qtdensity.o: In function `ZN4Rcpp10RstreambufILb0EE8overflowEi':</div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">nbproject/Makefile-Debug.mk:66: recipe for target `.build-conf' failed</div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">C:\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'</div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">make.exe[1]: Leaving directory `/c/Users/Yusfil Pulungan/Documents/NetBeansProjects/QtRTest'</div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">build/Debug/MinGW-Windows/qtdensity.o: In function `ZN4Rcpp10RstreambufILb1EE4syncEv':</div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">nbproject/Makefile-impl.mk:39: recipe for target `.build-impl' failed</div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">C:\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'</div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">build/Debug/MinGW-Windows/qtdensity.o: In function `ZN4Rcpp10RstreambufILb0EE4syncEv':</div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">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'</div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">collect2.exe: error: ld returned 1 exit status</div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">make.exe[2]: *** [dist/Debug/MinGW-Windows/QtRTest.exe] Error 1</div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">make.exe[1]: *** [.build-conf] Error 2</div><div id="yui_3_16_0_1_1421960081512_4703"></div><div id="yui_3_16_0_1_1421960081512_4703" class="" style="">make.exe": *** [.build-impl] Error 2</div><div id="yui_3_16_0_1_1421960081512_4703" class="" style=""><br></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Friday, 23 January 2015, 2:52, Dirk Eddelbuettel <edd@debian.org> wrote:<br> </font> </div>  <br><br> <div class="y_msg_container"><div class="yqt9365785799" id="yqtfd98859"><br clear="none">On 22 January 2015 at 19:28, Yusfil Khoir Pulungan wrote:<br clear="none">| I get this error when making simple GUI using RInside, Qt, netbeans. How to fix<br clear="none">| it ?</div><br clear="none"><br clear="none">a) I would forget netbeans and used the _supported_ and _shipped_ qmake /<br clear="none">   Makefile combination.  I have used this in the past on Windows; I did it<br clear="none">   so far back that I had to build Qt using the MinGW compiler R uses.  That<br clear="none">   gotter, but make sure <br clear="none">   - you use the Qt version for MinGW<br clear="none">   - you use the correct Rtools etc pp and get lucky that it plays along with Qt<br clear="none"><br clear="none">b) You use the cmake files contributed by Peter, and also shipped. These<br clear="none">   should work too, but I am less familar with them.<br clear="none"><br clear="none">Dirk<br clear="none"><br clear="none">-- <br clear="none"><a shape="rect" href="http://dirk.eddelbuettel.com/" target="_blank">http://dirk.eddelbuettel.com </a>| @eddelbuettel | <a shape="rect" ymailto="mailto:edd@debian.org" href="mailto:edd@debian.org">edd@debian.org</a><div class="yqt9365785799" id="yqtfd37549"><br clear="none"></div><br><br></div>  </div> </div>  </div> </div></body></html>