rpelissi
04-25-2003, 01:01 PM
Hello,
I am trying to compile some C++ code that I have found in the NR book.
My problem is that I have thousand of link error that comes from the nrutil. h or/and nrutil.c files.
The kind of error I have looks like:
[linker error] undefined reference to 'vector(long, long)'
Since the vector function prototype is in the nrutil.h file, and as far as I include the file in my c++ code, it should work, right?
In attachment, you'll find the file I am trying to compile.
I am not very familiar with c/c++ coding, could someone help me?
Thanks
Renaud
I am trying to compile some C++ code that I have found in the NR book.
My problem is that I have thousand of link error that comes from the nrutil. h or/and nrutil.c files.
The kind of error I have looks like:
[linker error] undefined reference to 'vector(long, long)'
Since the vector function prototype is in the nrutil.h file, and as far as I include the file in my c++ code, it should work, right?
In attachment, you'll find the file I am trying to compile.
I am not very familiar with c/c++ coding, could someone help me?
Thanks
Renaud