vector & free_vector: wrong number of parameters?


g_loughnan
03-26-2008, 01:46 PM
Hi there,

I'm trying to use the Burg algorithm given in section 13.6. I've written out the code, built a project to which I have added "nrutil.h" and "nrutil.c". When I try to build the solution, I get an error for 'vector': "function does not take 2 parameters" and an error for 'free_vector': "function does not take 3 parameters". 'vector' is declared in "nrutil.h" to accept 2 parameters, and 'free_vector' is declared to accept 3 parameters. I can't see why I am getting this error??? Help/suggestions would be great!

Thanks,
Ger.

davekw7x
03-27-2008, 10:57 AM
...I can't see why I am getting this error...

Well, without more information from you, neither can we. I mean we really would like to help, but how could we?

So, a few questions for you:

1. What compiler? How did you create the project? (Where did you put the files? How did you tell the compiler where the files are? Stuff like that.)

2. How did you compile the project? (Command line? Integrated Development Environment? What?)

3. Did your compiler give you any other messages? Anything at all?

4. Where did you get nrutil.h and nrutil.c (or whatever file you have that implements vector() and free_vector())? Did you #define NRANSI or anything else in your test program before your "#include nrutil.h" statement?

5. Could show us the test program? (Is it like xmemcof.c from the "examples" programs or what?)

Regards,

Dave