If I create a C++03-compatible header, and use the same compiler (g++), will this work?
If I create a C++03-compatible header, and use the same compiler (g++), will this
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In general, yes. Once a module is compiled, the interface tends to be the most important part.
There may be ABI issues, though, depending on whether name mangling or anything like that changed. If you can use it as a shared library, there’s a decent chance you can use it statically as well.
More important, however, is standard library versions. Those very likely changed, so passing std objects between the two should be avoided at all costs.