First time here? Check out the FAQ!

Ask Your Question
0

Library not found for -lstdc++ in Xcode

asked Dec 18 '12

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

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Dec 19 '12

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.

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Dec 18 '12

Seen: 1,905 times

Last updated: Dec 18 '12