MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Problem runnin external C++ program from MATLAB 

Subject: Problem runnin external C++ program from MATLAB From: Thomas Humphries Date: 22 Jan, 2008 21:52:02 Message: 1 of 18 
I am having a bit of an odd problem with an old (about 5 
Subject: Problem runnin external C++ program from MATLAB From: luquesky luque Date: 17 Apr, 2008 18:50:18 Message: 2 of 18 
Any program compiled with GCC 4.2, requires GLIBC++ 3.4.9 to 
Subject: Problem runnin external C++ program from MATLAB From: luquesky luque Date: 17 Apr, 2008 18:50:19 Message: 3 of 18 
Any program compiled with GCC 4.2, requires GLIBC++ 3.4.9 to 
Subject: Problem runnin external C++ program from MATLAB From: jr74 Date: 23 Apr, 2008 09:49:25 Message: 4 of 18 
HI! 
Subject: Problem runnin external C++ program from MATLAB From: Dag Lindbo Date: 11 Jun, 2008 08:32:02 Message: 5 of 18 
Hello! 
Subject: Problem runnin external C++ program from MATLAB From: jr74 Date: 23 Jun, 2008 16:35:47 Message: 6 of 18 
HI! 
Subject: Problem runnin external C++ program from MATLAB From: Alexandre Date: 24 Jul, 2008 18:57:01 Message: 7 of 18 
jr74 <jan_ruebel@yahoo.de> wrote in message 
Subject: Problem runnin external C++ program from MATLAB From: Dario Meluzzi Date: 8 Aug, 2008 23:24:01 Message: 8 of 18 
I had the same problem when using g++4.2 to compile a MEX 
Subject: Problem runnin external C++ program from MATLAB From: Dario Meluzzi Date: 8 Aug, 2008 23:25:04 Message: 9 of 18 
I had the same problem when using g++4.2 to compile a MEX 
Subject: Problem runnin external C++ program from MATLAB From: Jeff Perry Date: 24 Feb, 2009 16:34:01 Message: 10 of 18 
I solved this by unsetting EV's when I spawn the shell. 
Subject: Problem runnin external C++ program from MATLAB From: Jasper Date: 30 Oct, 2009 12:14:05 Message: 11 of 18 
I indeed encountered the same problem but have a (maybe) easier solution. 
Subject: Problem runnin external C++ program from MATLAB From: Ronan Date: 4 Aug, 2010 13:03:04 Message: 12 of 18 
I have the same problem for one year now and I wonder if there are some news about it.. 
Subject: Problem runnin external C++ program from MATLAB From: Ronan Date: 5 Aug, 2010 12:30:26 Message: 13 of 18 
In my case, setting LDPATH_PREFIX or LD_PREFIX_PATH in .matlab7rc.sh did not work. 
Subject: Problem runnin external C++ program from MATLAB From: Brian Date: 24 Jan, 2011 21:11:04 Message: 14 of 18 
Compiling outside of matlab 
Subject: Problem runnin external C++ program from MATLAB From: Brian Date: 24 Jan, 2011 21:38:03 Message: 15 of 18 
One other note from my post above. My GP_Loader dll loads my other plugin dlls and use of LD_LIBRARY_PATH works for GP_Loader to dynamically load my .so files. 
Subject: Problem runnin external C++ program from MATLAB From: JustLikeU2 Date: 5 Mar, 2011 19:02:43 Message: 16 of 18 
Great, finally I have the solution to this bloody problem!! Thanks Brian! This one worked for me, too, whilst all other solutions stated above did not. From now on I use this command to start Matlab: 
Subject: Problem runnin external C++ program from MATLAB From: Gerard Date: 11 May, 2011 09:44:05 Message: 17 of 18 
Hi, 
Subject: Problem runnin external C++ program from MATLAB From: Yogesh Date: 15 Nov, 2011 14:29:14 Message: 18 of 18 
Hello ! 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.