apple / swift-cmake-examples

Apache License 2.0
99 stars 9 forks source link

Where to define CxxVectorOfInt #10

Closed afabri closed 2 months ago

afabri commented 2 months ago

Could you add where I have to typedef types such as CxxVectorOfInt as they can be found in the documentation on interoperability. I Adding it in include/fibonacci/fibonacci.h did not help.

afabri commented 2 months ago

I already added import CxxStdlib in fibonacci.swift and gave it a try with std.vector<CInt>, but that left me with the error that a second template parameter is expected. But maybe all this is out of the scope of this git repository.

afabri commented 2 months ago

In fact even for a non-template struct Color. added in fibonacci.h it Is reported as an unknown type.

afabri commented 2 months ago

I somehow got it to work. Sorry for the noise.