Why do I receive a link error from libstdc++.so when I try to compile my application with the MATLAB Compiler 4.0 (R14)?
    1 view (last 30 days)
  
       Show older comments
    
    MathWorks Support Team
    
 on 27 Jun 2009
  
    
    
    
    
    Edited: MathWorks Support Team
    
 on 24 Apr 2023
            I am trying to compile my application using the MATLAB Compiler 4.0 (R14) and I recieve the following error:
ERROR: libstdc++.so: undefined reference to `_Unwind_Resume_or_Rethrow@GCC_3.3'
collect2: ld returned 1 exit status
Accepted Answer
  MathWorks Support Team
    
 on 24 Apr 2023
        
      Edited: MathWorks Support Team
    
 on 24 Apr 2023
  
      This error may occur with the MATLAB Compiler 4.0 (R14) when used in combination with GCC 3.3.x, with GCC 3.2.3 that is distributed by RedHat, or with another unsupported version of GCC.
For the list of supported compilers, consult the following document:
To resolve this, see the related solution in order to compile and install a fully compatible GCC or the other related solution to try a workaround that is not officially supported.
0 Comments
More Answers (0)
See Also
Categories
				Find more on C Shared Library Integration in Help Center and File Exchange
			
	Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!