Talk About Network

Google





Mac > Mac Programmer Tools > Re: errors galo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 7 Topic 533 of 637
Post > Topic >>

Re: errors galore in xcode for intel mac

by adrian.bartholomew@[EMAIL PROTECTED] May 19, 2006 at 12:07 PM

also, below is what i need to get working. once thats done, the entire
app would work.

char *strtok2(char * string, const char * control);

char *strtok2( char * string, const char * control )
{
        unsigned char *str;
        const unsigned char *ctrl = (unsigned char *)control;

        unsigned char map[32];
        int count;

        static char *nextoken;

        for (count = 0; count < 32; count++)
                map[count] = 0;

        do {
                map[*ctrl >> 3] |= (1 << (*ctrl & 7));
        } while (*ctrl++);

        if (string)
                str = (unsigned char *)string;
        else
                str = (unsigned char *)nextoken;

        //To make strtok2() _not_ skip over multible delimiters, just
comment out this while()!
        // while ( (map[*str >> 3] & (1 << (*str & 7))) && *str )
str++;

        string = (char *)str;

        for ( ; *str ; str++ )
                if ( map[*str >> 3] & (1 << (*str & 7)) ) {
                        *str++ = '\0';
                        break;
                }

        nextoken = (char *)str;

        if ( string == (char *)str )
                return '\0';
        else
                return string;

}

these are the 4 errors im getting now:

error: 'std::ios_base::ios_base(const std::ios_base&)' is private
error: within this context
error: 'std::basic_streambuf<_CharT, _Traits>::basic_streambuf(const
std::basic_streambuf<_CharT, _Traits>&) [with _CharT = char, _Traits =
std::char_traits<char>]' is private
error: within this context
 




 7 Posts in Topic:
errors galore in xcode for intel mac
adrian.bartholomew@[EMAIL  2006-05-18 17:26:32 
Re: errors galore in xcode for intel mac
Ben Artin <macdev@[EMA  2006-05-18 21:22:55 
Re: errors galore in xcode for intel mac
"vze35xda@[EMAIL PRO  2006-05-18 19:32:35 
Re: errors galore in xcode for intel mac
adrian.bartholomew@[EMAIL  2006-05-18 20:39:15 
Re: errors galore in xcode for intel mac
"Wayne C. Morris&quo  2006-05-19 19:01:04 
Re: errors galore in xcode for intel mac
adrian.bartholomew@[EMAIL  2006-05-19 12:03:42 
Re: errors galore in xcode for intel mac
adrian.bartholomew@[EMAIL  2006-05-19 12:07:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 23:07:47 PST 2009.