[Liblas-devel] c liblas problem

Howard Butler hobu.inc at gmail.com
Wed Oct 28 13:52:38 EDT 2009


On Oct 28, 2009, at 12:29 PM, Riki Tiki wrote:

>
> hi i have simple program which is written below
>
> #include<stdio.h>
> #include "liblas.h"
>
> int main(int argc, char* argv)
> {
> LASReaderH reader = LASReader_Create("a.las");
> LASReader_Destroy(reader);
> return 0;
> }
>
> it gives me the following error while compiling...
>
> undefined reference to 'LASReader_Create'
> undefined reference to 'LASReader_Destroy'
>
> can you help me to solve the problem? thanks!

You need to make sure you link against liblas.{so|dylib|dll} too.   
Have you developed with C before?

Howard



More information about the Liblas-devel mailing list