Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Link Matlab Libraries with Eclipse
Link Matlab Libraries with Eclipse [message #1808600] Thu, 27 June 2019 16:30 Go to next message
Akshayaa Pandiyan is currently offline Akshayaa PandiyanFriend
Messages: 1
Registered: June 2019
Junior Member
I trying to call MatLAB from my C++ code for visualising my results (basically for live plotting), and using Eclipse as my C++ IDE. The following steps are done:

1. Included header path : Project Properties>> C/C++ Build>> GCC C++ Compiler >> Includes >> added paths to -I

2. Included Library path: Project Properties>> C/C++ Build>> MinGW C++ Linker>> Libraries>> added paths to -L

3. Added libraries: Project Properties>> C/C++ Build>> MinGW C++ Linker>> Libraries>> added libraries to -l

My command line has:
g++ "-LC:\\matlab\\R2018b\\extern\\lib\\win64\\mingw64" -o MinCircle.exe MainMin.o -llibMatlabEngine.lib -llibmat.lib

And I get the following error:
C:/MinGW-64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe:cannot find -llibMatlabEngine.lib

C:/MinGW-64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe:cannot find -llibmat.lib

C:/MinGW-64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe:cannot find -llibeng.lib

Which, I guess, means that it is searching for the matlab libraries in the MinGW lib folder. Have I missed a step to link the libraries to matlab lib folder?

Matlab version: 2018b Eclipse version: 2019-03 (4.11.0)

Re: Link Matlab Libraries with Eclipse [message #1808630 is a reply to message #1808600] Fri, 28 June 2019 04:59 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33081
Registered: July 2009
Senior Member
You'll probably get more specific help for this on the CDT forum:

Ed Merks
Professional Support:
Previous Topic:Arduino Due Native USB Port
Next Topic:[Eclipse][SAP IDM] Bug on display tasks
Goto Forum:

Current Time: Fri Mar 01 14:17:45 GMT 2024

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

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

Back to the top