I got this error when i create simple gui with RInside, any solution? 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" -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20141226/7f9a8f3d/attachment.html>
[Rcpp-devel] Error Qt C++, RInside
5 messages · Jodi Jhouranda Siregar, Dirk Eddelbuettel
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
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>
On 26 December 2014 at 20:46, Jodi Jhouranda Siregar wrote:
| 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.
Please take a moment and read the email I sent earlier. I have the feeling
you are not answering the question I asked you there.
You are linking the wrong way.
If you don't know what that means, please do
cd inst/examples/qt
qmake
make
which I just did (Ubuntu 14.10) and it still worked, as it has pretty much
every day since this was first written, several Ubuntu releases and Rcpp +
RInside versions ago.
Dirk
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
thanks, now everythings just work. i really need your advise. my team is in developing a software for spatial analysis and we use r as it's backend(for our undergraduate thesis). we still discussing what is the best way to embed R in our software. is RInside enough? so we can use every package that provided in R especially in term of spatial analysis. Regards, jodi jhouranda siregar. University of Statistics Indonesia, Faculty of computational statistics.
On Fri, Dec 26, 2014 at 9:35 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
On 26 December 2014 at 20:46, Jodi Jhouranda Siregar wrote:
| 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.
Please take a moment and read the email I sent earlier. I have the feeling
you are not answering the question I asked you there.
You are linking the wrong way.
If you don't know what that means, please do
cd inst/examples/qt
qmake
make
which I just did (Ubuntu 14.10) and it still worked, as it has pretty much
every day since this was first written, several Ubuntu releases and Rcpp +
RInside versions ago.
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/20141226/54701a1d/attachment-0001.html>