Menu

#1 error; fails to build

open
nobody
None
5
2004-09-22
2004-09-22
No

when trying to build, the following error is reported:

In file included from main.cpp:97:
/usr/include/getopt.h:38:43: missing binary operator
before token "("
make[2]: *** [main.o] Error 1

shoudl this be considered an error in getopt.h header
file?

Discussion

  • Arne

    Arne - 2004-12-18

    Logged In: YES
    user_id=1180763

    well... just edit the getopt.h file by hand!
    Just find the line and remove the error!
    removing the && and everything behind in this line worked
    fine for me!

     
  • Nobody/Anonymous

    Logged In: NO

    put /* */ comment brackets around the lines 103-105 in
    src/main.cpp

    eg.
    /*
    #ifdef HAVE_GETOPT_H
    #include <getopt.h>
    #endif
    */

    (or put a #define HAVE_GETOPT_H 0 somewhere else ;-))

     

Log in to post a comment.

MongoDB Logo MongoDB