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/ccieeaaa.o(.text+0xd):: undefined reference to `std::string::size() const'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccieeaaa.o(.text+0x60):: undefined reference to `std::string::operator[](unsigned int) const'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccieeaaa.o(.text+0x9f):: undefined reference to `std::string::operator[](unsigned int) const'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccieeaaa.o(.text+0xce):: undefined reference to `std::string::operator[](unsigned int) const'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccieeaaa.o(.text+0x314):: undefined reference to `std::cin'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccieeaaa.o(.text+0x319):: undefined reference to `std::istream::operator>>(int&)'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccieeaaa.o(.text+0x32d):: undefined reference to `std::basic_ios<char, std::char_traits<char> >::operator void*() const'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccieeaaa.o(.text+0x34f):: undefined reference to `std::cout'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccieeaaa.o(.text+0x354):: 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/ccieeaaa.o(.text+0x35c):: 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/ccieeaaa.o(.text+0x364):: undefined reference to `std::ostream::operator<<(std::ostream& (*)(std::ostream&))'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccieeaaa.o(.text+0x375):: undefined reference to `std::cout'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccieeaaa.o(.text+0x37a):: 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/ccieeaaa.o(.text+0x382):: 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/ccieeaaa.o(.text+0x38a):: undefined reference to `std::ostream::operator<<(std::ostream& (*)(std::ostream&))'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccieeaaa.o(.text+0x3b7):: undefined reference to `std::ios_base::Init::Init()'
C:\DOCUME~1\ADMINI~1.WIN\LOCALS~1\Temp\1/ccieeaaa.o(.text+0x3d2):: 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
203