Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

farmerdoug

macrumors 6502a
Original poster
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.
 
Sounds like you miss the definition of LUdcmp. Perhaps there's some more header files you need to include.
 
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.

You think LUdcmp is some type. The compiler thinks it's not. I bet the compiler is right 😀

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.