ISO C++ error

Discussion in 'Mac Programming' started by farmerdoug, May 25, 2010.

  1. farmerdoug macrumors 6502a

    Joined:
    Sep 16, 2008
    #1
    LUdcmp *vi; ISO C++ forbids declaration of LUdcmp with no type.

    ???

    There is no "code" only h files copied from Numerical Recipes. Will post if anybody needs to see them.

    thanks.
     
  2. Sander macrumors 6502

    Joined:
    Apr 24, 2008
    #2
    Sounds like you miss the definition of LUdcmp. Perhaps there's some more header files you need to include.
     
  3. gnasher729 macrumors P6

    gnasher729

    Joined:
    Nov 25, 2005
    #3
    You think LUdcmp is some type. The compiler thinks it's not. I bet the compiler is right :D

    Check where LUdcmp is declared. That declaration must be visible to the compiler at the point where the type is used, otherwise the compiler will get confused. I think LLVM will give you better error messages than gcc.
     
  4. farmerdoug thread starter macrumors 6502a

    Joined:
    Sep 16, 2008
    #4
    Thanks.
    They lied to me. I was missing an .h file.
     

Share This Page