stdlibc++ headers not found error on xcode 10 [duplicate] - c++

This question already has answers here:
ld: library not found for -lstdc++.6
(7 answers)
Closed 4 years ago.
We have some c libraries written for our iOS project and after upgrading to Xcode 10, when compiling we get the error:
error: include path for stdlibc++ headers not found; pass ‘-std=libc++’
on the command line to use the libc++ standard library instead
[-Werror,-Wstdlibcxx-not-found]
1 error generated.
Where do we need to make changes in out makefiles? Because I don't find the '-std='argument in them.

Find the answer in Apple's developers forum.
https://forums.developer.apple.com/thread/106114
The sdk tools needs to be copied from older Xcode.

Related

Where to compile a C++ program? [duplicate]

This question already has answers here:
How to install older version of GCC on Windows 10
(3 answers)
Closed 2 years ago.
I am new to coding in C++ and I am not sure where I can compile a C++ program, I am learning C++ through a website that already has a place to compile the code built into it. I know how to compile a program by using these commands: g++ [program name].cpp -o [name you want to give] and then do ./[name you gave]. I want to know where I can compile my code outside of this website.
Thanks.
There are lots of places you can write code for c++. Usually people will use IDEs such as
Visual Studio Code
Code::Blocks
CLion
Eclipse
CodeLite
etc...

Which version of c++ does CodeBlocks use? [duplicate]

This question already has answers here:
How can I add C++11 support to Code::Blocks compiler?
(4 answers)
Closed 3 years ago.
Recently I have tried to use some Advance c++ functions in CodeBlocks but all the time it throw errors like " according to c++ 98....... ".
If CodeBlocks uses an old version of c++ can I update it to c++11 or c++14.
I am just a new learner and cordially requesting you to help if you know the answer.
You can set compiler version and language standart in settings.
See this How can I add C++11 support to Code::Blocks compiler?

Intel c++ compiler in Xcode [duplicate]

This question already has answers here:
How to configure Xcode to compile not supported language, e.g. Fortran?
(1 answer)
Intel Fortran Compiler in XCode 8.3.2
(1 answer)
Closed 10 months ago.
I'm trying to use Intel c++ compiler for my Xcode project. After installation, following the tutorial from Intel, there's an Intel c++ compiler should be available on the build list in Xcode. However, my Xcode only lists the default compiler. Could anyone explain how to add addition compiler to Xcode?
Thx

Mac - c++ - create file.exe [duplicate]

This question already has answers here:
Clang C++ Cross Compiler - Generating Windows Executable from Mac OS X
(3 answers)
Closed 5 years ago.
I've write a c++ project using xcode on a mac.
What I need is to create a .exe file to run the project on windows in anothre pc (no virtualization).
I've read that xcode doesn't provide this service and so I've tried to compile it also in Eclipse (on mac) but I'm not able to get the .exe file.
Is it possible, on mac, to generate a .exe of a c++ project runnable on windows?
Thank you
Yes, it is possible and it's known as cross-compilation. Besides building your own toolchain for doing this, you can use MinGW: Cross compiling with MinGW

mingw 5.2 strange message with std::string [duplicate]

This question already has answers here:
the procedure entry point __gxx_personality_v0 could not be located
(5 answers)
Closed 3 years ago.
a program with std::string anywhere will compile fine, but when run it fails with the message
The procedure entry point
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev could not be located in the dynamic link library libstdc++-6.dll.
I cannot find more information on it though, how can I remedy this problem?
turns out I had the wrong compiler, I needed 4.8 from the other MinGW