Hi
I want to compile a program PTAMM that, among other things, also needs lib3ds. After I had build those libraries and started to make the program I got this error;
Model3ds.cc
.text+0x502): undefined reference to `lib3ds_mesh_calculate_vertex_normals'
Model3ds.o: In function `PTAMM::Model3DS::_Load()':
Model3ds.cc
.text+0xeb6): undefined reference to `lib3ds_file_open'
collect2: ld returned 1 exit status
make: *** [PTAMM] Error 1
The header for this function is lib3ds.h and is in /usr/local.
During the configure of lib3ds it showed it missed g77 and xlf but I guess it then went for f77 as shown below;
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... f77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f77 accepts -g... yes
If that's the problem then I wonder how to get g77 and xlf.
Some other forums spoke about the gcc-4 and higher could be the problem. But there wasn't really a solution given. I did install gcc-3.4 though, but it resides along side gcc-4 (de-installing gcc via synaptic manager seems dangerous), so I guess it doesn't change a whole lot.
What would be the best way to go about this?