octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: building from urlwrite gives undefined reference to `_errno()' (MinG


From: Tatsuro MATSUOKA
Subject: Re: building from urlwrite gives undefined reference to `_errno()' (MinGW build 3.3.50+)
Date: Mon, 11 Jan 2010 16:34:08 +0900 (JST)

Hello
If

  std::string lasterror (void) const
    {
      CURLcode errno;

      curl_easy_getinfo (rep->handle(), CURLINFO_OS_ERRNO, &errno);
      
      return std::string (curl_easy_strerror (errno));
    }

in urlwrite.cc were modified as

  std::string lasterror (void) const
    {
      int errno;

      curl_easy_getinfo (rep->handle(), CURLINFO_OS_ERRNO, &errno);
      
      return std::string (curl_easy_strerror ((CURLcode)errno));
    }

The link errors below were disappeared.


DLD-FUNCTIONS/.libs/DLD_FUNCTIONS_urlwrite_laurlwrite.o:urlwrite.cc:(.text$_ZNK11curl_handle9lasterrorEv[curl_handle::lasterror()

const]+0x9): undefined reference to `_errno()' 
DLD-FUNCTIONS/.libs/DLD_FUNCTIONS_urlwrite_laurlwrite.o:urlwrite.cc:(.text$_ZNK11curl_handle9lasterrorEv[curl_handle::lasterror()

const]+0x2c): undefined reference to `_errno()' 

http://old.nabble.com/building-from-urlwrite-gives-undefined-reference-to-%60_errno()'-(MinGW-build-3.3.50%2B)-to27094133.html

However, the modification is perhaps a not proper modification. Can anyone give 
me suggestions or
advises?

Regards

Tatsuro


--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]