Hi again,
just a note that I have since found the precompiled C shared libs on the site. So starting with 64 bit OSX I am including them, headers and the C++ header/source files within my project rather than trying to ‘make’ the C++ libs. I have my project compiling, just need to resolve a runtime library linking error and then I can get stuck into using the lib.
Excuse my ignorance but is this the correct way to go about using these libs in a C++ project? There is no info in the C++ readme file.
Best, Nay.
Date: Tue, 3 May 2016 17:14:32 +1000From: Rene Christen <contact@xxxxxxxxxxxxxxxx>To: paho-dev@xxxxxxxxxxxSubject: [paho-dev] Compiling static libsMessage-ID: <90D02EC1-79CB-49E1-AFB6-784F01A4D900@xxxxxxxxxxxxxxxx>Content-Type: text/plain; charset=utf-8Hi there,This lib looks great. I need to use it as a static lib in a 64 bit windows and 64 bit OSX project. Is this possible? I have not been able to compile it yet (trying OSX first). I checked out the cpp and c git hub repos. I set the path to the c header files with export PAHO_C_HEADERS=xxx. I was then getting errors that it couldn?t find malloc() so added these lines to the top of client_persistence.cpp:#include <stdlib.h>#include <string.h>now when I run make I get:ld: unknown option: -sonameAny advice? I?m not that savvy with makefiles.Cheers,Nay.
|