Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Does stl work?

Does stl work?
Thread Tools
Dedicated MacNNer
Join Date: Sep 2000
Location: Boulder City, NV USA
Status: Offline
Reply With Quote
Apr 13, 2002, 10:44 PM
 
Hi all. I need some help. I cannot seem to build anything that uses stl_algo.h

The specific functions I would like to use are sort and random_shuffle, both operating on a vector.

random_shuffle won't build at all giving the error:

/usr/include/gcc/darwin/2.95.2/g++/stl_algo.h:852: instantiated from `random_shuffle<int *>(int *, int *)'

sort builds but runs to an endless loop, consuming CPU 100% until forced to stop.

Any help is greatly appreciated...
     
Dedicated MacNNer
Join Date: Jun 2000
Location: Dundas, Ontario, Canada
Status: Offline
Reply With Quote
Apr 14, 2002, 11:53 AM
 
I have used the stl on OS X but I did find some odd things in doing so. It seems as though the version they ship is slightly odd. I am not sure why but there were some odd differences I found such as the method "at()" for a vector. It doesn't exist but it does compile and do what one would expect under OS X. I don't understand how that happened but it did.

I didn't try to use what you are so I am not sure but try someone on one of Apple's dev lists.

Hope that helps,
Jeff.
Spectral Class
"Shedding Light on Innovation"
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:45 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2