help for an outsider

This is a discussion on help for an outsider within the C Programming forums, part of the General Programming Boards category; Hi, I am not a programmer, and C is very far from my programming experience. I need a relatively old ...

  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    3

    Unhappy help for an outsider

    Hi,

    I am not a programmer, and C is very far from my programming experience.
    I need a relatively old program to be compiled and during the compilation I got the following message:
    ****
    explorer.c:1005:4: error: #error "You should check whether SF bug #993209 is fixed in your version of LessTif."
    explorer.c:1006:4: error: #error "Then define either SF_BUG_993209_FIXED or SF_BUG_993209_NOT_FIXED, accordingly."
    explorer.c:1007:4: error: #error "See http://sourceforge.net/tracker/index.php?func=detail&aid=993209&group_id=8596&ati d=108596."
    make[1]: *** [explorer.o] Error 1
    ****

    In the file there is a part, as you can see here:
    ***

    #ifdef HAVE_LESSTIF
    # if !defined(SF_BUG_993209_FIXED) && !defined(SF_BUG_993209_NOT_FIXED)
    # error "You should check whether SF bug #993209 is fixed in your version of LessTif."
    # error "Then define either SF_BUG_993209_FIXED or SF_BUG_993209_NOT_FIXED, accordingly."
    # error "See http://sourceforge.net/tracker/index.php?func=detail&aid=993209&group_id=8596&ati d=108596."
    # endif
    # ifdef SF_BUG_993209_NOT_FIXED
    /* A dirty workaround */
    eui->scrolled_window = CreateVContainer(eui->scrolled_window);
    # endif
    #endif

    ***

    I think somebody can help me for the stupid question: What do I have to write (i.e: how to define SF_BUG.....) to compile it without error?

    My LessTif is 0.95, so I think the bug has been fixed.

    I think it might be very simple even for a beginner, but I am not that and I do not want to be that, too.
    I would like to simply compile that program.

    Thanks in advance.

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    If you are compiling with gcc, you can set a define this way:

    gcc -D SF_BUG_993209_FIXED=1 whatever.c

    However, if you are using a makefile, ie, you go:

    ./configure
    make

    it is a little trickier.

    BTW, just because you are using the latest version of LessTif does not mean that bug fix is part of it.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    Registered User
    Join Date
    Dec 2009
    Posts
    3
    Thanks,

    but I am using Makefile.
    The makefile is short, and does not contain individual compiling options.

  4. #4
    Registered User
    Join Date
    Oct 2006
    Location
    Canada
    Posts
    1,243
    What do I have to write (i.e: how to define SF_BUG.....)
    Well, if you just want to define it, then add a line similar to the following, in "explorer.c", near the top of the file, after all of the "#include" lines
    Code:
    #define SF_BUG_993209_FIXED 1
    (If only it were this easy to close bugs...)

  5. #5
    Registered User
    Join Date
    Dec 2009
    Posts
    3
    Hi nadroj,

    It worked. I could generate the object files and I could install the necessary program.

    Thanks a lot..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [Hardware + Software][C++ or C#] USB Fan
    By Mywk in forum C++ Programming
    Replies: 16
    Last Post: 07-04-2009, 03:12 PM
  2. What is the fan size?
    By adr in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 12-06-2007, 02:21 PM
  3. Computer Fan question
    By the dead tree in forum Tech Board
    Replies: 2
    Last Post: 12-28-2005, 03:16 PM
  4. Dumb fan question
    By RoD in forum Tech Board
    Replies: 20
    Last Post: 02-14-2003, 11:53 AM
  5. P4 Fan problem: Urgent
    By RoD in forum Tech Board
    Replies: 5
    Last Post: 01-15-2003, 11:12 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21