Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

errors galore in xcode for intel mac

 
   Mac (Home) -> Tools RSS
Next:  Locating "properties" on my Mac  
Author Message
adrian.bartholomew

External


Since: May 18, 2006
Posts: 6



(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.
Back to top
Login to vote
vze35xda

External


Since: Sep 17, 2005
Posts: 53



(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 ?
Back to top
Login to vote
adrian.bartholomew

External


Since: May 18, 2006
Posts: 6



(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
Back to top
Login to vote
Ben Artin

External


Since: Aug 26, 2005
Posts: 38



(Msg. 4) Posted: Thu May 18, 2006 9:22 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 <1147998392.921821.157830 DeleteThis @i40g2000cwc.googlegroups.com>,
adrian.bartholomew DeleteThis @gmail.com wrote:

> 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.

It's completely impossible to help you if you don't provide us with any
information about what errors you got.

Ben

--
If this message helped you, consider buying an item
from my wish list: <http://artins.org/ben/wishlist>

I changed my name: <http://periodic-kingdom.org/People/NameChange.php>

*** Posted via a free Usenet account from http://www.teranews.com ***
Back to top
Login to vote
adrian.bartholomew

External


Since: May 18, 2006
Posts: 6



(Msg. 5) 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?
Back to top
Login to vote
adrian.bartholomew

External


Since: May 18, 2006
Posts: 6



(Msg. 6) 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
Back to top
Login to vote
Wayne C. Morris

External


Since: Aug 09, 2005
Posts: 92



(Msg. 7) 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 <1148009955.924266.175160 RemoveThis @y43g2000cwc.googlegroups.com>,
adrian.bartholomew RemoveThis @gmail.com 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.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Xcode Book? - Hello everybody, I would like to learn Xcode, the problem I do not know anaything about programming...yeah I know it sounds strange, but I would like to learn how to do my own stuff, so far I've been simulating things using macromedia director, but I..

Xcode 2.3 Problems - Instead of being cautious like usual, I just went ahead and upgraded my version of Xcode to the new 2.3. Now my debugging is essentially non-existent. I have a dylib project which I debug using a custom executable (a non-Xcode controlled app). After..

Java development on OS X; XCode vs The World. - I'm doing some Java development on my OS X machines (Pismo/400/320MB, Quicksilver/733/1.2GB, both running 10.3.9). XCode ont he Pismo is dog slow but on the QS is relatively better. Are there any other alternatives to Java? Does CodeWarrior do it? ..

XCode - Key command to close all windows? - Hi, Is there a way to close all open editor windows within xcode 2.x? (The equivalent of opt-cmd-w that works in most apps and the Finder) Thanks Steve

[XCode] adding a task to the build phase - Hey all, i'd like to add a build phase into my target. in case of build success create a dmg archive of the resulting app and put that in the dist folder of the project. do u have some link about that ? Yvon -- une bévue
       Mac (Home) -> Tools All times are: Pacific Time (US & Canada) (change)
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
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact