[Iup-users] IUP compile error: conflicting types for 'XmComboBoxCallbackStruct'

Otfried Cheong otfried.iup at ipe.airpost.net
Mon Oct 8 21:46:23 GMT+3 2007


mpb wrote:
> src/Makefile contains:
> 
>   # Define to use Motif 1.x
>   ifdef USE_MOTIF1
>     SRC += mot/ComboBox1.c
>   endif

This is in "src/config.mak", not in "src/Makefile".

> However, src/iup.make does not appear to respect the USE_MOTIF1 flag.
> This would seem to be a bug in src/iup.make.  Maybe it has already
> been fixed in CVS.

It also took me a while to figure this out.  IUP offers you two totally 
independent build options, namely 'tecmake' and 'premake'.

"Tecmake" is simply a Makefile for GNU make that includes "config.mak", 
so "config.mak" contains all necessary definitions for compiling IUP. 
This seems to work fine (and I would recommend using tecmake for 
building IUP).   The Tecmake package is linked from the IUP homepage. 
It contains a number of files, but you really only need "tecmake.mak" 
(the GNU make Makefile) and the script "tec_uname.bsh" (which tells you 
what environment variables to set).

"Premake" is a Lua program that reads "premake.lua" and generates 
"Makefile" and "iup.make".  The error is in "premake.lua" (it simply 
puts all *.c files in the package).  I was unable to find a copy of the 
premake program that works with the "premake.lua" files in IUP, so I 
didn't really try this out.    I would recommend against working with 
the pregenerated Makefiles (unless of course they just happen to work 
for you if you have exactly the right environment).

Otfried




More information about the iup-users mailing list