On Nov 17, 2010, at 2:05 PM, nicolas david wrote:

> Hi Otmane
> 
> Hi List;
> 
> I have problem linking a simple executable with the liblas library 
> liblas_c.lib
> provided in OSGEO4W.
>  
>   
> If you want to link with liblas_c.lib, I think you must use the C api, and 
> use include file "capi/liblas.h"
>    
> When I browse the symbols with DependencyWalker, i can find all the symbols 
> not found..
> Am I missing something
> 
>  I think you try to link C++ code with C lib without using "extern C" 
> keyword.. 
> 
> 
> I tried to link with the liblas.lib, but  it asks me for  boost-serialization 
> libs
> 
> Perhaps a stupid question, but why don't you install this boost-serialization 
> libs ?  ( with boostpro installer , for example.)
> Moreover, you should try to use the FindBoost.cmake Module 
> http://www.cmake.org/cmake/help/cmake-2-8-docs.html#module:FindBoost rather 
> than using you own FindXXX

The goal with the OSGeo4W build is to not have to worry about linking anything 
but OSGeo4W libraries.  I thought that I was linking statically when creating 
liblas.lib, and boost-serialization and boost-program-options were statically 
linked and included.  It would seem this is not the case :(

Additionally, liblas_c.lib should be a static compile of everything in 
liblas.lib + the C API, and I wished to support the approach that Otmane had 
attempted and failed with.

I will do some investigation to see what might be happening.

Howard_______________________________________________
Liblas-devel mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/liblas-devel

Reply via email to