1. SWIG
- Posted by Tone Skoda <tone.skoda at siol.net> May 05, 2001
- 407 views
I gave up creating my own C parser. It's really waste of time, cause there are already many available, like PCCTS, SWIG, (YACC?) David, what's up with that your swig_eu? How finished is it and why did you abandon it? Why weren't any C/C++ libraries wrapped with it (GLUT/OpenGL, SciTech MGL, Allegro/Win32)? You once wrote (found in archives): >I thought that SWIG would be capable of wrapping the portable version of >Euphoria, but in the new version, everything is done with macros, which >makes SWIG just about worthless... Aren't macros compiled into functions and can be then used from dlls? I see it can wrap C++ classes. This is really good. So you can wrap any C/C++ library, like Crystal Space 3D engine, which is in C++, as long as it doesn't use C++ templates? Is that right? I'm willing to devlop this project further.
2. Re: SWIG
- Posted by David Cuny <dcuny at LANSET.COM> May 05, 2001
- 399 views
Tone Skoda wrote: > David, what's up with that your swig_eu? > How finished is it and why did you abandon it? Well, I was using Win95 and the BCC (Borland C Compiler). At the time (some time in August), BCC was having trouble generating code on Win95 - something about putting garbage out on page boundaries. I installed the fixes, but continued to have problems. After my initial release of the SWIG library, I couldn't ever get it to compile properly - even the working version that I had submitted crashed and burned. After a couple weeks of this, I threw up my hands and tried writing a version in Euphoria. I wrote Ox (my version of YACC for Euphoria) to help, but got distracted and wrote Py instead. I got back on track and started writing a version of SWIG for Euphoria again, with the goal of wrapping wxWindows. The scope of this tool is a bit smaller than SWIG - it requires that you clean up the input file before it can be processed - but it works. It doesn't handle typedefs yet, and other things need to be cleaned up. But wrapping wxWindows into a DLL isn't entirely trivial, so that project got put on hold... I should be working on the project in a couple weeks, though, since I'll need it for something else that I'm doing. > Why weren't any C/C++ libraries wrapped with it > (GLUT/OpenGL, SciTech MGL, Allegro/Win32)? See above. > I'm willing to devlop this project further. Go for it! The problem with what I wrote is that it doesn't integrate into the SWIG type mechanism, because I really didn't understand it when I wrote it. It's been a couple of months since I've checked the site - they might actually have documentation for the new version of SWIG by now. -- David Cuny
3. SWIG
- Posted by Tone Skoda <tone.skoda at siol.net> Jun 07, 2001
- 401 views
This is a multi-part message in MIME format. ------=_NextPart_000_000A_01C0EF4C.33BAB180 charset="iso-8859-2" I'm leaving SWIG (I left it long ago but I was without internet now for = one month). Maybe I'll come back if I will be interested again, but I very doubt. The people creating SWIG have to make some improvements. Maybe it would be good to see how it is when SWIG 2.0 will be available. Using SWIG 1.1 I created workspace with VC so I was able to debug it and = throw makefiles away. One feature I added to Euphoria module is support for static member = functions (in classes). ------=_NextPart_000_000A_01C0EF4C.33BAB180 Content-Type: text/html; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-2" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#d8d0c8> <DIV><FONT face=3DArial size=3D2>I'm leaving SWIG (I left it long ago = but I was=20 without internet now for one month).</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Maybe I'll come back if I will be = interested again,=20 but I very doubt.<BR>The people creating SWIG have to make some=20 improvements.<BR>Maybe it would be good to see how it is when SWIG=20 2.0 will be available.<BR>Using SWIG 1.1 I created workspace with = VC so I=20 was able to debug it and throw makefiles away.<BR>One feature I added to = Euphoria module is support for static member functions (in=20 ------=_NextPart_000_000A_01C0EF4C.33BAB180--