dev-cpp-users Mailing List for Dev-C++ (Page 354)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Per W. <pw...@ia...> - 2003-07-09 07:06:44
|
See below
/Per W
On Wed, 9 Jul 2003, Neszt Tibor wrote:
> Hello!
>
> I have a problem. First of all, see the source code:
>
>
> This one is works:
> /* -------------------------------------------------------------------- */
> int putbuffer( /* returns 0 on success */
> void *AppState,
> unsigned char *buffer, /* buffer to put */
> long length /* length of buffer */
> ) {
> size_t ret;
>
> crc = CrcUpdate(crc, buffer, length);
>
> ret = fwrite(buffer, 1, (size_t) length, (FILE *) AppState);
>
> if ((size_t) length != ret)
> return 1;
> else
> return 0;
> }
>
>
>
>
> I tried to change it to work in memory instead of writing to file:
>
> /* -------------------------------------------------------------------- */
> int putbuffer_mem( /* returns 0 on success */
> void *AppState,
> unsigned char *buffer, /* buffer to put */
> long length /* length of buffer */
> ) {
> int i;
unsigned char *tmpptr = (unsigned char*)AppState;
>
> crc = CrcUpdate(crc, buffer, length);
>
> for (i=0;i<length;i++) {
// Here you declare a NEW variable AppState completely different
// from the parameter you sent in. Of course AppState++ doesn't
// do anything since the compiler is clearly aware that you don't
// use this new variable outside of the loop.
// Besides - you can't increment a void* pointer since it doesn't
// point to a data type of a known size.
> char *AppState=buffer[i]; // #1
> AppState++; // #2
tmpptr[i] = buffer[i];
// or *tmpptr++ = *buffer++;
> printf("a\n");
> }
> return 0;
> }
>
> This second one does nothing as I check the AppState.
> Can I use (void *) to allocate memory?
> The original call was
>
> putbuffer( (void *) out, .....) ( out = fopen("name", "wb"); )
>
>
> And now, I call
>
> putbuffer_mem( mem, ....) ( mem = (char *) malloc(size); )
>
>
> What would be the problem?
>
> Is there any mode to mix the #1 and the #2 lines?
>
>
> Thanks Your help in advance.
>
> Regards,
> Neszt Tibor
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Parasoft
> Error proof Web apps, automate testing & more.
> Download & eval WebKing and get a free book.
> www.parasoft.com/bulletproofapps
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Neszt T. <ne...@ss...> - 2003-07-09 06:30:44
|
Hello!
I have a problem. First of all, see the source code:
This one is works:
/* -------------------------------------------------------------------- */
int putbuffer( /* returns 0 on success */
void *AppState,
unsigned char *buffer, /* buffer to put */
long length /* length of buffer */
) {
size_t ret;
crc = CrcUpdate(crc, buffer, length);
ret = fwrite(buffer, 1, (size_t) length, (FILE *) AppState);
if ((size_t) length != ret)
return 1;
else
return 0;
}
I tried to change it to work in memory instead of writing to file:
/* -------------------------------------------------------------------- */
int putbuffer_mem( /* returns 0 on success */
void *AppState,
unsigned char *buffer, /* buffer to put */
long length /* length of buffer */
) {
int i;
crc = CrcUpdate(crc, buffer, length);
for (i=0;i<length;i++) {
char *AppState=buffer[i]; // #1
AppState++; // #2
printf("a\n");
}
return 0;
}
This second one does nothing as I check the AppState.
Can I use (void *) to allocate memory?
The original call was
putbuffer( (void *) out, .....) ( out = fopen("name", "wb"); )
And now, I call
putbuffer_mem( mem, ....) ( mem = (char *) malloc(size); )
What would be the problem?
Is there any mode to mix the #1 and the #2 lines?
Thanks Your help in advance.
Regards,
Neszt Tibor
|
|
From: Nathan S. <cat...@do...> - 2003-07-09 02:01:55
|
I think, for each class you have a header file, so:
class1.h
class1.cpp
class2.h
class2.cpp
main.cpp
If class2 has data members based on a type of class1, i would only #inclu=
de
"class1.h" in class2.h. main.cpp would not have to include class1.h (i
think, i am still learning).
But if main uses object of type class1, you would have to #include
"class1.h" in main.cpp.
I look at my classes in a heirachial (sp?) structure, and only include th=
e
header files that they need.
Nathan.
----- Original Message -----
From: "Ioannis Vranos" <iv...@em...>
To: <dev...@li...>
Sent: Wednesday, July 09, 2003 10:42 AM
Subject: RE: [Dev-C++] Organisation of header files
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Michael Stather
> Sent: Tuesday, July 08, 2003 11:59 PM
> To: dev...@li...
> Subject: [Dev-C++] Organisation of header files
>
>
> Hi,
>
> I divide my classes in a .cpp-file and a
> header-file (as suggested).
> Now I=B4ve heard of 3 possibilities to organise the
> dependencies:
>
> 1. Include only one header file in the
> implementation file, and in this header file,
> beside the class declaration include all required
> headers
>
> 2. Include the header which are important for the
> public interface of the class in the .cpp-file,
> and those who are only important for the methods
> "inside" the class in its header file (sounds the
> most logical)
>
> 3. Don=B4t include any header-file in the
> class-header, but include them all in the
> .cpp-file (before the actual class-header)
>
> Which solution is the best? (Or perhaps a
> completely different solution)
>
> Thanks for your help!!
I have got a headache so here you go. For non-template classes:
1) You can place the definition of the class in all the files you use the
class, that is you can place it in a header file and include that header
file to all the .cpp files you use the class.
This means that for every change in the definition of the class, you will
have to recompile all the source code files which have the definition (th=
e
header).
2) Place the definition of the class in the header file except of the mem=
ber
functions (usually the large ones) that should be defined out of the
definition of the class:
Example:
---- myheader.h
class A
{
int s;
public:
A(int r):s(r) {}
void great_things() const;
};
--- myheader.cpp
#include "myheader.h"
void A::great_things() const
{
// ...
}
For every change in the .cpp file only, no other source code files is nee=
ded
to be recompiled.
Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL 1: http://run.to/noicys
* Alternative URL 2: http://www.noicys.cjb.net
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Ioannis V. <iv...@em...> - 2003-07-09 01:13:55
|
> -----Original Message-----
> From: dev...@li...=20
> [mailto:dev...@li...] On Behalf=20
> Of Michael Stather
> Sent: Tuesday, July 08, 2003 11:59 PM
> To: dev...@li...
> Subject: [Dev-C++] Organisation of header files
>=20
>=20
> Hi,
>=20
> I divide my classes in a .cpp-file and a
> header-file (as suggested).
> Now I=B4ve heard of 3 possibilities to organise the
> dependencies:
>=20
> 1. Include only one header file in the
> implementation file, and in this header file,
> beside the class declaration include all required
> headers
>=20
> 2. Include the header which are important for the
> public interface of the class in the .cpp-file,
> and those who are only important for the methods
> "inside" the class in its header file (sounds the
> most logical)
>=20
> 3. Don=B4t include any header-file in the
> class-header, but include them all in the
> .cpp-file (before the actual class-header)
>=20
> Which solution is the best? (Or perhaps a
> completely different solution)
>=20
> Thanks for your help!!
I have got a headache so here you go. For non-template classes:
1) You can place the definition of the class in all the files you use =
the
class, that is you can place it in a header file and include that header
file to all the .cpp files you use the class.
This means that for every change in the definition of the class, you =
will
have to recompile all the source code files which have the definition =
(the
header).
2) Place the definition of the class in the header file except of the =
member
functions (usually the large ones) that should be defined out of the
definition of the class:
Example:
---- myheader.h
class A
{
int s;
public:
A(int r):s(r) {}
void great_things() const;
};
--- myheader.cpp
#include "myheader.h"
void A::great_things() const
{
// ...
}
For every change in the .cpp file only, no other source code files is =
needed
to be recompiled.
Ioannis Vranos
=20
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL 1: http://run.to/noicys
* Alternative URL 2: http://www.noicys.cjb.net
|
|
From: Peter M. <pet...@im...> - 2003-07-09 00:26:30
|
Hello,
I am still learning C++ and I am not sure how to do this.
I am writing a dictionary for use with secondary students. The words,
descriptions and a unique code get read in from a binary file on disk
and stored in individual nodes of a binary search tree according to the
code in each entry of the binary file on disk.
i can retrieve a word and description at runtime by using the code as
given by the user however, i need to be able to search the tree
structure for the word as given by the user. i can find the word by
testing recursively, but i there is a more efficient way to do this.
here is the search for the code:
////////////////////////////////////////////////////
DicTreeNode* DicBinaryTree::idBTreeSearch(DicTreeNode* nodePtr, long
dicId) {
if (nodePtr != 0) {
if (dicId < nodePtr->id){
this->idBTreeSearch(nodePtr->leftChild,dicId);
}
else if (dicId > nodePtr->id) {
this->idBTreeSearch(nodePtr->rightChild,dicId);
}
else {
rtnNodePtr = nodePtr;
}
return rtnNodePtr;
}
else {
return nodePtr = 0;
}
}
////////////////////////////////////////////////////
the above code works fine with a long as the id for the search...
the code below works but is not a good way of doing the search...
////////////////////////////////////////////////////
DicTreeNode* DicBinaryTree::wordBTreeSearch(DicTreeNode* nodePtr, char*
dicWord ){
if (nodePtr != 0) { // this method of finding the word is not
efficient...
this->wordBTreeSearch(nodePtr->leftChild,dicWord);
this->wordBTreeSearch(nodePtr->rightChild,dicWord);
if (!strcmp(nodePtr->word,dicWord)) {
this->rtnNodePtr = nodePtr;
}
return this->rtnNodePtr;
}
else{
return nodePtr = 0;
}
}
////////////////////////////////////////////////////
any ideas??
TIA
Peter Mead.
|
|
From: <a_g...@ya...> - 2003-07-08 22:25:19
|
Hi Michael , I think the second option is the best, cause I always use it.But in that case just see to it that none of the public methods are declared n the hpp file. If you need a public method to be inline, use the inline keyoword. Moreover, in case you decide to code any of your private functions in the cpp file, again the same situation arises as when you have to mix-up the includes. In those cases the first approach looks good. The third approach does not quite appeal to me. Its just a question of good programming practice, all 3 will work equally well before the code goes through repeated maintainance cycles :-) Hope that helps, avik Michael Stather <mic...@nu...> wrote: Hi, I divide my classes in a .cpp-file and a header-file (as suggested). Now I´ve heard of 3 possibilities to organise the dependencies: 1. Include only one header file in the implementation file, and in this header file, beside the class declaration include all required headers 2. Include the header which are important for the public interface of the class in the .cpp-file, and those who are only important for the methods "inside" the class in its header file (sounds the most logical) 3. Don´t include any header-file in the class-header, but include them all in the .cpp-file (before the actual class-header) Which solution is the best? (Or perhaps a completely different solution) Thanks for your help!! ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users Thanx and Regards Avik Ghose SMS using the Yahoo! Messenger;Download latest version. |
|
From: Michael S. <mic...@nu...> - 2003-07-08 20:59:09
|
Hi, I divide my classes in a .cpp-file and a header-file (as suggested). Now I=B4ve heard of 3 possibilities to organise the dependencies: 1. Include only one header file in the implementation file, and in this header file, beside the class declaration include all required headers 2. Include the header which are important for the public interface of the class in the .cpp-file, and those who are only important for the methods "inside" the class in its header file (sounds the most logical) 3. Don=B4t include any header-file in the class-header, but include them all in the .cpp-file (before the actual class-header) Which solution is the best? (Or perhaps a completely different solution) Thanks for your help!! |
|
From: Per W. <pw...@ia...> - 2003-07-08 19:52:10
|
It's nothing sacred. Dev-C++ uses the MinGW port of the gcc compiler, and
the gcc compiler have the following hard-coded extensions - cut from the
info output on a Linux:
----------
`FILE.c'
C source code which must be preprocessed.
`FILE.i'
C source code which should not be preprocessed.
`FILE.ii'
C++ source code which should not be preprocessed.
`FILE.m'
Objective-C source code. Note that you must link with the library
`libobjc.a' to make an Objective-C program work.
`FILE.mi'
Objective-C source code which should not be preprocessed.
`FILE.h'
C header file (not to be compiled or linked).
`FILE.cc'
`FILE.cp'
`FILE.cxx'
`FILE.cpp'
`FILE.c++'
`FILE.C'
C++ source code which must be preprocessed. Note that in `.cxx',
the last two letters must both be literally `x'. Likewise, `.C'
refers to a literal capital C.
`FILE.f'
`FILE.for'
`FILE.FOR'
Fortran source code which should not be preprocessed.
`FILE.F'
`FILE.fpp'
`FILE.FPP'
Fortran source code which must be preprocessed (with the
traditional preprocessor).
`FILE.r'
Fortran source code which must be preprocessed with a RATFOR
preprocessor (not included with GCC).
*Note Options Controlling the Kind of Output: (g77)Overall
Options, for more details of the handling of Fortran input files.
`FILE.ads'
Ada source code file which contains a library unit declaration (a
declaration of a package, subprogram, or generic, or a generic
instantiation), or a library unit renaming declaration (a package,
generic, or subprogram renaming declaration). Such files are also
called "specs".
`FILE.adb'
Ada source code file containing a library unit body (a subprogram
or package body). Such files are also called "bodies".
`FILE.s'
Assembler code.
`FILE.S'
Assembler code which must be preprocessed.
`OTHER'
An object file to be fed straight into linking. Any file name
with no recognized suffix is treated this way.
You can specify the input language explicitly with the `-x' option:
`-x LANGUAGE'
Specify explicitly the LANGUAGE for the following input files
(rather than letting the compiler choose a default based on the
file name suffix). This option applies to all following input
files until the next `-x' option. Possible values for LANGUAGE
are:
c c-header cpp-output
c++ c++-cpp-output
objective-c objc-cpp-output
assembler assembler-with-cpp
ada
f77 f77-cpp-input ratfor
java
----------
Of course MinGW isn't delivered with all these backends, but this is the
extension-checking supported by gcc. Notice the six different extensions
for a c++ file.
/Per W
On Tue, 8 Jul 2003, R. D. Flowers wrote:
> I repeat. It is solved. It was that .C is a sacred word to the default
> dev-c++ compilers, where I really needed .c .
>
> Smith, Jacob N. wrote:
>
> > "or anyone new to dev-c++ should not need to link in"
> > "Dos non-case-sensitive c-and-asm-only Turbo-C on an XT, the extension was
> > .C, not .c, and dev-c++ took that to mean it was C++"
> >
> > Dev-C++ is a development environment. It sounds like your problem is with
> > GNU/GCC. Please contact the appropriate mailing list (gcc...@gn...) or,
> > alternately, RTFM.
> >
> > -j.
> >
> >
> >
> > .
> >
>
> --
> The Bear At Home
> R. D. Flowers
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Parasoft
> Error proof Web apps, automate testing & more.
> Download & eval WebKing and get a free book.
> www.parasoft.com/bulletproofapps
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: R. D. F. <ro...@ch...> - 2003-07-08 17:03:09
|
I repeat. It is solved. It was that .C is a sacred word to the default dev-c++ compilers, where I really needed .c . Smith, Jacob N. wrote: > "or anyone new to dev-c++ should not need to link in" > "Dos non-case-sensitive c-and-asm-only Turbo-C on an XT, the extension was > .C, not .c, and dev-c++ took that to mean it was C++" > > Dev-C++ is a development environment. It sounds like your problem is with > GNU/GCC. Please contact the appropriate mailing list (gcc...@gn...) or, > alternately, RTFM. > > -j. > > > > . > -- The Bear At Home R. D. Flowers |
|
From: R. D. F. <ro...@ch...> - 2003-07-08 16:02:48
|
My apology. I didn't mean to sound angry, just make things clear. I was emphasizing, because somehow what I said before was clear enough. Per Westermark wrote: > For someone asking for help on this mailing list you sound a bit angry > here. Exactly what are we expected to do? > > /Per W > > > On Tue, 8 Jul 2003, R. D. Flowers wrote: > > >>1. I DON'T WANT, right now, to have this program be a C++ program. It >>has nothing that needs that. It. Is. In. C. >> >>2. To run a C program not much more complicated than a "hello world", I >>or anyone new to dev-c++ should not need to link in some library from space. >> >>3. MAINLY, a couple of days and a few notes back, some kind and >>intelligent person gave me the CORRECT ANSWER. Coming from a Dos >>non-case-sensitive c-and-asm-only Turbo-C on an XT, the extension was >>.C, not .c, and dev-c++ took that to mean it was C++. >> >>Damien . wrote: >> >>>Yea, you could have, or simply use Per's suggestion, and add -lstdc++ to >>>the commands for the linker arguments. The ___gxx_personality_v0 >>>problem seems to rear its head in code compiled as c and not c++. I >>>think you would know how to edit your makefile to compile the program as >>>C++, or call g++. or u can always rename the file with .cpp extension. >>>Hope that helps with any future probs you may have. >>> >>>----Original Message Follows---- >>>From: "R. D. Flowers" >>>To: "Damien ." >>>Subject: Re: [Dev-C++] new dev-cpp bombs out on short program >>>Date: Mon, 07 Jul 2003 13:01:31 -0400 >>>It is just a simple C program, not C++. I just told it a C console >>>program -- I forget what it ran under the hood, but are you telling me I >>>should have told it C++ ? >>>Damien . wrote: >>> >Compile he project with g++ instead of gcc. >>> > >>> >----Original Message Follows---- >>> >From: "R. D. Flowers" >>> >To: dev...@li... >>> >Subject: [Dev-C++] new dev-cpp bombs out on short program >>> >Date: Sun, 06 Jul 2003 21:33:29 -0400 >>> >I just downloaded the recent beta of dev-cpp. I am on W98se. >>> >The linker says that .eh_frame+0x11 in my object file wants >>> >something called ___gxx_personality_v0 . >>> >My program is a short and simple hex dump console program in C . >>> >Can someone give me a hint? >>> >-- >>> >The Bear At Home >>> >R. D. Flowers >>> >------------------------------------------------------- >>> >This SF.Net email sponsored by: Free pre-built ASP.NET sites >>> >including >>> >Data Reports, E-commerce, Portals, and Forums are available now. >>> >Download today and enter to win an XBOX or Visual Studio .NET. >>> >http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 >>> >_______________________________________________ >>> >Dev-cpp-users mailing list >>> >Dev...@li... >>> >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >>> >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >>> > >>> >------------------------------------------------------------------------ >>> >The new MSN 8: smart spam >>> >protection and 2 months FREE* >>> >>>------------------------------------------------------------------------ >>>Tired of spam? Get advanced junk mail protection >>><http://g.msn.com/8HMEEN/2734??PS=> with MSN 8. >> >>-- >>The Bear At Home >>R. D. Flowers, O. H. (of Heresy) >> >>"If you can keep your head when all about you are losing theirs and >>blaming it on you ..." >> >>For the Heretical Bene Gesserit at http://HBeneG.com . No sex till >>7.19.03 (due to custody fight); (custodial) Dad of 5.7.99 Bea. PAGAN >>HUMANIST WITCH of Maat and Eve Gaia. Old good-shape fart. See POMES at >>http://chalice.us/poe/ ! & FILK --> http://fishsingers.org . Likes >>Http://uua.org/CLF & http://cuups.org. Het nonphobe notmostlypoly; wood >>flute; full time, underpaid ($7/hr) 1-person office. Presently in >>Chattanooga. >>PHOTOS: http://pho.fixthe.us . >> >>Geek of http://chattanoogansforpeace.org & http://chattanoogapagans.org >>; Techie news feeds at http://10bea.freezope.org . See also >>http://TNHamilton.com , http://byareas.us , http://chatta.us . I do html >>by hand, and real programming. Looking for writer, weaver, and geek >>partners. Values Linux, Python, and personal technical means. PROUDLY >>hosted at http://drak.net ; uses Mozilla 1.4rc3 suite from >>http://mozilla.org . >>***** DONATE TO ME AT HTTP://CHALICE.US , and link to a cheap, elegant, >>powerful registrar at https://secure.magi.net/dotyou/members.php?aid=612 >>! ***** >> http://stopcarnivore.org !!!! >> *** Justice, Judgment, Privacy, Truth, Earth *** >> >> >> >> >>------------------------------------------------------- >>This SF.Net email sponsored by: Free pre-built ASP.NET sites including >>Data Reports, E-commerce, Portals, and Forums are available now. >>Download today and enter to win an XBOX or Visual Studio .NET. >>http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 >>_______________________________________________ >>Dev-cpp-users mailing list >>Dev...@li... >>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >> > > > > > -- The Bear At Home R. D. Flowers, O. H. (of Heresy) "If you can keep your head when all about you are losing theirs and blaming it on you ..." For the Heretical Bene Gesserit at http://HBeneG.com . No sex till 7.19.03 (due to custody fight); (custodial) Dad of 5.7.99 Bea. PAGAN HUMANIST WITCH of Maat and Eve Gaia. Old good-shape fart. See POMES at http://chalice.us/poe/ ! & FILK --> http://fishsingers.org . Likes Http://uua.org/CLF & http://cuups.org. Het nonphobe notmostlypoly; wood flute; full time, underpaid ($7/hr) 1-person office. Presently in Chattanooga. PHOTOS: http://pho.fixthe.us . Geek of http://chattanoogansforpeace.org & http://chattanoogapagans.org ; Techie news feeds at http://10bea.freezope.org . See also http://TNHamilton.com , http://byareas.us , http://chatta.us . I do html by hand, and real programming. Looking for writer, weaver, and geek partners. Values Linux, Python, and personal technical means. PROUDLY hosted at http://drak.net ; uses Mozilla 1.4rc3 suite from http://mozilla.org . ***** DONATE TO ME AT HTTP://CHALICE.US , and link to a cheap, elegant, powerful registrar at https://secure.magi.net/dotyou/members.php?aid=612 ! ***** http://stopcarnivore.org !!!! *** Justice, Judgment, Privacy, Truth, Earth *** |
|
From: Smith, J. N. <jn...@ut...> - 2003-07-08 14:58:43
|
"or anyone new to dev-c++ should not need to link in" "Dos non-case-sensitive c-and-asm-only Turbo-C on an XT, the extension was .C, not .c, and dev-c++ took that to mean it was C++" Dev-C++ is a development environment. It sounds like your problem is Dev-C++ with GNU/GCC. Please contact the appropriate mailing list Dev-C++ (gcc...@gn...) or, alternately, RTFM. -j. |
|
From: Per W. <pw...@ia...> - 2003-07-08 14:46:21
|
For someone asking for help on this mailing list you sound a bit angry here. Exactly what are we expected to do? /Per W On Tue, 8 Jul 2003, R. D. Flowers wrote: > 1. I DON'T WANT, right now, to have this program be a C++ program. It > has nothing that needs that. It. Is. In. C. > > 2. To run a C program not much more complicated than a "hello world", I > or anyone new to dev-c++ should not need to link in some library from space. > > 3. MAINLY, a couple of days and a few notes back, some kind and > intelligent person gave me the CORRECT ANSWER. Coming from a Dos > non-case-sensitive c-and-asm-only Turbo-C on an XT, the extension was > .C, not .c, and dev-c++ took that to mean it was C++. > > Damien . wrote: > > > > Yea, you could have, or simply use Per's suggestion, and add -lstdc++ to > > the commands for the linker arguments. The ___gxx_personality_v0 > > problem seems to rear its head in code compiled as c and not c++. I > > think you would know how to edit your makefile to compile the program as > > C++, or call g++. or u can always rename the file with .cpp extension. > > Hope that helps with any future probs you may have. > > > > ----Original Message Follows---- > > From: "R. D. Flowers" > > To: "Damien ." > > Subject: Re: [Dev-C++] new dev-cpp bombs out on short program > > Date: Mon, 07 Jul 2003 13:01:31 -0400 > > It is just a simple C program, not C++. I just told it a C console > > program -- I forget what it ran under the hood, but are you telling me I > > should have told it C++ ? > > Damien . wrote: > > >Compile he project with g++ instead of gcc. > > > > > >----Original Message Follows---- > > >From: "R. D. Flowers" > > >To: dev...@li... > > >Subject: [Dev-C++] new dev-cpp bombs out on short program > > >Date: Sun, 06 Jul 2003 21:33:29 -0400 > > >I just downloaded the recent beta of dev-cpp. I am on W98se. > > >The linker says that .eh_frame+0x11 in my object file wants > > >something called ___gxx_personality_v0 . > > >My program is a short and simple hex dump console program in C . > > >Can someone give me a hint? > > >-- > > >The Bear At Home > > >R. D. Flowers > > >------------------------------------------------------- > > >This SF.Net email sponsored by: Free pre-built ASP.NET sites > > >including > > >Data Reports, E-commerce, Portals, and Forums are available now. > > >Download today and enter to win an XBOX or Visual Studio .NET. > > >http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > > >_______________________________________________ > > >Dev-cpp-users mailing list > > >Dev...@li... > > >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > >------------------------------------------------------------------------ > > >The new MSN 8: smart spam > > >protection and 2 months FREE* > > > > ------------------------------------------------------------------------ > > Tired of spam? Get advanced junk mail protection > > <http://g.msn.com/8HMEEN/2734??PS=> with MSN 8. > > -- > The Bear At Home > R. D. Flowers, O. H. (of Heresy) > > "If you can keep your head when all about you are losing theirs and > blaming it on you ..." > > For the Heretical Bene Gesserit at http://HBeneG.com . No sex till > 7.19.03 (due to custody fight); (custodial) Dad of 5.7.99 Bea. PAGAN > HUMANIST WITCH of Maat and Eve Gaia. Old good-shape fart. See POMES at > http://chalice.us/poe/ ! & FILK --> http://fishsingers.org . Likes > Http://uua.org/CLF & http://cuups.org. Het nonphobe notmostlypoly; wood > flute; full time, underpaid ($7/hr) 1-person office. Presently in > Chattanooga. > PHOTOS: http://pho.fixthe.us . > > Geek of http://chattanoogansforpeace.org & http://chattanoogapagans.org > ; Techie news feeds at http://10bea.freezope.org . See also > http://TNHamilton.com , http://byareas.us , http://chatta.us . I do html > by hand, and real programming. Looking for writer, weaver, and geek > partners. Values Linux, Python, and personal technical means. PROUDLY > hosted at http://drak.net ; uses Mozilla 1.4rc3 suite from > http://mozilla.org . > ***** DONATE TO ME AT HTTP://CHALICE.US , and link to a cheap, elegant, > powerful registrar at https://secure.magi.net/dotyou/members.php?aid=612 > ! ***** > http://stopcarnivore.org !!!! > *** Justice, Judgment, Privacy, Truth, Earth *** > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: R. D. F. <ro...@ch...> - 2003-07-08 13:56:03
|
1. I DON'T WANT, right now, to have this program be a C++ program. It has nothing that needs that. It. Is. In. C. 2. To run a C program not much more complicated than a "hello world", I or anyone new to dev-c++ should not need to link in some library from space. 3. MAINLY, a couple of days and a few notes back, some kind and intelligent person gave me the CORRECT ANSWER. Coming from a Dos non-case-sensitive c-and-asm-only Turbo-C on an XT, the extension was .C, not .c, and dev-c++ took that to mean it was C++. Damien . wrote: > > Yea, you could have, or simply use Per's suggestion, and add -lstdc++ to > the commands for the linker arguments. The ___gxx_personality_v0 > problem seems to rear its head in code compiled as c and not c++. I > think you would know how to edit your makefile to compile the program as > C++, or call g++. or u can always rename the file with .cpp extension. > Hope that helps with any future probs you may have. > > ----Original Message Follows---- > From: "R. D. Flowers" > To: "Damien ." > Subject: Re: [Dev-C++] new dev-cpp bombs out on short program > Date: Mon, 07 Jul 2003 13:01:31 -0400 > It is just a simple C program, not C++. I just told it a C console > program -- I forget what it ran under the hood, but are you telling me I > should have told it C++ ? > Damien . wrote: > >Compile he project with g++ instead of gcc. > > > >----Original Message Follows---- > >From: "R. D. Flowers" > >To: dev...@li... > >Subject: [Dev-C++] new dev-cpp bombs out on short program > >Date: Sun, 06 Jul 2003 21:33:29 -0400 > >I just downloaded the recent beta of dev-cpp. I am on W98se. > >The linker says that .eh_frame+0x11 in my object file wants > >something called ___gxx_personality_v0 . > >My program is a short and simple hex dump console program in C . > >Can someone give me a hint? > >-- > >The Bear At Home > >R. D. Flowers > >------------------------------------------------------- > >This SF.Net email sponsored by: Free pre-built ASP.NET sites > >including > >Data Reports, E-commerce, Portals, and Forums are available now. > >Download today and enter to win an XBOX or Visual Studio .NET. > >http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > >_______________________________________________ > >Dev-cpp-users mailing list > >Dev...@li... > >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > >------------------------------------------------------------------------ > >The new MSN 8: smart spam > >protection and 2 months FREE* > > ------------------------------------------------------------------------ > Tired of spam? Get advanced junk mail protection > <http://g.msn.com/8HMEEN/2734??PS=> with MSN 8. -- The Bear At Home R. D. Flowers, O. H. (of Heresy) "If you can keep your head when all about you are losing theirs and blaming it on you ..." For the Heretical Bene Gesserit at http://HBeneG.com . No sex till 7.19.03 (due to custody fight); (custodial) Dad of 5.7.99 Bea. PAGAN HUMANIST WITCH of Maat and Eve Gaia. Old good-shape fart. See POMES at http://chalice.us/poe/ ! & FILK --> http://fishsingers.org . Likes Http://uua.org/CLF & http://cuups.org. Het nonphobe notmostlypoly; wood flute; full time, underpaid ($7/hr) 1-person office. Presently in Chattanooga. PHOTOS: http://pho.fixthe.us . Geek of http://chattanoogansforpeace.org & http://chattanoogapagans.org ; Techie news feeds at http://10bea.freezope.org . See also http://TNHamilton.com , http://byareas.us , http://chatta.us . I do html by hand, and real programming. Looking for writer, weaver, and geek partners. Values Linux, Python, and personal technical means. PROUDLY hosted at http://drak.net ; uses Mozilla 1.4rc3 suite from http://mozilla.org . ***** DONATE TO ME AT HTTP://CHALICE.US , and link to a cheap, elegant, powerful registrar at https://secure.magi.net/dotyou/members.php?aid=612 ! ***** http://stopcarnivore.org !!!! *** Justice, Judgment, Privacy, Truth, Earth *** |
|
From: staale <st...@le...> - 2003-07-08 13:31:04
|
How about reading http://www.alltheweb.com/help/faqs/query_language.html=20 and take a look at the advanced search pages??? Sample: background link:www.codeproject.com OR system tray url:code OR use the www.codehound.com search facilities ?? Best regards Staale At 23:44 07.07.2003 -0500, Jonathan Guisao - Lambdabit wrote: >How I that run at background and display an icon on the task bar. >Thanks! >Jonathan Guisao S. - Lambdabit >jg...@ep... >http://www.angelfire.com/co/Lbit > >________________________________________ >Acceso r=E1pido a Internet con Epm.Net http://www.epm.net.co > > > > > >------------------------------------------------------- >This SF.Net email sponsored by: Free pre-built ASP.NET sites including >Data Reports, E-commerce, Portals, and Forums are available now. >Download today and enter to win an XBOX or Visual Studio .NET. >http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Yeoh H. <ye...@ye...> - 2003-07-08 12:48:03
|
Hi, If you want to know how to use LibXML with Dev-C++, here are some details. What is LibXML2? <extract> Libxml2 is the XML C parser and toolkit developed for the Gnome project. XML itself is a metalanguage to design markup languages, i.e. text language where semantic and structure are added to the content using extra "markup" information enclosed between angle brackets. HTML is the most well-known markup language. Though the library is written in C a variety of language bindings make it available in other environments. Libxml2 is known to be very portable, the library should build and work without serious troubles on a variety of systems (Linux, Unix, Windows, CygWin, MacOS, MacOS X, RISC Os, OS/2, VMS, QNX, MVS, ...) </extract> 1. DevPaks by Jory Thanks to Jory, you can download libxml2 DevPacks from this site: http://www.geocities.com/jcsston/devpacks/ At this site you can find the following DevPaks: libxml2 2.5.4 DevPack for GNU GCC 2.95 Download (493 KB) libxml2 2.5.4 DevPack for GNU GCC 3.2 Download (532 KB) 2. John Fleck has written a basic libxml tutorial and you can download the tutorial in pdf format from the libxml2 website located at: http://www.xmlsoft.org/docs.html or this direct link at: http://www.xmlsoft.org/tutorial/xmltutorial.pdf 3. From the source code listings in John Fleck's libxml tutorial, I've created the following Dev-C++ projects: a. Keyword b. AddKeyword c. AddAttrib d. GetAttrib e. EncConv You can download a zip file that contains the above Dev-C++ projects and source codes from this link: http://www.yeohhs.com/shareware/LibXML2DevCppsamples.zip File size: 8.05K Best Regards, Yeoh -- P.S. More free downloads for Dev-C++ users at http://www.yeohhs.com Forum Tip: By default only the current month's posts are shown in the index. To display all postings, select the View threads sorted by and then select "the beginning" from the dropdown box. |
|
From: David C. <dc...@ya...> - 2003-07-08 05:08:04
|
I have seen 9 bit tape drives on a few main frames. Primarily used for tape drive applications where the 9th bit is a parity check bit on an eight bit byte. dc(:>) __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
|
From: Jonathan G. - L. <jg...@ep...> - 2003-07-08 04:43:59
|
How I that run at background and display an icon on the task bar. Thanks! Jonathan Guisao S. - Lambdabit jg...@ep... http://www.angelfire.com/co/Lbit ________________________________________ Acceso r=E1pido a Internet con Epm.Net http://www.epm.net.co |
|
From: Smith, J. N. <jn...@ut...> - 2003-07-07 23:02:01
|
for MSDOS add the following line: system( "PAUSE" ); or simply open a command prompt and run the executable from there. -j. -----Original Message----- From: Jill John Thomas [mailto:jil...@co...] Sent: Monday, July 07, 2003 5:53 PM To: dev...@li... Subject: [Dev-C++] Please help :) Hello, I am brand new to programming and I downloaded your compiler, but after I put in my code and go to run the program on a dos window to see if it works the window pops up really fast and then goes away, how do I get the window to stay open to test my code? Sorry I am new to this and still learning Thanks p.s. I am trying to practice the code in my schoolbook Jilly |
|
From: Jill J. T. <jil...@co...> - 2003-07-07 22:53:18
|
Hello,
I am brand new to programming and I downloaded your compiler, but after =
I put in my code and go to run the program on a dos window to see if it =
works the window pops up really fast and then goes away, how do I get =
the window to stay open to test my code? Sorry I am new to this and =
still learning Thanks
p.s.
I am trying to practice the code in my schoolbook =
Jilly |
|
From: Per W. <pw...@ia...> - 2003-07-07 20:37:31
|
It was a very long time since I read about ancient IBM machines, but I think the 7090 had it. I'm a bit unsure about the 7030. I have seen references to both 8-bit and 9-bit characters. Other machines with support for 9-bit bytes are PDP-10 Univac Of course several of these machines could support variable bit-vector sizes, allowing for other character sizes too, such as 6- or 8-bit. /Per W On Mon, 7 Jul 2003, William Mc Coy wrote: > I've worked on all IBM hardware from 1401 through 3090 machine's. Which machine has a 9 bit byte? > > I really don't think there ever was a machine that handled 9 bit bytes. > > ----- Original Message ----- > From: Per Westermark > Sent: Monday, July 07, 2003 6:18 AM > To: Ioannis Vranos > Cc: Dev-C++ Mailing List > Subject: Re: [Dev-C++] Question about bit representation > > I'm not sure if a byte by definition may be anything but 8 bit. > > However, at least IBM have old irons with 9-bit characters. I assume that > they are using own-defined floating point data too. > |
|
From: William Mc C. <WIL...@ms...> - 2003-07-07 19:36:59
|
I've worked on all IBM hardware from 1401 through 3090 machine's. Which m= achine has a 9 bit byte? =20 I really don't think there ever was a machine that handled 9 bit bytes. ----- Original Message ----- From: Per Westermark Sent: Monday, July 07, 2003 6:18 AM To: Ioannis Vranos Cc: Dev-C++ Mailing List Subject: Re: [Dev-C++] Question about bit representation I'm not sure if a byte by definition may be anything but 8 bit. However, at least IBM have old irons with 9-bit characters. I assume that they are using own-defined floating point data too. |
|
From: Ioannis V. <iv...@em...> - 2003-07-07 18:55:21
|
The funny part is that at the ancient times I joined Internet (1996) = there were no ready mailing list servers. So you wither had a mailing server whicch would automatically forward everything to the recipients (which = would be mainly a UNIX system then) or you Cced everything manually yourself = to the other recipients. The functionality of this mailing list is = something like a partly hybrid of nowadays and of that time. Now lets make a Dev-C++ BBS. Is anyone in? :-) Ioannis Vranos =20 * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net > -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Michal Molhanec > Sent: Monday, July 07, 2003 9:27 PM > To: dev...@li... > Subject: Re: [Dev-C++] Super charging the string class >=20 >=20 > Abhijit Shylanath wrote: > > Hello, Michal. > >=20 > >=20 > >>2 admin: why isn't this mailing list setting correctly=20 > Reply-To header? > >>Can you, please, do something with it? > >=20 > >=20 > > I think the ML is set up like that, so that you reply=20 > off-line by default. > > What most of us do when we want to post on the list is=20 > `Reply All', which > > also drops a direct copy into the recepients' mailboxes (I=20 > remember once > > when the list server was acting up, so this may be a wise=20 > precaution). >=20 > but i don't understand logic of that: most of the people who asks are=20 > subscribed so they will got the reply twice >=20 > i'm subsribed to many mailing lists but only this one is=20 > doing this so=20 > every time i reply in this list i'm surprised what happened :-) >=20 > sadly my e-mail program hasn't Reply-to-list feature as has KMail >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_06 1203_01/01 _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Michal M. <mol...@se...> - 2003-07-07 18:26:41
|
Abhijit Shylanath wrote: > Hello, Michal. > > >>2 admin: why isn't this mailing list setting correctly Reply-To header? >>Can you, please, do something with it? > > > I think the ML is set up like that, so that you reply off-line by default. > What most of us do when we want to post on the list is `Reply All', which > also drops a direct copy into the recepients' mailboxes (I remember once > when the list server was acting up, so this may be a wise precaution). but i don't understand logic of that: most of the people who asks are subscribed so they will got the reply twice i'm subsribed to many mailing lists but only this one is doing this so every time i reply in this list i'm surprised what happened :-) sadly my e-mail program hasn't Reply-to-list feature as has KMail |
|
From: Daniel G. <sp...@ho...> - 2003-07-07 17:48:18
|
You'll be pleased to hear Ioannis that I've been following your example of
where to put 'using namespace std;' for a while now (because we don't want
to defeat the purpose of the namespace system do we?) but I just typed it
into the example as-is to ensure I got it right. Bit paranoid y'see lol.
Thanks,
Daniel
>From: "Ioannis Vranos" <iv...@em...>
>To: <dev...@li...>
>Subject: RE: [Dev-C++] Help using the STL please!
>Date: Mon, 7 Jul 2003 20:40:35 +0300
>
> > -----Original Message-----
> > From: dev...@li...
> > [mailto:dev...@li...] On Behalf
> > Of Daniel Glenfield
> > Sent: Monday, July 07, 2003 7:21 PM
> > To: dev...@li...
> > Subject: [Dev-C++] Help using the STL please!
> >
> >
> > Hi guys,
> > page 1 of the book I'm going through and the code doesn't
> > work. Header
> > problem? Possibly. Take a look.
> > It is complaining that 'sort' is undeclared. Now it
> > auto-helps me with the
> > function paramter list so it knows of it, but it will not
> > compile under VC++
> > 6.0
>
>
>In C++98/C99 if the execution reaches the end of main() it is as if you
>return 0;
>
>
> >
> > P.S. The book example doesn't say what headers to include,
> > plus it has int
> > main(), and no return value for the function. So mine looks slightly
> > different in those respects.
> >
> > // Include the Standard Template Library
> > #include <list>
> > #include <vector>
> > #include <iostream>
> > #include <string>
>
>
>#include <algorithm>
>
>
>
> > using namespace std;
>
>Nope.
>
>
>
> > int main(int argc, char** argv)
> > {
>
>using namespace std;
>
>
>
>
>
>
>Ioannis Vranos
>
>* Programming pages: http://www.noicys.freeurl.com
>* Alternative URL 1: http://run.to/noicys
>* Alternative URL 2: http://www.noicys.cjb.net
>
>
>
>
>-------------------------------------------------------
>This SF.Net email sponsored by: Free pre-built ASP.NET sites including
>Data Reports, E-commerce, Portals, and Forums are available now.
>Download today and enter to win an XBOX or Visual Studio .NET.
>http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today!
http://www.msn.co.uk/messenger
|
|
From: Ioannis V. <iv...@em...> - 2003-07-07 17:40:50
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Daniel Glenfield
> Sent: Monday, July 07, 2003 7:21 PM
> To: dev...@li...
> Subject: [Dev-C++] Help using the STL please!
>
>
> Hi guys,
> page 1 of the book I'm going through and the code doesn't
> work. Header
> problem? Possibly. Take a look.
> It is complaining that 'sort' is undeclared. Now it
> auto-helps me with the
> function paramter list so it knows of it, but it will not
> compile under VC++
> 6.0
In C++98/C99 if the execution reaches the end of main() it is as if you
return 0;
>
> P.S. The book example doesn't say what headers to include,
> plus it has int
> main(), and no return value for the function. So mine looks slightly
> different in those respects.
>
> // Include the Standard Template Library
> #include <list>
> #include <vector>
> #include <iostream>
> #include <string>
#include <algorithm>
> using namespace std;
Nope.
> int main(int argc, char** argv)
> {
using namespace std;
Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL 1: http://run.to/noicys
* Alternative URL 2: http://www.noicys.cjb.net
|