[Liblas-devel] undefined symbol LASPoint::GetClassification

Volker Wichmann wichmann at laserdata.at
Thu Jul 2 09:46:21 EDT 2009


Sorry for the fuzz, my system was not clean and so I tried to link to an 
older library version. Damn ...

Volker


Volker Wichmann wrote:
> Volker Wichmann wrote:
>> Hi,
>>
>> I've just updated my code to the new classification implementation, 
>> but on windows (MSVC 2008 Express) I get a linker error:
>>
>> error LNK2019: unresolved external symbol ""public: class 
>> liblas::LASClassification const & __thiscall 
>> liblas::LASPoint::GetClassification(void)const " 
>> (?GetClassification at LASPoint@liblas@@QBEABVLASClassification at 2@XZ)" 
>> referenced in function ...
>>
>> No linking problems with the same code under linux ...
>>
>> thanks,
>> Volker
>>
>> _______________________________________________
>> Liblas-devel mailing list
>> Liblas-devel at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/liblas-devel
> To be a little more specific, I use the following code fragment with 
> the c++ interface:
>
> #include <liblas/laspoint.hpp>
> #include <liblas/lasreader.hpp>
>
> ...
> liblas::LASPoint const &p = reader.GetPoint();
> liblas::LASClassification::bitset_type clsflags(p.GetClassification());
> int class = static_cast<liblas::uint8_t>(clsflags.to_ulong());
>
> I'm not sure if this is the correct way to read the classification, 
> but the code works without problems under linux.
>
> best regards,
> Volker
>
> _______________________________________________
> Liblas-devel mailing list
> Liblas-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/liblas-devel



More information about the Liblas-devel mailing list