krzyzanowskim / OpenSSL

OpenSSL package for SwiftPM, CocoaPod, and Carthage, multiplatform
https://swift.best
Other
896 stars 332 forks source link

Problem with build with SPM and interoperabilityMode #214

Closed jaceklapinski closed 2 weeks ago

jaceklapinski commented 3 weeks ago

Hello,

I am trying to build lib with C++ where one of dependency is OpenSSL

I have a lot of errors:

Screenshot 2024-06-18 at 12 29 26

I did try to use linker mode:

cSettings: [ .unsafeFlags(["-Wno-module-import-in-extern-c"]), ]

But no result.

Sample project:

cpp_interop_spm_ssl_test.zip

Best !

krzyzanowskim commented 3 weeks ago

thanks! and I blame Xcode/SwiftPM (always) for mixing up parameters and treating OpenSSL incorrectly

jaceklapinski commented 3 weeks ago

Yeah i have similar problems with other libs like asio or xxhash

krzyzanowskim commented 2 weeks ago

closing as I don't know if there is anything I can do about it. Do yo mind report these issues to Swift itself?