>----Messaggio originale----
>Da: [email protected]
>Data: 27/01/2010 20.03
>A: "[email protected]"<[email protected]>
>Cc: <[email protected]>
>Ogg: Re: R: Re: [Liblas-devel] R: Visual Studio 2010 error
>
>Which version of libLAS do you build?
>How do you build libLAS? Using NMAKE and makefile.vc or using Visual
>Studio project?
>
>Keep in mind, that you should build libLAS in debug mode
>regardless of which way you use:
>
>nmake /f makefile.vc BUILD_DEBUG=YES
>
>or select Debug configuration in Visual Studio.
>
>IOW, if you build your program in Debug, links against libLAS debug too.
>But, if you build your program in Release mode, link against libLAS
>built as Release too.

Using the latest version from liblas website (liblas-1.2.1-win32.zip) I'm 
unable to pass the linking phase.
Those are the errors I get in Release mode linking liblas.lib (i have listed 
only the errors for reader10.obj but those are the same for every .obj):

1>liblas.lib(reader10.obj) : error LNK2001: unresolved external symbol 
"__declspec(dllimport) 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> >(class std::basic_string<char,
struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??
0?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@q...@abv01@@Z)
1>liblas.lib(reader10.obj) : error LNK2001: unresolved external symbol 
"__declspec(dllimport) 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> >(char const *)" (__imp_??
0?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@q...@pbd@Z)
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(reader10.obj) : error LNK2001: unresolved external symbol 
"__declspec(dllimport) public: __thiscall std::basic_stringstream<char,struct 
std::char_traits<char>,class std::allocator<char> >::basic_stringstream<char,
struct std::char_traits<char>,class std::allocator<char> >(int)" (__imp_??
0?$basic_stringstr...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@q...@h@Z)
1>liblas.lib(reader10.obj) : error LNK2001: unresolved external symbol 
"__declspec(dllimport) class std::basic_istream<char,struct std::
char_traits<char> > & __cdecl std::operator>><char,struct std::
char_traits<char> >(class std::basic_istream<char,struct std::char_traits<char> 
> &,char &)" (__imp_??$?
5du?$char_tra...@d@std@@@std@@yaaav?$basic_istr...@du?$char_traits@d...@std@@@0...@aav10@a...@z)
1>liblas.lib(reader10.obj) : error LNK2001: unresolved external symbol 
"__declspec(dllimport) public: void __thiscall std::basic_ostringstream<char,
struct std::char_traits<char>,class std::allocator<char> >::`vbase 
destructor'(void)" (__imp_??
_d?$basic_ostringstr...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@QAEXXZ)
1>liblas.lib(reader10.obj) : error LNK2001: unresolved external symbol 
"__declspec(dllimport) public: class std::basic_string<char,struct std::
char_traits<char>,class std::allocator<char> > __thiscall std::
basic_ostringstream<char,struct std::char_traits<char>,class std::
allocator<char> >::str(void)const " (__imp_?
s...@?$basic_ostringstream@du?$char_tra...@d@std@@v?$alloca...@d@2@@std@@QBE?
av?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@d@2@@2...@xz)
1>liblas.lib(reader10.obj) : error LNK2001: unresolved external symbol 
"__declspec(dllimport) public: __thiscall std::basic_ostringstream<char,struct 
std::char_traits<char>,class std::allocator<char> >::basic_ostringstream<char,
struct std::char_traits<char>,class std::allocator<char> >(int)" (__imp_??
0?$basic_ostringstr...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@q...@h@Z)
1>liblas.lib(reader10.obj) : error LNK2001: unresolved external symbol 
"__declspec(dllimport) public: class std::basic_istream<char,struct std::
char_traits<char> > & __thiscall std::basic_istream<char,struct std::
char_traits<char> >::read(char *,int)" (__imp_?
r...@?$basic_istream@du?$char_tra...@d@std@@@std@@qaeaa...@padh@Z)
1>liblas.lib(reader10.obj) : error LNK2001: unresolved external symbol 
"__declspec(dllimport) public: class std::basic_istream<char,struct std::
char_traits<char> > & __thiscall std::basic_istream<char,struct std::
char_traits<char> >::seekg(long,int)" (__imp_?
se...@?$basic_istream@du?$char_tra...@d@std@@@std@@qaeaa...@jh@Z)
1>liblas.lib(reader10.obj) : error LNK2001: unresolved external symbol 
"__declspec(dllimport) public: class std::basic_string<char,struct std::
char_traits<char>,class std::allocator<char> > & __thiscall std::
basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::
assign(char const *,unsigned int)" (__imp_?
ass...@?$basic_string@du?$char_tra...@d@std@@v?$alloca...@d@2@@std@@qaeaa...@pbdi@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)

So it seems that the .lib shipped in liblas-1.2.1-win32.zip is unable to link 
against Visual Studio 10.

I have recompiled liblas using nmake with BUILD_DEBUG set to YES first and 
then set to NO.
Then I have linked liblas_d.lib in Debug mode e liblas.lib in Release mode. 
Doing so I can pass the linking phase and generate the exe files.

nmake.opt  must be modified with the following lines for VS10 support

!ELSEIF "$(_NMAKE_VER)" == "10.00.21003.01"
MSVCVER = 10.0

One last thing. The lib names in debug mode are:

LAS_LIB = liblas_d.lib
LAS_DLL = liblas_d1.dll
LAS_LIB_DLL = libl1as_i.lib

Are those names misspelled?

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

Reply via email to