<div dir="ltr">the code is same as what you give in qt and c++ example, i just follow it step by step. and i got those errors.<div>thanks</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 26, 2014 at 8:41 PM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On 26 December 2014 at 20:24, Jodi Jhouranda Siregar wrote:<br>
| I got this error when i create simple gui with RInside, any solution?<br>
<br>
</span>Not until you also show us how you called this.<br>
<br>
You clearly seem to linking the wrong way. Try the _supplied and tested_<br>
Makefile, please.<br>
<br>
Dirk<br>
<div><div class="h5"><br>
| thanks.<br>
|<br>
| main.o: In function `main':<br>
|<br>
| /home/jodi/build-RInsideTry-Desktop_Qt_5_3_GCC_32bit-Debug/../RInsideTry/<br>
| main.cpp:6: undefined reference to `RInside::RInside(int, char const* const*,<br>
| bool, bool, bool)'<br>
|<br>
| /home/jodi/build-RInsideTry-Desktop_Qt_5_3_GCC_32bit-Debug/../RInsideTry/<br>
| main.cpp:14: undefined reference to `RInside::~RInside()'<br>
|<br>
| /home/jodi/build-RInsideTry-Desktop_Qt_5_3_GCC_32bit-Debug/../RInsideTry/<br>
| main.cpp:14: undefined reference to `RInside::~RInside()'<br>
|<br>
| main.o: In function `Rcpp::Rstreambuf<true>::xsputn(char const*, int)':<br>
|<br>
| /home/jodi/R/i686-pc-linux-gnu-library/3.0/Rcpp/include/Rcpp/iostream/<br>
| Rstreambuf.h:61: undefined reference to `Rprintf'<br>
|<br>
| main.o: In function `Rcpp::Rstreambuf<false>::xsputn(char const*, int)':<br>
|<br>
| /home/jodi/R/i686-pc-linux-gnu-library/3.0/Rcpp/include/Rcpp/iostream/<br>
| Rstreambuf.h:65: undefined reference to `REprintf'<br>
|<br>
| main.o: In function `Rcpp::Rstreambuf<true>::overflow(int)':<br>
|<br>
| /home/jodi/R/i686-pc-linux-gnu-library/3.0/Rcpp/include/Rcpp/iostream/<br>
| Rstreambuf.h:70: undefined reference to `Rprintf'<br>
|<br>
| main.o: In function `Rcpp::Rstreambuf<false>::overflow(int)':<br>
|<br>
| /home/jodi/R/i686-pc-linux-gnu-library/3.0/Rcpp/include/Rcpp/iostream/<br>
| Rstreambuf.h:74: undefined reference to `REprintf'<br>
|<br>
| main.o: In function `Rcpp::Rstreambuf<true>::sync()':<br>
|<br>
| /home/jodi/R/i686-pc-linux-gnu-library/3.0/Rcpp/include/Rcpp/iostream/<br>
| Rstreambuf.h:79: undefined reference to `R_FlushConsole'<br>
|<br>
| main.o: In function `Rcpp::Rstreambuf<false>::sync()':<br>
|<br>
| /home/jodi/R/i686-pc-linux-gnu-library/3.0/Rcpp/include/Rcpp/iostream/<br>
| Rstreambuf.h:83: undefined reference to `R_FlushConsole'<br>
|<br>
| collect2: error: ld returned 1 exit status<br>
|<br>
| make: *** [RinsideProject] Error 1<br>
|<br>
| 20:17:23: The process "/usr/bin/make" exited with code 2.<br>
|<br>
| Error while building/deploying project RInsideTry (kit: Desktop Qt 5.3 GCC<br>
| 32bit)<br>
|<br>
| When executing step "Make"<br>
|<br>
</div></div>| _______________________________________________<br>
| Rcpp-devel mailing list<br>
| <a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
| <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a><br>
</font></span></blockquote></div><br></div>