Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-08-01 Thread Mark Morgan Lloyd
Sven Barth wrote: We have three windows platforms with MSVC and I don't know how many platforms where GCC or LLVM is the main compiler. I'm not going for popularity here, just for the majority of platforms. Looking at the options 1 use swig architecture to parse the C++ source code/headers and

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-08-01 Thread Michael Van Canneyt
On Thu, 1 Aug 2013, Sven Barth wrote: Of course I understand it's very attractive to have everything in house and native in FPC, but I suspect the effort needed to develop/maintain it may outweigh that... Important point for variant 2: less overhead. Using swig you first flatten the API and t

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-08-01 Thread dev . dliw
> Important point for variant 2: less overhead. Right, that's the biggest plus in my eyes. >Or is this meanwhile standardized ? Unfortunately not. It starts in different name mangling - as already said here - and other (small) differences. So working on a cross-platform project in C++ with differ

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-08-01 Thread dev . dliw
> @dliw: wasn't the Object Pascal module based on the Modula 3 module? > IIRC recent posts on the swig mailing lists did indeed indicate the > Modula 3 module was buggy in current SWIG. Sorry, you're right - it was based on Modula - I did mix it up. Thanks for this correction.

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-08-01 Thread Sven Barth
Am 01.08.2013 12:47, schrieb Reinier Olislagers: On 01/08/2013 12:24, Sven Barth wrote: Am 01.08.2013 12:11, schrieb Michael Van Canneyt: On Thu, 1 Aug 2013, Sven Barth wrote: Am 01.08.2013 11:38, schrieb Michael Van Canneyt: On Thu, 1 Aug 2013, Sven Barth wrote: Am 01.08.2013 11:10, schrieb

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-08-01 Thread Sven Barth
Am 01.08.2013 12:11, schrieb Michael Van Canneyt: On Thu, 1 Aug 2013, Sven Barth wrote: Am 01.08.2013 11:38, schrieb Michael Van Canneyt: On Thu, 1 Aug 2013, Sven Barth wrote: Am 01.08.2013 11:10, schrieb dev.d...@gmail.com: And if it's allowed to dream: one time fpc will simply link ag

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-08-01 Thread Michael Van Canneyt
On Thu, 1 Aug 2013, Sven Barth wrote: Am 01.08.2013 11:38, schrieb Michael Van Canneyt: On Thu, 1 Aug 2013, Sven Barth wrote: Am 01.08.2013 11:10, schrieb dev.d...@gmail.com: And if it's allowed to dream: one time fpc will simply link against C++ directly :) If you prefer to work in Pasc

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-08-01 Thread Sven Barth
Am 01.08.2013 11:38, schrieb Michael Van Canneyt: On Thu, 1 Aug 2013, Sven Barth wrote: Am 01.08.2013 11:10, schrieb dev.d...@gmail.com: And if it's allowed to dream: one time fpc will simply link against C++ directly :) If you prefer to work in Pascal instead of C++ then you could work on

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-08-01 Thread Michael Van Canneyt
On Thu, 1 Aug 2013, Sven Barth wrote: Am 01.08.2013 11:10, schrieb dev.d...@gmail.com: And if it's allowed to dream: one time fpc will simply link against C++ directly :) If you prefer to work in Pascal instead of C++ then you could work on that dream by improving the cppclass code in the co

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-08-01 Thread Michael Van Canneyt
On Thu, 1 Aug 2013, dev.d...@gmail.com wrote: Hi, FYI, created wiki page http://wiki.lazarus.freepascal.org/SWIG to bundle information. It would of course be very welcome if somebody got the current version into main SWIG so it is more easily usable The wiki page is a good idea, things h

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-08-01 Thread Sven Barth
Am 01.08.2013 11:10, schrieb dev.d...@gmail.com: And if it's allowed to dream: one time fpc will simply link against C++ directly :) If you prefer to work in Pascal instead of C++ then you could work on that dream by improving the cppclass code in the compiler. Linking against static C++ class

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-08-01 Thread dev . dliw
Hi, > FYI, created wiki page http://wiki.lazarus.freepascal.org/SWIG to bundle > information. >It would of course be very welcome if somebody got the current version into >main SWIG so it is more easily usable The wiki page is a good idea, things have to be clarified though. I don't know in how

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2013-07-19 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 19/06/2012 09:51, Reinier Olislagers wrote: The recent thread about using C headers made me think about using C++ projects. Found that the SWIG tool converts C/C++ .h files into glue code and bindings for e.g. Python, Modula 3... but not Delphi/Object Pascal. It se

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2012-11-02 Thread dev . dliw
Hi, > http://members.upc.nl/s.grewar/swig_2.0.8_to_swig_delphi.diff Hm, this really doesnt look good.. :( I did run "make maintainer-clean" before packing - and hoped this would remove all this autogenerated stuff - apparently this wasn't the case [although the size of the whole thing went down

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2012-10-31 Thread dev . dliw
Hi, here it is: http://downloadit.pf-control.de/dl.php?ref=swig Unfortunately I made the mistake and did the work on a non version controlled folder - therefore it is whole swig and not just a patch :( Feel free to move the file to any other - possibly more "central" - place and hopefully there

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2012-10-26 Thread download itweb
Hi, > Perhaps this could help somebody... I kept an eye on Swig for quite some time, but reading your posting I decided to give it a try. A summary for everyone interested: [latest swig (2.0.8) - adapted patch - not sure if I made everything correct (API changed since the patch was made)] 1. The

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2012-10-20 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 20-10-2012 11:10, Krzysztof wrote: So it will be possible to convert for example libQT4Pas? Haven't used libQT4Pas, but I understand it is the wrapper to let FPC talk to the C++ Qt libs. So SWIG could automatically generate an alternative to libQT4Pas. I wonder i

Re: [fpc-pascal] Re: Automatically exporting C++ API using SWIG??

2012-10-20 Thread Krzysztof
So it will be possible to convert for example libQT4Pas? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal