krzyzanowskim / OpenSSL

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

Problem with build with SPM and interoperabilityMode #214

Closed jaceklapinski closed 5 months ago

jaceklapinski commented 5 months 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 5 months ago

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

jaceklapinski commented 5 months ago

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

krzyzanowskim commented 5 months 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?