Thank you Mateusz,

now i have another problem...

The linker give me a bunch of errors.

1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other 
libs; use /NODEFAULTLIB:library
1>liblas.lib(reader10.obj) : warning LNK4049: locally defined symbol ??
1?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@q...@xz 
(public: 
__thiscall std::basic_string<char,struct std::char_traits<char>,class std::
allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::
allocator<char> >(void)) imported
1>liblas.lib(reader10.obj) : error LNK2001: unresolved external symbol 
"__declspec(dllimport) public: void __thiscall std::basic_stringstream<char,
struct std::char_traits<char>,class std::allocator<char> >::`vbase 
destructor'(void)" (__imp_??
_d?$basic_stringstr...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@QAEXXZ)
1>liblas.lib(reader11.obj) : error LNK2001: unresolved external symbol 
"__declspec(dllimport) public: int __thiscall std::basic_streambuf<char,struct 
std::char_traits<char> >::sputn(char const *,int)" (__imp_?
sp...@?$basic_streambuf@du?$char_tra...@d@std@@@std@@qaehp...@z)
1>liblas.lib(reader10.obj) : error LNK2001: unresolved external symbol 
"__declspec(dllimport) public: int __thiscall std::basic_streambuf<char,struct 
std::char_traits<char> >::sputn(char const *,int)" (__imp_?
sp...@?$basic_streambuf@du?$char_tra...@d@std@@@std@@qaehp...@z)

I have reported only few lines of error.

In the Project Properties Page->Linker->Input I have specified "liblas.lib" as 
an additional dependency because I want to use the C++ api.

I have seen some similar problems already reported in this list but I wasn't 
able to figure a solution.

Frank Pesci

>----Messaggio originale----
>Da: [email protected]
>Data: 26/01/2010 23.32
>A: "[email protected]"<[email protected]>
>Cc: <[email protected]>
>Ogg: Re: [Liblas-devel] R: Visual Studio 2010 error
>
>[email protected] wrote:
>> I've found that the problem depends on Windows headers that provide 'min' 
e 
>> 'max' macros.
>
>Yes, it's a well-known problem on Windows.
>Please, refer to this document from Microsoft support:
>
>http://support.microsoft.com/kb/143208
>
>> In fact I get also the following error:
>> 
>> utility.hpp(253): warning C4003: not enough actual parameters for macro 
'min'
>
>As promised today, I committed the fix to libLAS repository:
>
>http://liblas.org/changeset/1514%3A09b9b4ed037a
>
>Best regards,
>-- 
>Mateusz Loskot, http://mateusz.loskot.net
>Charter Member of OSGeo, http://osgeo.org
>


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

Reply via email to