R: Re: [Liblas-devel] R: Visual Studio 2010 error
esteban70 at libero.it
esteban70 at libero.it
Wed Jan 27 06:01:56 EST 2010
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_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QAE at 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_stringstream at DU?$char_traits at D@std@@V?$allocator at 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_?
sputn@?$basic_streambuf at DU?$char_traits at D@std@@@std@@QAEHPBDH at 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_?
sputn@?$basic_streambuf at DU?$char_traits at D@std@@@std@@QAEHPBDH at 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: mateusz at loskot.net
>Data: 26/01/2010 23.32
>A: "esteban70 at libero.it"<esteban70 at libero.it>
>Cc: <liblas-devel at lists.osgeo.org>
>Ogg: Re: [Liblas-devel] R: Visual Studio 2010 error
>
>esteban70 at libero.it 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
>
More information about the Liblas-devel
mailing list