Hi,
I am at the start of creating a project in nimqt, which needs to be compiled with the cpp switch. The plan is to also use libraries that need to be compiled with the c switch.
What is the Nim idiomatic/preferred way of interfacing between the two sides (C and C++) of a project? Compile one part as the main executable and the other as a shared library and use it a any other C library? Or is there a more friendly way of doing it?
Thanks
@xigoi: Isn't C++ supposed to be backward-compatible with C?
I hope that in most cases it will be, I'm just being on the safe side.
@Araq: What works best in my experience is to compile all your dependencies with nim cpp too. Mixed mode projects are not officially supported anymore, it's too hard. :-)
Ok, thanks for the info. Keeping my fingers crossed I don't run into any edge cases 🤞