BlogLabs

How To Solve: library not found for -lstdc++-static

Feb 10, 2011
If you're compiling up a project or source code for iOS development purposes and you're getting a message from the linker like:
ld: library not found for -lstdc++-static
Then follow theses two steps:
  1. Click "Project" -> Then "Edit Project Settings" -> Choose the "General" tab -> Select "Base SDK for All Configurations" -> and ensure its "Latest iOS" (or at least iOS of some persuasion)
  2. Click "Project" -> Then "Edit Active Target" -> Choose the "Build" tab -> Select "C++ Standard Library Type" -> ensure its set to "Dynamic"
This can help ensure you don't end up with those pesky linker errors and stop you from tearing your hair out in the process.
Evan
Share on LinkedInTweet about this on Twitter

________________________________________________/\\\_______________________/\\\\\\_____/\\\\\\_________________ _______________________________________________\/\\\______________________\////\\\____\////\\\_________________ _____/\\\______________________________________\/\\\_________________________\/\\\_______\/\\\_________________ __/\\\\\\\\\\\__/\\____/\\___/\\_____/\\\\\____\/\\\_________/\\\____/\\\____\/\\\_______\/\\\_____/\\\\\\\\\\_ _\////\\\////__\/\\\__/\\\\_/\\\___/\\\///\\\__\/\\\\\\\\\__\/\\\___\/\\\____\/\\\_______\/\\\____\/\\\//////__ ____\/\\\______\//\\\/\\\\\/\\\___/\\\__\//\\\_\/\\\////\\\_\/\\\___\/\\\____\/\\\_______\/\\\____\/\\\\\\\\\\_ ____\/\\\_/\\___\//\\\\\/\\\\\___\//\\\__/\\\__\/\\\__\/\\\_\/\\\___\/\\\____\/\\\_______\/\\\____\////////\\\_ ____\//\\\\\_____\//\\\\//\\\_____\///\\\\\/___\/\\\\\\\\\__\//\\\\\\\\\___/\\\\\\\\\__/\\\\\\\\\__/\\\\\\\\\\_ _____\/////_______\///__\///________\/////_____\/////////____\/////////___\/////////__\/////////__\//////////__

Please rotate your device