470,874 Members | 1,776 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,874 developers. It's quick & easy.

help dev c++

Hello
i run dev c++ 4.9.9.2 gcc 3.4.2 windows xp family
is it possible to add to gcc the STL ?
thank you in advance
friendly
jerome
May 24 '06 #1
21 2146
su*****@wanadoo.fr wrote:
i run dev c++ 4.9.9.2 gcc 3.4.2 windows xp family
is it possible to add to gcc the STL ?


Isn't Dev-C++ an open source project? As such, doesn't it have
its own forum?
May 24 '06 #2

su*****@wanadoo.fr wrote:
Hello
i run dev c++ 4.9.9.2 gcc 3.4.2 windows xp family
is it possible to add to gcc the STL ?


I don't know if you are meaning gcc as in the whole "gnu compiler
collection" or the "gnu c compiler". If the later then you also need
g++ and it should come with the std lib.

Any of the compilers usually have both. Use g++ as the command line
tool for compiling cpp files or it won't link in the right std lib.

May 24 '06 #3
Hello Victor
i have first checked with google/groups and did not
find any specific other than "comp.lang.c++"
friendly
jerome

On Wed, 24 May 2006 17:14:31 -0400, "Victor Bazarov"
<v.********@comAcast.net> wrote:
su*****@wanadoo.fr wrote:
i run dev c++ 4.9.9.2 gcc 3.4.2 windows xp family
is it possible to add to gcc the STL ?


Isn't Dev-C++ an open source project? As such, doesn't it have
its own forum?


May 24 '06 #4
Hello Noah
i have g++. I looked for vector and map and did not
find them in the help from dev c++. Then i concluded
it did not have the STL. maybe i am all wrong. If i add
that i am newcomer it will explain my fuzziness.
thank you
friendly
jerome

On 24 May 2006 14:18:25 -0700, "Noah Roberts" <ro**********@gmail.com>
wrote:

su*****@wanadoo.fr wrote:
Hello
i run dev c++ 4.9.9.2 gcc 3.4.2 windows xp family
is it possible to add to gcc the STL ?


I don't know if you are meaning gcc as in the whole "gnu compiler
collection" or the "gnu c compiler". If the later then you also need
g++ and it should come with the std lib.

Any of the compilers usually have both. Use g++ as the command line
tool for compiling cpp files or it won't link in the right std lib.


May 24 '06 #5
such...@wanadoo.fr wrote:
Victor Bazarov wrote:
such...@wanadoo.fr wrote:
i run dev c++ 4.9.9.2 gcc 3.4.2 windows xp family
is it possible to add to gcc the STL ?
Isn't Dev-C++ an open source project? As such, doesn't it have
its own forum?
i have first checked with google/groups and did not
find any specific other than "comp.lang.c++"


1) don't top-post (http://en.wikipedia.org/wiki/Top-post)
2) learn to use google
(http://sourceforge.net/forum/forum.php?forum_id=48211)
Jonathan

May 24 '06 #6
such...@wanadoo.fr wrote:
Hello Noah
i have g++. I looked for vector and map and did not
find them in the help from dev c++. Then i concluded
it did not have the STL. maybe i am all wrong. If i add
that i am newcomer it will explain my fuzziness.
thank you
friendly
jerome


I think you are wrong. Try the following program:

#include <vector>
int main()
{
std::vector<int> v;
v.push_back(0);
}

Compile it. If it compiles, then clearly you have the standard library
(including vector, map, and everything else you're calling the "STL").
If it doesn't compile, post the error message.

Best regards,

Tom

May 24 '06 #7
suchodj wrote:
i have first checked with google/groups and did not
find any specific other than "comp.lang.c++"


There are more forums than newsgroups. Here:

http://www.google.com/search?q=dev+c%2B%2B+mailing+list

--
Phlip
May 24 '06 #8
Thomas Tutone <Th***********@yahoo.com> wrote:
#include <vector>
int main()
{
std::vector<int> v;
v.push_back(0); return 0; } Compile it. If it compiles, then clearly you have the standard library
(including vector, map, and everything else you're calling the "STL").
If it doesn't compile, post the error message.


Besides the warning for omitting the return value :-)

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
May 25 '06 #9
Christopher Benson-Manica wrote:
Thomas Tutone <Th***********@yahoo.com> wrote:
#include <vector>
int main()
{
std::vector<int> v;
v.push_back(0);

return 0;
}

Compile it. If it compiles, then clearly you have the standard library
(including vector, map, and everything else you're calling the "STL").
If it doesn't compile, post the error message.


Besides the warning for omitting the return value :-)


main() is magic. No return is the equivalent of return 0;.

--
Phlip

May 25 '06 #10
On 24 May 2006 14:33:22 -0700, "Jonathan Mcdougall"
<jo***************@gmail.com> wrote:
such...@wanadoo.fr wrote:
Victor Bazarov wrote:
such...@wanadoo.fr wrote:
i run dev c++ 4.9.9.2 gcc 3.4.2 windows xp family
is it possible to add to gcc the STL ?Isn't Dev-C++ an open source project? As such, doesn't it have
its own forum?
i have first checked with google/groups and did not
find any specific other than "comp.lang.c++"


1) don't top-post (http://en.wikipedia.org/wiki/Top-post)

according to the above wiki "Top-posting is criticized by some
definitions of Internet etiquette.", it is only "some definitions"
could that mean there are other possibilities ?2) learn to use google
(http://sourceforge.net/forum/forum.php?forum_id=48211) thank you for the above forum
jerome

Jonathan


May 25 '06 #11
On 24 May 2006 14:38:56 -0700, "Thomas Tutone"
<Th***********@yahoo.com> wrote:
such...@wanadoo.fr wrote:
Hello Noah
i have g++. I looked for vector and map and did not
find them in the help from dev c++. Then i concluded
it did not have the STL. maybe i am all wrong. If i add
that i am newcomer it will explain my fuzziness.
thank you
friendly
jerome
I think you are wrong. Try the following program:

#include <vector>
int main()
{
std::vector<int> v;
v.push_back(0);

it works perfectly. thank you very much for helping
friendly
jerome

}

Compile it. If it compiles, then clearly you have the standard library
(including vector, map, and everything else you're calling the "STL").
If it doesn't compile, post the error message.

Best regards,

Tom


May 25 '06 #12
su*****@wanadoo.fr wrote:
On 24 May 2006 14:33:22 -0700, "Jonathan Mcdougall"
<jo***************@gmail.com> wrote:

[snip]
1) don't top-post (http://en.wikipedia.org/wiki/Top-post)

according to the above wiki "Top-posting is criticized by some
definitions of Internet etiquette.", it is only "some definitions"
could that mean there are other possibilities ?


Yes, it appears to be a cultural thing. However, from my experience in this
newsgroup, top-posting is somewhat frowned upon *here*: all regulars in
this group do not top-post, and top-posters regularly are told not to do
that.
Best

Kai-Uwe Bux
May 25 '06 #13
* Kai-Uwe Bux:
su*****@wanadoo.fr wrote:
On 24 May 2006 14:33:22 -0700, "Jonathan Mcdougall"
<jo***************@gmail.com> wrote:

[snip]
1) don't top-post (http://en.wikipedia.org/wiki/Top-post)

according to the above wiki "Top-posting is criticized by some
definitions of Internet etiquette.", it is only "some definitions"
could that mean there are other possibilities ?


Yes, it appears to be a cultural thing. However, from my experience in this
newsgroup, top-posting is somewhat frowned upon *here*: all regulars in
this group do not top-post, and top-posters regularly are told not to do
that.


The Wikipedia article on top-posting mentions this group especially... ;-)

And links to a defense of top-posting that quotes a version of my sig.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
May 25 '06 #14
su*****@wanadoo.fr wrote:
Hello
i run dev c++ 4.9.9.2 gcc 3.4.2 windows xp family


A bit OT, but you should rather move to Code::Blocks (Also called
"Dev-C++ 2" by some). Dev-C++ have been a dead project for 2(?) years now.

www.codeblocks.org - They have an active forum and a wiki.
May 25 '06 #15
Christopher Benson-Manica wrote:
Thomas Tutone <Th***********@yahoo.com> wrote:
#include <vector>
int main()
{
std::vector<int> v;
v.push_back(0);

return 0;
}

Compile it. If it compiles, then clearly you have the standard library
(including vector, map, and everything else you're calling the "STL").
If it doesn't compile, post the error message.


Besides the warning for omitting the return value :-)


return is not required
May 25 '06 #16
suchodj wrote:
1) don't top-post (http://en.wikipedia.org/wiki/Top-post)
according to the above wiki "Top-posting is criticized by some
definitions of Internet etiquette.", it is only "some definitions"
could that mean there are other possibilities ?


Wikipedia has a team of morons who tirelessly patrol its pages and viciously
remove any perceived "point of view", even if it's obviously correct, and
even if it's not a point of view. So someone had to insert "some
definitions" to prevent the entire paragraph from getting whacked. It's
meaningless - there are no other known definitions of USENET netiquette.

Everyone who writes a post should take a little time to trim quotes and put
things in the right order, with space and punctuation. Each post should be
complete, self-contained, and high quality.

--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!
May 25 '06 #17
On Thu, 25 May 2006 12:16:27 +0200, Einar Forselv <en****@Mcontraz.no>
wrote:
su*****@wanadoo.fr wrote:
Hello
i run dev c++ 4.9.9.2 gcc 3.4.2 windows xp family


A bit OT, but you should rather move to Code::Blocks (Also called
"Dev-C++ 2" by some). Dev-C++ have been a dead project for 2(?) years now.

www.codeblocks.org - They have an active forum and a wiki.

thank you for this information. More generally, i need an c/c++ free
ide/compiler, a friend told me dev c++, it seems outdated. Which
advice could you give me apart of Code::Blocks ?
thank you in advance
jerome

May 25 '06 #18
su*****@wanadoo.fr wrote:
thank you for this information. More generally, i need an c/c++ free
ide/compiler, a friend told me dev c++, it seems outdated. Which
advice could you give me apart of Code::Blocks ?


Code::Blocks *is* a free IDE that supports several compilers. The
default intsallation use g++/mingw, so you get everything you need out
of the box. You can even import devcpp and VC++ project files. Download
RC2 and update the exe file + dlls from the most recent nightly build
and you are up and running with a fresh version.

And yes.. Dev-C++ is *old*. For more help and info, use the forums at
www.codeblocks.org.
May 25 '06 #19
On 2006-05-25 16:08, su*****@wanadoo.fr wrote:
On Thu, 25 May 2006 12:16:27 +0200, Einar Forselv <en****@Mcontraz.no>
wrote:
su*****@wanadoo.fr wrote:
Hello
i run dev c++ 4.9.9.2 gcc 3.4.2 windows xp family


A bit OT, but you should rather move to Code::Blocks (Also called
"Dev-C++ 2" by some). Dev-C++ have been a dead project for 2(?) years now.

www.codeblocks.org - They have an active forum and a wiki.

thank you for this information. More generally, i need an c/c++ free
ide/compiler, a friend told me dev c++, it seems outdated. Which
advice could you give me apart of Code::Blocks ?
thank you in advance
jerome


There is always the Visual Studio C++ 2005 Express if you don't mind it
being Microsoft and don't want a light-weight development environment.
More info: http://msdn.microsoft.com/vstudio/express/visualc/

Erik Wikström
--
"I have always wished for my computer to be as easy to use as my
telephone; my wish has come true because I can no longer figure
out how to use my telephone" -- Bjarne Stroustrup
May 25 '06 #20
su*****@wanadoo.fr wrote:
On 24 May 2006 14:33:22 -0700, "Jonathan Mcdougall"
<jo***************@gmail.com> wrote:

1) don't top-post (http://en.wikipedia.org/wiki/Top-post)

according to the above wiki "Top-posting is criticized by some
definitions of Internet etiquette.", it is only "some definitions"
could that mean there are other possibilities ?


Forget wikipedia, refer to the newsgroup FAQ:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.4

Brian
May 25 '06 #21
phlip <ph*******@geeemail.com> wrote:
main() is magic. No return is the equivalent of return 0;.


I would have bet that g++ would warn if it were omitted, but the
joke's on me. D'oh!

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
May 26 '06 #22

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Tom | last post: by
6 posts views Thread by wukexin | last post: by
3 posts views Thread by Colin J. Williams | last post: by
7 posts views Thread by Corepaul | last post: by
5 posts views Thread by Steve | last post: by
8 posts views Thread by Mark | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.