Wednesday, August 18, 2010

Eclipse Windows 7 Plugin Problems

Wow, Eclipse is really a piece of work. I wasted an hour trying to get it to behave reasonably with multiple plugins installed on Windows 7. Online forums were little help until I finally came across the suggestion to install Eclipse into a user directory, i.e. one that doesn't require administrator privileges. Finally fixed; what a waste of time!

Saturday, August 7, 2010

Compiling GnuCAP in CygWin

Update: GnuCAP is now available as an official CygWin package, as is some dialect of SPICE.

Very simple patch to get recent development snapshots of GnuCAP to compile in CygWin:

--- md.h.bak    2010-03-19 00:21:26.030900000 -0700
+++ md.h        2010-03-19 00:34:18.810900000 -0700
@@ -100,6 +100,12 @@
  #define MS_DLL
#endif
/*--------------------------------------------------------------------------*/
+#ifdef __CYGWIN__
+  #ifndef RTLD_LOCAL
+    #define RTLD_LOCAL 0
+  #endif
+#endif
+/*--------------------------------------------------------------------------*/
/* some convenient names */
typedef std::complex COMPLEX;
typedef std::pair DPAIR;