[Rcpp-devel] Error Qt C++, RInside

Jodi Jhouranda Siregar 11.6729 at stis.ac.id
Fri Dec 26 14:46:29 CET 2014


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 <edd at 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 at lists.r-forge.r-project.org
> | https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>
> --
> 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/20141226/62852f8b/attachment.html>


More information about the Rcpp-devel mailing list