Noob Compilation question on linux (ubuntu 11.10)
Hi,
So I configured and ran make in the libraw folder. The library has been installed.
I just want to compile a very simple program on this page http://www.libraw.org/docs/Samples-LibRaw-eng.html
I have replaced the function name with main and file pointer with a constant.
What I don't get is to how to actually compile it.
I run the following command in the terminal
g++ -o rawexec -I/usr/local/include -L/usr/local/lib -lraw librawfile.cpp
and get a bunch of errors:
/usr/local/lib/libraw.so: undefined reference to `GOMP_loop_dynamic_next'
/usr/local/lib/libraw.so: undefined reference to `GOMP_parallel_end'
/usr/local/lib/libraw.so: undefined reference to `omp_get_num_threads'
/usr/local/lib/libraw.so: undefined reference to `GOMP_loop_end_nowait'
/usr/local/lib/libraw.so: undefined reference to `GOMP_loop_end'
/usr/local/lib/libraw.so: undefined reference to `GOMP_critical_start'
/usr/local/lib/libraw.so: undefined reference to `GOMP_critical_end'
/usr/local/lib/libraw.so: undefined reference to `GOMP_barrier'
/usr/local/lib/libraw.so: undefined reference to `GOMP_parallel_start'
/usr/local/lib/libraw.so: undefined reference to `omp_get_thread_num'
/usr/local/lib/libraw.so: undefined reference to `GOMP_loop_dynamic_start'
collect2: ld returned 1 exit status
Needless to say, I know not much about linking. Could you please tell me what is the correct sequence/way of putting the compilation options?
Thanks and Regards.
Recent comments