Ask Your Question
0

Library not found for -lstdc++ in Xcode

asked 2012-12-18 09:44:40 -0600

i am using latest version of openCV2.framework it is working good in ios simulator, But gets compile error when try in ios devices error is follow

: Library not found for -lstdc++

: Linker command failed with exit code 1 (use -v to see invocation)

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-12-18 22:56:41 -0600

John Brewer gravatar image

If you're using OpenCV 2.4.2 or earlier, you need to add libstdc++ to your project. To do this:

  • Click on the project in the Project Navigator.
  • Select the "Build Phases" tab.
  • In the "Link Binary with Libraries" section, click the "+" button.
  • Add "libstdc++.dylib" from the list that appears.
  • Rebuild.

If you're using OpenCV 2.4.3 or later, you need to do the same thing, but with libc++.dylib.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-12-18 09:44:40 -0600

Seen: 1,891 times

Last updated: Dec 18 '12