ISO C++ error

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

  1. farmerdoug macrumors 6502a

    Sep 16, 2008
    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.

  2. Sander macrumors 6502

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


    Nov 25, 2005
    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

    Sep 16, 2008
    They lied to me. I was missing an .h file.

Share This Page