Guest
Login
跳过导航链接

Compile Error:

  : In function `bool isPrime(int)':
:20: warning: converting to `int' from `double'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccsneaaa.o(.text+0xd):: undefined reference to `std::string::size() const'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccsneaaa.o(.text+0x60):: undefined reference to `std::string::operator[](unsigned int) const'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccsneaaa.o(.text+0x9f):: undefined reference to `std::string::operator[](unsigned int) const'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccsneaaa.o(.text+0xce):: undefined reference to `std::string::operator[](unsigned int) const'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccsneaaa.o(.text+0x312):: undefined reference to `std::cin'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccsneaaa.o(.text+0x317):: undefined reference to `std::istream::operator>>(int&)'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccsneaaa.o(.text+0x32b):: undefined reference to `std::basic_ios<char, std::char_traits<char> >::operator void*() const'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccsneaaa.o(.text+0x34d):: undefined reference to `std::cout'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccsneaaa.o(.text+0x352):: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccsneaaa.o(.text+0x35a):: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccsneaaa.o(.text+0x362):: undefined reference to `std::ostream::operator<<(std::ostream& (*)(std::ostream&))'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccsneaaa.o(.text+0x373):: undefined reference to `std::cout'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccsneaaa.o(.text+0x378):: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccsneaaa.o(.text+0x380):: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccsneaaa.o(.text+0x388):: undefined reference to `std::ostream::operator<<(std::ostream& (*)(std::ostream&))'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccsneaaa.o(.text+0x3b5):: undefined reference to `std::ios_base::Init::Init()'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccsneaaa.o(.text+0x3d0):: undefined reference to `std::ios_base::Init::~Init()'
collect2: ld returned 1 exit status

  

Zhe Jiang University Of Technology Online Programming Space Beta1.3
Designed & Developped By Jin Qiwei
 All Copyright Reserved 2006
750