Welcome to MacBoardz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

errors galore in xcode for intel mac

 
   Macintosh computer (Home) -> Tools RSS
Next:  Xcode and Cross Platform Dev (cmake,scons)  
Author Message
adrian.bartholomew

External


Since: May 18, 2006
Posts: 9



(Msg. 1) Posted: Thu May 18, 2006 5:26 pm
Post subject: errors galore in xcode for intel mac
Archived from groups: comp>sys>mac>programmer>tools (more info?)

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


the above USED to compile flawlessly under codewarrior in my G4 non
intel mac. now it doesnt.
i have the macbook pro running 10.4.6 and xcode.
help.

 >> Stay informed about: errors galore in xcode for intel mac 
Back to top
Login to vote
vze35xda

External


Since: Jan 08, 2005
Posts: 158



(Msg. 2) Posted: Thu May 18, 2006 7:32 pm
Post subject: Re: errors galore in xcode for intel mac [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Uh, does Xcode have the libraries & include files for MSL
(Metrowerks System Library ?) stuff ?

 >> Stay informed about: errors galore in xcode for intel mac 
Back to top
Login to vote
adrian.bartholomew

External


Since: May 18, 2006
Posts: 9



(Msg. 3) Posted: Thu May 18, 2006 8:39 pm
Post subject: Re: errors galore in xcode for intel mac [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

libraries and include files huh.
i didnt think (famous last words) that id have o do that. y woldnt
xcode have all the basic necessary stuff. i didnt put them in
codewarrior. i just put the include statement in.

but i think u hit the nail on the head.

below are the errors im getting


/Volumes/The Docs 1/Gigs/Gigs.cp:124: error: expected initializer
before 'strtok2'
/Volumes/The Docs 1/Gigs/Gigs.cp:127: error: expected initializer
before 'strtok2'
/Volumes/The Docs 1/Gigs/Gigs.cp:249: error: 'strtok2' was not declared
in this scope
/Volumes/The Docs 1/Gigs/Gigs.cp:352: error: 'strtok2' was not declared
in this scope
/usr/include/c++/4.0.0/bits/ios_base.h:779: error:
'std::ios_base::ios_base(const std::ios_base&)' is private
/usr/include/c++/4.0.0/iosfwd:55: error: within this context
/usr/include/c++/4.0.0/streambuf:772: error:
'std::basic_streambuf<_CharT, _Traits>::basic_streambuf(const
std::basic_streambuf<_CharT, _Traits>&) [with _CharT = char, _Traits =
std::char_traits<char>]' is private
/usr/include/c++/4.0.0/iosfwd:86: error: within this context
 >> Stay informed about: errors galore in xcode for intel mac 
Back to top
Login to vote
adrian.bartholomew

External


Since: May 18, 2006
Posts: 9



(Msg. 4) Posted: Fri May 19, 2006 12:03 pm
Post subject: Re: errors galore in xcode for intel mac [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

ok wayne. when u stop hating me for my post and making a LOT of sense,
could u suggest a solution for me?
 >> Stay informed about: errors galore in xcode for intel mac 
Back to top
Login to vote
adrian.bartholomew

External


Since: May 18, 2006
Posts: 9



(Msg. 5) Posted: Fri May 19, 2006 12:07 pm
Post subject: Re: errors galore in xcode for intel mac [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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
 >> Stay informed about: errors galore in xcode for intel mac 
Back to top
Login to vote
Wayne C. Morris

External


Since: Jun 28, 2003
Posts: 732



(Msg. 6) Posted: Fri May 19, 2006 7:01 pm
Post subject: Re: errors galore in xcode for intel mac [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
wrote:

> libraries and include files huh.
> i didnt think (famous last words) that id have o do that. y woldnt
> xcode have all the basic necessary stuff. i didnt put them in
> codewarrior. i just put the include statement in.

Xcode does have all the "basic necessary stuff". The MSL is something
Metrowerks added to CodeWarrior; it isn't basic stuff, and was never part
of the Mac OS.

You didn't have to "put them in" CodeWarrior because they're part of
CodeWarrior and were installed at the same time. That's why it's called
the *Metrowerks* System Library.
 >> Stay informed about: errors galore in xcode for intel mac 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Cross compiling with intel-linux - I have a very powerfull AMD Opteron machine but only a iMacG5 for software development. Is it possible to compile my files with gcc 3.4 on Intel Linux ? Anybody ever tried this ?

Q: Is it difficult to port a Win or OS/2 app over to the I.. - I've pretty much given up on my old standby, OS/2, and now a devoted and very happy Intel iMac user - but I miss a few things such as a comprehensive all-in-one easy to use graphics viewer and editing program like PMView (pmview.com). This product comes...

How do I use CVS with Xcode? - [ My apologies if this is double-posted; I don't know whether my ISP's news server is set up right. ] I want to use Xcode to help manage the files in a PHP project I'm working on. There were a couple of files available for Project Builder to get it to....

How do I use CVS with Xcode? - [ My apologies if this is double-posted; I don't know whether my ISP's news server is set up right. ] I could use some help figuring out how to use CVS with Xcode! I set up my CVS repository and imported my source code files into CVS and checked them..

gcc 3.4.4 on Xcode 1.5 - Hello, How can I use gcc 3.4 on Xcode 1.5? gcc 3.4.4 is installed @ /usr/local/bin But, There is no gcc version setting option in Xcode 1.5. someone... Please, help me.
   Macintosh computer (Home) -> Tools All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]