You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In an attempt to use CCurl to develop an SMTP client in Swift, I ran into this problem where the inline functions in shim.h produce linker errors on Linux. macOS works fine.
Functions such as curlHelperSetOptString and curlHelperSetOptInt work fine inside Kitura, but when they are used in an app, a multiple definition of 'curlHelperSetOptString' error occurs.
The functions are defined as inline in shim.h so I am not sure why the compiler is creating a symbol.
Attached is a HelloWorld Kitura based sample app that demonstrates the problem. Tun run execute:
In an attempt to use CCurl to develop an SMTP client in Swift, I ran into this problem where the inline functions in shim.h produce linker errors on Linux. macOS works fine.
Functions such as curlHelperSetOptString and curlHelperSetOptInt work fine inside Kitura, but when they are used in an app, a
multiple definition of 'curlHelperSetOptString'
error occurs.The functions are defined as inline in shim.h so I am not sure why the compiler is creating a symbol.
Attached is a HelloWorld Kitura based sample app that demonstrates the problem. Tun run execute:
HelloWorld.zip
docker-compose up
I have tried a few changes such as changing "extern inline" to "inline", or moving the declarations to a 'C' file but these cause different issues.
Error output:
The text was updated successfully, but these errors were encountered: