Menu

getopt

2015-03-16
2015-03-19
  • Bastian Greshake

    Hey there,
    I tried compiling Metassembler on a Ubuntu 14.04.02 this morning, but I was getting errors for
    mateAn.cpp:526:83: error: ‘getopt’ was not declared in this scope and the same for the reportCE.cpp and the Ncoords.cpp.

    This seems to be a problem with whether getopt is included in the standard library import or not.. In any case, for me a simple fix was to add #include <getopt.h> in the 3 files and now it works like a charm. Might be worth adding the includes to the files directly maybe. :-)

    Cheers,
    Bastian

     
    • Michael Schatz

      Michael Schatz - 2015-03-16

      Thanks Bastien. It seems different compilers have different requirements.

      Thank you

      Mike

      Sent from my iPhone

      On Mar 16, 2015, at 4:04 AM, Bastian Greshake gedankenstuecke@users.sf.net wrote:

      Hey there,
      I tried compiling Metassembler on a Ubuntu 14.04.02 this morning, but I was getting errors for
      mateAn.cpp:526:83: error: ‘getopt’ was not declared in this scope and the same for the reportCE.cpp and the Ncoords.cpp.

      This seems to be a problem with whether getopt is included in the standard library import or not.. In any case, for me a simple fix was to add #include <getopt.h> in the 3 files and now it works like a charm. Might be worth adding the includes to the files directly maybe. :-)

      Cheers,
      Bastian

      getopt

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/metassembler/discussion/general/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • Bastian Greshake

    Thanks for taking care of it. :-)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.