Compilation error on Suse 9.2

Help
naxos
2005-06-13
2013-06-03
  • naxos
    naxos
    2005-06-13

    I get errors when I make GDL under suse 9.2, like this one:

    datatypes.cpp: In member function `int Data_<<anonymous template type
       parameter> >::Scalar2index(SizeT&) const [with Sp = SpDByte]':
    datatypes.cpp:2280:   instantiated from here
    basic_op.cpp: In member function `Data_<<anonymous template type parameter> >*
       Data_<<anonymous template type parameter> >::Mod(BaseGDL*) [with Sp =
       SpDByte]':
    datatypes.cpp:2280:   instantiated from here
    basic_op.cpp:1543: error: `assert' undeclared (first use this function)
    basic_op.cpp:1543: error: (Each undeclared identifier is reported only once for
       each function it appears in.)
    basic_op.cpp: In member function `Data_<<anonymous template type parameter> >*
       Data_<<anonymous template type parameter> >::Mod(BaseGDL*) [with Sp =
       SpDInt]':
    datatypes.cpp:2281:   instantiated from here

    Any ideas why?  Help is appreciated!

    A

     
    • Joel Gales
      Joel Gales
      2005-06-16

      What version of GDL are you compiling?

      There should be the statement:

      #include <assert.h>

      somewhere at the beginning of datatypes.cpp.

      Joel

       
    • naxos
      naxos
      2005-06-16

      Brilliant!  That fixed it.  It is the latest version of gdl, 0.8.9, using gcc 3.3.4.  I wonder why nobody else seems to have had this problem?

      Thanks a lot for your help.

      Cheers,
      Andrew

       
    • naxos
      naxos
      2005-06-16

      PS - I had to manually insert the '#include <assert.h>' line into datatypes.cpp to get it to work.