Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Can not find library file(dll) of rinside under eclipse+cygwin(Embedding rinside in c++ program)
Can not find library file(dll) of rinside under eclipse+cygwin [message #1710883] Sat, 10 October 2015 08:35
chenk lanj is currently offline chenk lanjFriend
Messages: 1
Registered: October 2015
Junior Member
I've written a short program to embed rinside api of R programming package on eclipse with cdt and cygwin linker.
Before building and linking, I add include and library folder and files in C/C++ General, as in Project->Properties->C/C++ Builder->Paths and Symbols
1) add include folders in GUN C++
eg.D:\softwares\R\R-3.2.2\library\RInside\include which is Rinside package in my computer
2) add library folders and file :
Libraries: libRinside,R,Rinside
Library Paths: D:\softwares\R\R-3.2.2\library\RInside\libs\i386; D:\softwares\R\R-3.2.2\bin\i386

During compiling, No error for building,but for linking ,it appears in consoles:

15:52:31 **** Build of configuration Debug for project FirstProject ****
make all
Building file: ../Hello.cpp
Invoking: Cygwin C++ Compiler
g++ -I"D:\softwares\R\R-3.2.2\library\RInside\include" -I"D:\softwares\R\R-3.2.2\include" -I"D:\softwares\R\R-3.2.2\library\Rcpp\include" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"Hello.d" -MT"Hello.d" -o "Hello.o" "../Hello.cpp"
Finished building: ../Hello.cpp

Building target: FirstProject.exe
Invoking: Cygwin C++ Linker
g++ -LD:\softwares\R\R-3.2.2\library\RInside\libs\i386 -LD:\softwares\R\R-3.2.2\bin\i386 -o "FirstProject.exe" ./Hello.o -llibRinside -lR -lRInside
/usr/lib/gcc/i686-pc-cygwin/4.9.3/../../../../i686-pc-cygwin/bin/ld: cannot find -llibRinside
/usr/lib/gcc/i686-pc-cygwin/4.9.3/../../../../i686-pc-cygwin/bin/ld: cannot find -lR
/usr/lib/gcc/i686-pc-cygwin/4.9.3/../../../../i686-pc-cygwin/bin/ld: cannot find -lRInside
collect2: error: ld returned 1 exit status
makefile:44: recipe for target 'FirstProject.exe' failed
make: *** [FirstProject.exe] Error 1

15:53:56 Build Finished (took 1m:24s.953ms)



How to solve this problem, many thanks.
Previous Topic:how to debug a program with root priviledge on eclipse CDT?
Next Topic:Urgent help with invalid project path: duplicate path etc
Goto Forum:
  


Current Time: Fri Apr 26 20:54:54 GMT 2024

Powered by FUDForum. Page generated in 0.02551 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top