Am I trying to wrap a C++ project?

Hi all :wave:t2:
I'm trying to use the CLINGO answer set solver from Swift. CLINGO is written in C/C++ and this is already where my confusion begins. The project declares a clingo.h header, but all of its implementations files are .cc. Does this mean that the project is a C++ app, and can't be imported into Swift via SPM?

Thanks :upside_down_face:

So long as you only include clingo.h then this should be fine. SwiftPM can build C++, but Swift can't understand C++ code. clingo.h exposes a C-compatible header file, and so SwiftPM absolutely can understand that. You should be fine.

Terms of Service

Privacy Policy

Cookie Policy