src/gfx.cc:313:6: error: #elif with no expression (Was: Yadex build error)

  • From: Andre Majorel <amajorel@xxxxxxxxx>
  • To: yadex@xxxxxxxxxxxxx
  • Date: Fri, 11 Nov 2011 08:12:41 +0100

On 2011-11-10 14:52 -0800, Kerry Hall wrote:

> First of all, thanks for your work on Yadex. However, I get this error when
> attempting to build:
> 
> src/gfx.cc:313:6: error: #elif with no expression
> 
> gcc 4.5.2

Hello Kerry. This is for version 1.7.901, right ? I'm surprised
you got as far as gfx.cc because, on my system, the build doesn't
even pass m7. Anyway, the fix for that particular error is to
replace the "#elif" with "#else".

-- 
André Majorel http://www.teaser.fr/~amajorel/
diff -ur yadex-1.7.901/src/gfx.cc yadex-1.7.901-fix/src/gfx.cc
--- yadex-1.7.901/src/gfx.cc    2006-11-03 14:49:01.000000000 +0100
+++ yadex-1.7.901-fix/src/gfx.cc        2011-11-11 08:05:23.000000000 +0100
@@ -310,7 +310,7 @@
     win_vis_id    = vis_info->visualid;
 #if defined _cplusplus || defined __cplusplus
     win_vis_class = vis_info->c_class;
-#elif
+#else
     win_vis_class = vis_info->class;
 #endif
     win_ncolours  = vis_info->colormap_size;
Only in yadex-1.7.901-fix/src: gfx.cc~

Other related posts:

  • » src/gfx.cc:313:6: error: #elif with no expression (Was: Yadex build error) - Andre Majorel