undefined reference to `lib3ds_file_open'

39 views
Skip to first unread message

lims

unread,
Jul 27, 2015, 7:06:16 AM7/27/15
to lib3ds
I download lib3ds-20080909.zip. I run ./configure; make; make install. Then I try to run below code but I get
undefined reference to `lib3ds_file_open'
error.

My code :  (test.c)

#include <iostream>
#include <TooN/TooN.h>
#include <opencv2/opencv.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/imgproc/types_c.h>

#include <lib3ds.h>

using namespace TooN;

int main()
{
   
CvFeatureTree *ft;
   
Lib3dsFile * pModel = lib3ds_file_open( "aa.obj" );
   
Vector<3> v1;    //Create a static sized vector of size 3
   
return 0;
}

Compile : g++ -c test.c
Link       : g++ -o exe test.o -L -I/usr/lib -l3ds

 
Reply all
Reply to author
Forward
0 new messages