Skip to content
This repository was archived by the owner on Jul 1, 2021. It is now read-only.

Linking error when using HTTPSClient #27

Closed
jrecuerda opened this issue Sep 24, 2018 · 3 comments
Closed

Linking error when using HTTPSClient #27

jrecuerda opened this issue Sep 24, 2018 · 3 comments

Comments

@jrecuerda
Copy link

The linking order seems to be incorrect when instantiating an object from PocoNetSSL (for example HTTPSClient).

I have added another test case to the test_case package and it fails when linking.
`#include "Poco/Net/Context.h"
#include "Poco/URI.h"
#include "Poco/Net/HTTPSClientSession.h"

using Poco::Net::Context;
using Poco::Net::HTTPSClientSession;
using Poco::URI;

int main()
{
URI uri("https://pocoproject.org/");

const Context::Ptr context = new Context(Context::CLIENT_USE, "", "", "", Context::VERIFY_NONE, 9, false, "ALL:!ADH:!LOW:!EXP:!MD5:@strength");

HTTPSClientSession session(uri.getHost(), uri.getPort(), context);
}`

@jrecuerda
Copy link
Author

It seems to be happening with PocoDataSQLite

@jrecuerda jrecuerda mentioned this issue Sep 24, 2018
@jano42
Copy link

jano42 commented Nov 22, 2018

I've got the same problem.
In fact this is just taht the conan recipy use NetSSL_win instead of NetSSSL_OpenSSL
Simply fixed by PR : #25

It doesn't seem to be a linking order (almost for my case)

@keysight-daryl
Copy link

Was having this exact same issue and seems to be fixed by the recent commit. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants