Hi Dirk,
Thanx for your answer. Indeed, I tried to install the existing C API. For windows user :
Some *.h, *.c files of the BaseX C API seems to work only with a gcc compiler. Some others one don't even exists under windows, at least I did not found them : 1) the BaseX C API seems to use the open SSL framework. I did download and install it, but have some problem to compile it with Visual C++ Express. 2) Some needed c/h files (see for instance "#include <unistd.h>) are located in the MinGW distribution for windows. However, these files are bound to GCC compiler, and can not be compiled with Microsoft compiler.
Indeed, I am trying to mimic in C++ the C# API, that works on my configuration. But it is not easy for me, since I never manipulated sockets and TCP connectors, and will take me a lot of time. Thus, if anyone already did the work, that would be so nice to share :)
Cheers,
Jean-Marc
2014/1/3 Dirk Kirsten dk@basex.org
Hello Jean-Marc,
What problems did you experience when using the provided C API (https://github.com/BaseXdb/basex-api/tree/master/src/main/c) under Windows 7? It should also work under windows. Additionally, you can find the source code of the C API at the basex-api repository, so this should give you a starting point if you ant to rewrite anything.
Cheers, Dirk
On 03/01/14 11:12, jean-marc Mercier wrote:
Hi all,
going back to the root... I am trying to connect my favorite C++ tools to BaseX. Unfortunately, I am using visual C++ 12 Express under windows 7. It seems that windows users will not be able to use the existing BaseX API C connector, and need another one. Thus I started to code a C++ BaseX API connector.
Writing a API connector is quite difficult for me, since I don't have the required networks knowledge.
Has somebody already some code to that purposes ?
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
-- Dirk Kirsten, BaseX GmbH, http://basex.org |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22 _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk