Skip to main content
GameDev.net gamedev.net
🔒 Locked

Strange STL problem.

Started by Cyberdrek Sep 13, 2002 at 2:34 AM 12 replies 3k views
Original Post
Cyberdrek
Cyberdrek
When I code STL using M$haft's version, the string type is in the std namespace. When tell my compiler to use the SGI implementation that I downloaded, MSVC tells me that string is not defined in the std namespace. Yet, if I check the string header, the __STL_BEGIN_NAMESPACE (which is declared as namespace std{ in stl_config.h, which in turn is the first file included in the string header ) declaration is there. Anybody has any idea how to solve this??? Cyberdrek [edited by - Magmai Kai Holmlor on October 3, 2002 10:12:36 PM]
[Cyberdrek | ]
Stoffel
Stoffel
Nice use of M$.
Cyberdrek
Cyberdrek
quote:
Original post by Stoffel
Nice use of M$.



Thanks but that didn''t answer my question. Anybody has any clue as to why MSVC would give me that problem??? I''m sorta fscked about that. Is it an MSVC problem with the SGI STL or would that be fixed with a Visual Studio SP( as I don''t have any installed since I''m on a 56k connection )...




[Cyberdrek | the last true sorcerer | Spirit Mage - mutedfaith.com]
[Cyberdrek | ]
DrPizza
DrPizza
Nice .sig.

It's inspired me.

aha.



[edited by - Magmai Kai Holmlor on October 3, 2002 10:12:50 PM]
char a[99999],*p=a;int main(int c,char**V){char*v=c>0?1[V]:(char*)V;if(c>=0)for(;*v&&93!=*v;){62==*v&&++p||60==*v&&--p||43==*v&&++*p||45==*v&&--*p||44==*v&&(*p=getchar())||46==*v&&putchar(*p)||91==*v&&(*p&&main(0,(char**)(--v+2))||(v=(char*)main(-1,(char**)++v)-1));++v;}else for(c=1;c;c+=(91==*v)-(93==*v),++v);return(int)v;} /*** drpizza@battleaxe.net ***/
SteveC
SteveC
I''m guessing that you need to setup the correct #defines for the SGI STL to work with MS Dev correctly. You might want to check out the documentation on the SGI STL
daerid
daerid
Ok, that''s it. Whoever''s a friggin moderator just fucking ban those sigs.

I''ll mail you a chocolate chip cookie.

Really.
daerid@gmail.com
Oluseyi
Oluseyi
quote:
Original post by Anonymous Poster
ironic that STLPort, and others, do a better job than the native STL at dealing with VC++''s personality quirks.

It''s not ironic. The "native" STL implementation for MSVC is provided by Dinkumware, and P.J. Plaugher has said that a lot of that code was written against a moving target of a draft of the ANSI C++ Standard. STLPort et al came after the standard was nailed down and Dinkumware''s implementation had highlighted MSVC shortcomings. You know, that whole "shoulders of giants" thing.
Cyberdrek
Cyberdrek
quote:
Original post by Anonymous Poster
I know exactly the problem you''re experiencing here; I had to deal with it when I first moved away from MS'' buggy STL implementation (ironic that STLPort, and others, do a better job than the native STL at dealing with VC++''s personality quirks).

But I refuse to tell you until you take off that ridiculous .sig.


It''s a free country... I''m free to put what ever sig I want. Wether you like it or not. I''ve never seen so many babies all in the same area...

( boo hoo hoo, I don''t like your sig so I don''t answer... ) Some community...






[Cyberdrek | the last true sorcerer | Spirit Mage - mutedfaith.com]
[Cyberdrek | ]
Cyberdrek
Cyberdrek
quote:
Original post by Oluseyi
It''s not ironic. The "native" STL implementation for MSVC is provided by Dinkumware, and P.J. Plaugher has said that a lot of that code was written against a moving target of a draft of the ANSI C++ Standard. STLPort et al came after the standard was nailed down and Dinkumware''s implementation had highlighted MSVC shortcomings. You know, that whole "shoulders of giants" thing.


Nice but did you ever get my problem before. I know you''re a big fan of STL...




[Cyberdrek | the last true sorcerer | Spirit Mage - mutedfaith.com]
[Cyberdrek | ]
Beer Hunter
Beer Hunter
quote:
Original post by Cyberdrek
It''s a free country... I''m free to put what ever sig I want. Wether you like it or not.
Nope. This is a privately owned message board; the owners set the rules here.

Oluseyi
Oluseyi
quote:
Original post by Cyberdrek
Nice but did you ever get my problem before. I know you''re a big fan of STL...

I''ve never installed STLPort. I tried installing SGI once; I had a similar problem and I decided it wasn''t worth it (my time is better spent developing tools, etc, than wrestling with installations - also my approach to *nixes). I use a Dinkumware implementation (MSVC 6.0, fixed, or MSVC.Net) on Windows, and the stock GCC (2.95 on school servers) on Solaris.
Oluseyi
Oluseyi
quote:
Original post by Cyberdrek
It''s a free country... I''m free to put what ever sig I want. Wether you like it or not. I''ve never seen so many babies all in the same area...

( boo hoo hoo, I don''t like your sig so I don''t answer... ) Some community...

As has been pointed out, it may be a "free country" but it''s private property (the forum). You''re thus constrained to abide by its rules. Furthermore, a community requires participation and contribution from its members; if your actions cause mass aggravation (and this may sound hypocritical coming from me, but you''ll just have to believe that I''ve changed) then you need to reexamine them. Those .sigs are a major inconvenience to a variety of members for a number of different reasons (bandwidth, excess scrolling, artistic revulsion...)

I saw that you had changed your .sig yesterday or the day before, and I''d been looking for a spot to thank you. It''s kinda out of place here, but thanks for switching .sigs.
Cyberdrek
Cyberdrek
quote:
Original post by Oluseyi
as has been pointed out, it may be a "free country" but it''s private property (the forum). You''re thus constrained to abide by its rules. Furthermore, a community requires participation and contribution from its members; if your actions cause mass aggravation (and this may sound hypocritical coming from me, but you''ll just have to believe that I''ve changed) then you need to reexamine them. Those .sigs are a major inconvenience to a variety of members for a number of different reasons (bandwidth, excess scrolling, artistic revulsion...)

I saw that you had changed your .sig yesterday or the day before, and I''d been looking for a spot to thank you. It''s kinda out of place here, but thanks for switching .sigs.


No need to thank me... As for the rules, I don''t mind abiding by rules but I didn''t know that there was something about the sig length in it. ( I''ve been a member of this site for as long as it started existing, even back when gdnet didn''t exist as one but as many sites... ). Anyhow, my sig has been changed for about a week now because of the other thread about the long sigs...

Well, back to Linux Admin world...


[Cyberdrek | the last true sorcerer | Spirit Mage - mutedfaith.com]
[Cyberdrek | ]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.