3 ms·
Youve always needed to do this. If you link against a static library that's compiled with -D_GLIBCXX_ASSERTIONS=1 it needs to be defined in your code too. Same
by maccard 3y ago
Youve always needed to do this.
If you link against a static library that's compiled with -D_GLIBCXX_ASSERTIONS=1 it needs to be defined in your code too. Same for the CRT flags with MSVC
- stabbles 3y agoYou'd hope that modules would make those issues go away, instead of making them worse. Also, CPPFLAGS ensure the shared code in headers is the same, whereas with modules it feels as if you have to manually bring the compiler itself in the right state.
- pjmlp 3y agoNo, it has been the same since compiled languages exist, modules only improve the packaging and type safety story. CPPFLAGS ensures not such thing when using binary libraries.
- gpderetta 3y agoABI-breaking flags break the ABI. There is no way around that. edit: incidentally, _GLIBCXX_ASSERTIONS is not ABI breaking.
- maccard 3y agoTIL!