<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#c0c0c0>
<DIV><FONT size=2>Hello,everyone:</FONT></DIV>
<DIV><FONT size=2> I use the method to read ellipsoid data
from "data\ellipsoid.csv".I include the "cpl_csv.h",but there are so many build
error after I include the header file.</FONT></DIV>
<DIV><FONT
size=2>-------------------------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT size=2>dal.lib(cpl_csv.obj) : error LNK2005: _CSVFilename already
defined in gdal_i.lib(gdal13.dll)<BR>gdal.lib(cpl_csv.obj) : error LNK2005:
_CSVFilename already defined in
gdal_i.lib(gdal13.dll)<BR>msvcprt.lib(MSVCP60.dll) : error LNK2005: "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::allocator<char> <BR>const &)" (<A
href="mailto:??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV?$allocator@D@1@@Z">??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV?$allocator@D@1@@Z</A>)
already defined in main.obj<BR>msvcprt.lib(MSVCP60.dll) : error LNK2005:
"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<cha<BR>r,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(<A
href="mailto:??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z">??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z</A>)
already defined in main.obj<BR>msvcprt.lib(MSVCP60.dll) : error LNK2005:
"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 *,class
std::all<BR>ocator<char> const &)" (<A
href="mailto:??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDABV?$allocator@D@1@@Z">??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDABV?$allocator@D@1@@Z</A>)
already defined in main.obj<BR>msvcprt.lib(MSVCP60.dll) : error LNK2005:
"public: char const * __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char>
>::c_str(void)const " (<A
href="mailto:?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE">?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE</A><BR>PBDXZ)
already defined in main.obj<BR>msvcprt.lib(MSVCP60.dll) : error LNK2005:
"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> >::operator=(clas<BR>s
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)" (<A
href="mailto:??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z">??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z</A>)
already defined in main.obj<BR>msvcprt.lib(MSVCP60.dll) : error LNK2005:
"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)" (??1?$basic_string@<BR><A
href="mailto:DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ">DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ</A>)
already defined in main.obj<BR>msvcprt.lib(MSVCP60.dll) : error LNK2005:
"public: unsigned int __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char>
>::size(void)const " (<A
href="mailto:?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIX">?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIX</A><BR>Z)
already defined in main.obj<BR>MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fclose
already defined in LIBCD.lib(fclose.obj)<BR>MSVCRT.lib(MSVCRT.dll) : error
LNK2005: _sprintf already defined in
LIBCD.lib(sprintf.obj)<BR>MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strncpy
already defined in LIBCD.lib(strncpy.obj)<BR>MSVCRT.lib(MSVCRT.dll) : error
LNK2005: _atof already defined in LIBCD.lib(atof.obj)<BR>MSVCRT.lib(MSVCRT.dll)
: error LNK2005: __snprintf already defined in
LIBCD.lib(snprintf.obj)<BR>MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fflush
already defined in LIBCD.lib(fflush.obj)<BR>MSVCRT.lib(MSVCRT.dll) : error
LNK2005: _calloc already defined in
LIBCD.lib(dbgheap.obj)<BR>MSVCRT.lib(MSVCRT.dll) : error LNK2005: _malloc
already defined in LIBCD.lib(dbgheap.obj)<BR>MSVCRT.lib(MSVCRT.dll) : error
LNK2005: _realloc already defined in
LIBCD.lib(dbgheap.obj)<BR>MSVCRT.lib(MSVCRT.dll) : error LNK2005: _free already
defined in LIBCD.lib(dbgheap.obj)<BR>MSVCRT.lib(MSVCRT.dll) : error LNK2005:
__vsnprintf already defined in LIBCD.lib(vsnprint.obj)<BR>MSVCRT.lib(MSVCRT.dll)
: error LNK2005: _abort already defined in
LIBCD.lib(abort.obj)<BR>gdal.lib(cpl_csv.obj) : warning LNK4006: _CSVFilename
already defined in gdal_i.lib(gdal13.dll); second definition
ignored<BR>msvcprt.lib(MSVCP60.dll) : warning LNK4006: "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::allocator<char<BR>> const &)" (<A
href="mailto:??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV?$allocator@D@1@@Z">??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV?$allocator@D@1@@Z</A>)
already defined in main.obj; second definition
ignored<BR>msvcprt.lib(MSVCP60.dll) : warning LNK4006: "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<c<BR>har,struct std::char_traits<char>,class
std::allocator<char> > const &)" (<A
href="mailto:??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z">??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z</A>)
already defined in main.obj; second definition
ignored<BR>msvcprt.lib(MSVCP60.dll) : warning LNK4006: "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
*,class std::a<BR>llocator<char> const &)" (<A
href="mailto:??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDABV?$allocator@D@1@@Z">??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDABV?$allocator@D@1@@Z</A>)
already defined in main.obj; second definition
ignored<BR>msvcprt.lib(MSVCP60.dll) : warning LNK4006: "public: char const *
__thiscall std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::c_str(void)const " (<A
href="mailto:?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@Q">?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@Q</A><BR>BEPBDXZ)
already defined in main.obj; second definition
ignored<BR>msvcprt.lib(MSVCP60.dll) : warning LNK4006: "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> >::operator=(cl<BR>ass
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)" (<A
href="mailto:??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z">??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z</A>)
already defined in main.obj; second definition
ignored<BR>msvcprt.lib(MSVCP60.dll) : warning LNK4006: "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)"
(??1?$basic_strin<BR><A
href="mailto:g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ">g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ</A>)
already defined in main.obj; second definition
ignored<BR>msvcprt.lib(MSVCP60.dll) : warning LNK4006: "public: unsigned int
__thiscall std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::size(void)const " (<A
href="mailto:?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE">?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE</A><BR>IXZ)
already defined in main.obj; second definition ignored<BR>MSVCRT.lib(MSVCRT.dll)
: warning LNK4006: _fclose already defined in LIBCD.lib(fclose.obj); second
definition ignored<BR>MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _sprintf already
defined in LIBCD.lib(sprintf.obj); second definition
ignored<BR>MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _strncpy already defined in
LIBCD.lib(strncpy.obj); second definition ignored<BR>MSVCRT.lib(MSVCRT.dll) :
warning LNK4006: _atof already defined in LIBCD.lib(atof.obj); second definition
ignored<BR>MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __snprintf already defined
in LIBCD.lib(snprintf.obj); second definition ignored<BR>MSVCRT.lib(MSVCRT.dll)
: warning LNK4006: _fflush already defined in LIBCD.lib(fflush.obj); second
definition ignored<BR>MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _calloc already
defined in LIBCD.lib(dbgheap.obj); second definition
ignored<BR>MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _malloc already defined in
LIBCD.lib(dbgheap.obj); second definition ignored<BR>MSVCRT.lib(MSVCRT.dll) :
warning LNK4006: _realloc already defined in LIBCD.lib(dbgheap.obj); second
definition ignored<BR>MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _free already
defined in LIBCD.lib(dbgheap.obj); second definition
ignored<BR>MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __vsnprintf already defined
in LIBCD.lib(vsnprint.obj); second definition ignored<BR>MSVCRT.lib(MSVCRT.dll)
: warning LNK4006: _abort already defined in LIBCD.lib(abort.obj); second
definition ignored<BR> Creating library Debug/gause.lib and object
Debug/gause.exp<BR>LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with
use of other libs; use /NODEFAULTLIB:library<BR>Debug/gause.exe : fatal error
LNK1169: one or more multiply defined symbols found<BR>Error executing
link.exe.<BR>Creating browse info file...</FONT></DIV>
<DIV><FONT
size=2>--------------------------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>so I have two questions:</FONT></DIV>
<DIV><FONT size=2>1.Why I can't use the method CSVGetField()?</FONT></DIV>
<DIV><FONT size=2>2.If I want to read the ellipsoid data from
"data\ellipsoid.csv", how I can do?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks a lot</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Kunyang Li</FONT></DIV></BODY></HTML>