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. thanks
On Fri, Dec 26, 2014 at 8:41 PM, Dirk Eddelbuettel <e...@debian.org> wrote: > > On 26 December 2014 at 20:24, Jodi Jhouranda Siregar wrote: > | I got this error when i create simple gui with RInside, any solution? > > Not until you also show us how you called this. > > You clearly seem to linking the wrong way. Try the _supplied and tested_ > Makefile, please. > > Dirk > > | thanks. > | > | main.o: In function `main': > | > | /home/jodi/build-RInsideTry-Desktop_Qt_5_3_GCC_32bit-Debug/../RInsideTry/ > | main.cpp:6: undefined reference to `RInside::RInside(int, char const* > const*, > | bool, bool, bool)' > | > | /home/jodi/build-RInsideTry-Desktop_Qt_5_3_GCC_32bit-Debug/../RInsideTry/ > | main.cpp:14: undefined reference to `RInside::~RInside()' > | > | /home/jodi/build-RInsideTry-Desktop_Qt_5_3_GCC_32bit-Debug/../RInsideTry/ > | main.cpp:14: undefined reference to `RInside::~RInside()' > | > | main.o: In function `Rcpp::Rstreambuf<true>::xsputn(char const*, int)': > | > | /home/jodi/R/i686-pc-linux-gnu-library/3.0/Rcpp/include/Rcpp/iostream/ > | Rstreambuf.h:61: undefined reference to `Rprintf' > | > | main.o: In function `Rcpp::Rstreambuf<false>::xsputn(char const*, int)': > | > | /home/jodi/R/i686-pc-linux-gnu-library/3.0/Rcpp/include/Rcpp/iostream/ > | Rstreambuf.h:65: undefined reference to `REprintf' > | > | main.o: In function `Rcpp::Rstreambuf<true>::overflow(int)': > | > | /home/jodi/R/i686-pc-linux-gnu-library/3.0/Rcpp/include/Rcpp/iostream/ > | Rstreambuf.h:70: undefined reference to `Rprintf' > | > | main.o: In function `Rcpp::Rstreambuf<false>::overflow(int)': > | > | /home/jodi/R/i686-pc-linux-gnu-library/3.0/Rcpp/include/Rcpp/iostream/ > | Rstreambuf.h:74: undefined reference to `REprintf' > | > | main.o: In function `Rcpp::Rstreambuf<true>::sync()': > | > | /home/jodi/R/i686-pc-linux-gnu-library/3.0/Rcpp/include/Rcpp/iostream/ > | Rstreambuf.h:79: undefined reference to `R_FlushConsole' > | > | main.o: In function `Rcpp::Rstreambuf<false>::sync()': > | > | /home/jodi/R/i686-pc-linux-gnu-library/3.0/Rcpp/include/Rcpp/iostream/ > | Rstreambuf.h:83: undefined reference to `R_FlushConsole' > | > | collect2: error: ld returned 1 exit status > | > | make: *** [RinsideProject] Error 1 > | > | 20:17:23: The process "/usr/bin/make" exited with code 2. > | > | Error while building/deploying project RInsideTry (kit: Desktop Qt 5.3 > GCC > | 32bit) > | > | When executing step "Make" > | > | _______________________________________________ > | Rcpp-devel mailing list > | Rcpp-devel@lists.r-forge.r-project.org > | https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel > > -- > http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org >
_______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel