dev-cpp-users Mailing List for Dev-C++ (Page 274)
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: <age...@co...> - 2003-12-30 22:07:03
|
This problem isn't on Linux, my .exes are around 12kb are so for a simple program that does multiplication. -- ~~Scott Simontis~~ Programmer > On Mon, 29 Dec 2003, Jack Chen wrote: > > > Does anyone think the developers of Dev-C++ will change it? It's very > > scary. > > This isn't really unique to Mingw32. In fact, you will hear a lot of C > fans argue that one of the reasons they don't like C++ is because the > Standard C++ library is so bloated, and does produce such large binaries. > > Now the GCC compiler is not known for being the most efficient compiler in > the world, or for doing a really good job of optimizing code, and the > problem is exagerated in GCC over some other compilers. But the problem > does exist in other compilers as well. > > But I think what you need to ask is does it matter? GCC is free, and it > does optimize well enough for all but the most demanding tasks. The C++ > Standard Library might be bloated, but is a 400K executable really a > problem when the average computer today has 256Mb of RAM? > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > 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: Matthews <dem...@uw...> - 2003-12-30 14:25:54
|
Yes, I would suggest that there be a 'moderator' group of users that can create new groups. Otherwise the repository was pretty good, although some of the text was too large, IMHO. Also for some of the devpaks the download pointed to the link location :\ (eg. the SDL devpak I believe) At 08:28 PM 29/12/2003 +0100, Tim Schumacher wrote: >Hi Michal, > >you wrote: > >> the devpak repository project is opened >> at http://molhanec.net/devpaks/. > >Great work. But I think there should be some limitation in creating new >categories. First they should be general, like 3d Graphics, >Multimediaplatfrom or Framesets. Second not everyone should be allowed >to create new categories, maybe only a 'moderator' can create new, if >there are in one category too much devpacks of the same kind. So far so >_very_ good. > >> It tries to be repository of links >> to devpaks, so go and add your devpaks >> there :-). > >Maybe the project could be moved to a opensource platform like >http://www.berlios.de/index.php.en or http://savannah.nongnu.org/. Then >all the DevPacks could be hosted on these pages without any >bandwidthproblems. > >so long > >Tim > > >------------------------------------------------------- >This SF.net email is sponsored by: IBM Linux Tutorials. >Become an expert in LINUX or just sharpen your skills. Sign up for IBM's >Free Linux Tutorials. Learn everything from the bash shell to sys admin. >Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click >_______________________________________________ >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: Ed C. <em...@ed...> - 2003-12-30 05:13:06
|
Never mind; it's because I didn't include some other files on which
myfunctions.c depends. That's kind of a strange error for it to give me,
though - the error message has nothing to do with the problem!
-Ed
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Ed Cottrell
Sent: Monday, December 29, 2003 11:19 PM
To: dev...@li...
Subject: [Dev-C++] Struct defined in external file
Hi all,
I'm desperate and hoping somebody here can help.
I have a project with a struct defined like this in myfile.h:
typedef struct { SQLINTEGER id; } mystruct;
In another file, myfunctions.c, I have:
#include "myfile.h"
void functiona(mystruct * ptrmystruct)
{
//some junk
return;
}
When I compile, I get errors:
[in myfunctions.c:] In file included from myfunctions.c
[in myfile.h] parse error before "SQLINTEGER"
[in myfile.h] [Warning] no semicolon at end of struct or union
What is this about?
-Ed
|
|
From: Ed C. <em...@to...> - 2003-12-30 04:17:41
|
Hi all,
I'm desperate and hoping somebody here can help.
I have a project with a struct defined like this in myfile.h:
typedef struct { SQLINTEGER id; } mystruct;
In another file, myfunctions.c, I have:
#include "myfile.h"
void functiona(mystruct * ptrmystruct)
{
//some junk
return;
}
When I compile, I get errors:
[in myfunctions.c:] In file included from myfunctions.c
[in myfile.h] parse error before "SQLINTEGER"
[in myfile.h] [Warning] no semicolon at end of struct or union
What is this about?
-Ed
|
|
From: Evandro L. P. Da S. <eva...@di...> - 2003-12-30 03:14:14
|
That was cool but you had ommitted stdio.h for getchar().
I converted your code to be valid ANSI C++ (you had coded in preANSI
style):
/* Jay Silverman //
// Lab 19.6 The Towers of Hanoi //
// 12-4-01 */
#include <iostream>
#include <fstream>
#include <cstdio>
void solveHanoi(const int disks,const int from,const int to,const int
use,
int &moves, std::ofstream &fout, const int choice);
int main(){
using namespace std;
// Var. declar.
int disks=0,moves=0,choice=0;
ofstream fout("TowersofHanoi.out");
// Intro text
cout<<"Welcome to Joy's Towers of Hanoi Solver App!\n";
cout<<"--------------------------------------------\n\n";
fout<<"Welcome to Joy's Towers of Hanoi Solver App!\n";
fout<<"--------------------------------------------\n\n";
cout<<" The formula for the minimum number of moves is\n";
cout<<" simple. It is # of moves = (2^disks)-1.\n\n";
fout<<" The formula for the minimum number of moves is\n";
fout<<" simple. It is # of moves = (2^disks)-1.\n\n";
cout<<" How was this derived? Well, one must first know\n";
cout<<" the three things needed done to solve this
puzzle.\n\n";
fout<<" How was this derived? Well, one must first know\n";
fout<<" the three things needed done to solve this
puzzle.\n\n";
cout<<" Once one knows that, you can use it to create a
very\n";
cout<<" simple yet not necessarily easily thought of
recursive\n";
cout<<" function, and using that, some thought, and perhaps
some\n";
cout<<" playing around, derive the formula.\n\n";
fout<<" Once one knows that, you can use it to create a
very\n";
fout<<" simple yet not necessarily easily thought of
recursive\n";
fout<<" function, and using that, some thought, and perhaps
some\n";
fout<<" playing around, derive the formula.\n\n";
getchar();
cout<<" Mathematical induction is mean. :)\n\n";
fout<<" Mathematical induction is mean. :)\n\n";
getchar();
cout<<" How long will 64 disks take, at one move per two
seconds?\n\n";
cout<<" (2^disks)-1 is equal to 18,446,744,073,709,551,615
moves.\n";
cout<<" Multiply that by 2, and you will find out it will
take\n";
cout<<" 36,893,488,147,419,103,230 seconds to complete. Not
bad! >.<\n\n";
fout<<" How long will 64 disks take, at one move per two
seconds?\n\n";
fout<<" (2^disks)-1 is equal to 18,446,744,073,709,551,615
moves.\n";
fout<<" Multiply that by 2, and you will find out it will take\n";
fout<<" 36,893,488,147,419,103,230 seconds to complete. Not
bad! >.<\n\n";
getchar();
// Get number of disks, must be 1 or higher...
while(disks<1){
cout<<"Number of disks? ";
fout<<"Number of disks? ";
cin>>disks;
fout<<disks<<endl;
}
// Does the user want to pause after each move?
while(choice!=1 && choice!=2){
cout<<"\nPause after each move? (1) Yes, (2) No? ";
fout<<"\nPause after each move? (1) Yes, (2) No? ";
cin>>choice;
fout<<choice<<endl;
}
// Solve it! :)
solveHanoi(disks,1,2,3,moves,fout,choice);
// How many moves did it take?
cout<<"\n\n** Only "<<moves<<" move(s)! Fun. :) **";
fout<<"\n\n** Only "<<moves<<" move(s)! Fun. :) **";
getchar();
fout.close();
}
// Function which solves the puzzle. Required a better
// understading of the puzzle than I had in fourth
// grade ( :) ) and a bit of playing around to get to work.
void solveHanoi(const int disks,const int from,const int to,const int
use,
int &moves, std::ofstream &fout,const int choice)
{
using namespace std;
// No disks? No function.
if (disks==0) return;
// The main recursive loop code, does
// everything while outputting the moves
// and couting the number of moves...
solveHanoi(disks-1,from,use,to,moves,fout,choice);
cout<<"\n Move disk from peg "<<from<<" to peg "<<to<<".";
fout<<"\n Move disk from peg "<<from<<" to peg "<<to<<".\n";
if (choice==1) getchar();
else cout<<endl;
moves++;
solveHanoi(disks-1,use,to,from,moves,fout,choice);
}
I just made the conversion haven't checked how the code works.
Ioannis
* Ioannis Vranos
* Programming pages: <http://www.noicys.d2g.com/>
http://www.noicys.d2g.com
* Alternative URL: <http://run.to/noicys> http://run.to/noicys
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Jason
Silverman
Sent: Wednesday, January 23, 2002 3:20 AM
To: dev...@li...
Subject: Re: [Dev-C++] Tower of Hanoi
Let's try this again. This time I'll actually send the email to the
group. *sigh* =)
|
|
From: Michael C U. <mu...@cb...> - 2003-12-30 02:27:44
|
On Mon, 29 Dec 2003, Jack Chen wrote: > Does anyone think the developers of Dev-C++ will change it? It's very > scary. This isn't really unique to Mingw32. In fact, you will hear a lot of C fans argue that one of the reasons they don't like C++ is because the Standard C++ library is so bloated, and does produce such large binaries. Now the GCC compiler is not known for being the most efficient compiler in the world, or for doing a really good job of optimizing code, and the problem is exagerated in GCC over some other compilers. But the problem does exist in other compilers as well. But I think what you need to ask is does it matter? GCC is free, and it does optimize well enough for all but the most demanding tasks. The C++ Standard Library might be bloated, but is a 400K executable really a problem when the average computer today has 256Mb of RAM? |
|
From: Per W. <pw...@ia...> - 2003-12-30 01:19:52
|
No, the developers of Dev-C++ will not change anything since they are developing an IDE - an integrated environment - and not a compiler. No, the developers of MinGW will not change anything either, since they are "just" creating a port of the gcc compiler for use in the Win32 environment. Maybe, but with not too large probability, the GNU project might look into the implementation of the c++ RTL, and see if they can split in into smaller modules to allow the linker to better strip away unused code from the RTL. The next thing to think about is that a binary linked with a static library will get A LOT bigger than a binary linked with dynamic libraries. /Per W On Mon, 29 Dec 2003, Jack Chen wrote: > So then C++ compiled files will be 10x bigger than C compiled ones? Man > I made a program that draws 3D objects with OpenGL and graphical > interface with GTK. It's C code and the exe is only 34KB. I'm wondering > what the file size will be if I do it in C++... > > Does anyone think the developers of Dev-C++ will change it? It's very > scary. > > Jack > > --- OROSZI_Bal=E1zs <or...@vp...> wrote: > Kevin Sopp wrote: > > > using a simple Hello World program and the appropriate compiler > > flags > > > (-O3) and without any debug info the executable is about 440KB in > > size. > > > The compiler doesn't seem to be doing any dead code removal. I > > remember > > > I had this problem a long time ago when I used cygwin but I don't > > > remember my solution. > > > > This is not a problem, and there is no real "solution" to it. > > > > One alternate "solution" might be to use simple C code for a Hello > > World > > program. That will get you a 20 KB exe :) > > > > However, if you wish to reduce the size of your exe, use UPX. > > http://upx.sf.net > > > > The size growth for C++ is because stdc++ is linked statically into > > the > > exe, however when using simple C code, the exe is linked dynamically > > to > > Windows DLLs (like msvcrt.dll, etc.) > > > > -- > > Greetings, > > Bal=E1zs > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IBM Linux Tutorials. > > Become an expert in LINUX or just sharpen your skills. Sign up for > > IBM's > > Free Linux Tutorials. Learn everything from the bash shell to sys > > admin. > > Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick > > _______________________________________________ > > 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 > > ______________________________________________________________________ > Post your free ad now! http://personals.yahoo.ca > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick > _______________________________________________ > 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: Jack C. <jac...@ya...> - 2003-12-30 00:23:40
|
So then C++ compiled files will be 10x bigger than C compiled ones? Man I made a program that draws 3D objects with OpenGL and graphical interface with GTK. It's C code and the exe is only 34KB. I'm wondering what the file size will be if I do it in C++... Does anyone think the developers of Dev-C++ will change it? It's very scary. Jack --- OROSZI_Balázs <or...@vp...> wrote: > Kevin Sopp wrote: > > using a simple Hello World program and the appropriate compiler > flags > > (-O3) and without any debug info the executable is about 440KB in > size. > > The compiler doesn't seem to be doing any dead code removal. I > remember > > I had this problem a long time ago when I used cygwin but I don't > > remember my solution. > > This is not a problem, and there is no real "solution" to it. > > One alternate "solution" might be to use simple C code for a Hello > World > program. That will get you a 20 KB exe :) > > However, if you wish to reduce the size of your exe, use UPX. > http://upx.sf.net > > The size growth for C++ is because stdc++ is linked statically into > the > exe, however when using simple C code, the exe is linked dynamically > to > Windows DLLs (like msvcrt.dll, etc.) > > -- > Greetings, > Balázs > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for > IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys > admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > 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 ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca |
|
From: RUDOLPH B. <ku...@sp...> - 2003-12-29 23:15:21
|
Hello William,
There are two points to be made but, please consider my two forms:
// stdmain.cpp
/* this will complie but To disable this warning use -Wno-deprecated
otherwise ok for Learning pactice.
*/
#include<iostream.h>
#include<stdlib.h> //system()
void main()
{
cout<<"Hello Dolly\n"; system("pause") ;
return; // Main is not expecting
//anything but still have to return control to OS !
}
// stdmain.cpp
#include<iostream>
#include<cstdlib.h> // All standard C libraries are presented with 'c'
//inserted for compatabillities !!
using namespace std; // to qualified ( standard C++ libraries files only).
int main()
{
cout<<"Hello Dolly\n";
system("pause") ;
return 0; // Main is not expecting
//anything but return value of 0 to OS !
}
A good C&C++ complier is ISO standard. cut & paste it and try.
I hope this have help you. I heard that < cprogramming.com >is a good
resource website.
Regards
Rudolph
----- Original Message -----
From: "William W Cridland" <wa...@ju...>
To: <dev...@li...>
Sent: Monday, December 29, 2003 9:16 PM
Subject: [Dev-C++] re+ Public Domain C++ IDE
|
|
From: RUDOLPH B. <ku...@sp...> - 2003-12-29 22:06:16
|
Hello William,
There are two points to be made but, please consider my two forms:
// stdmain.cpp
/* this will complie but To disable this warning use -Wno-deprecated
otherwise ok for Learning pactice.
*/
#include<iostream.h>
#include<stdlib.h> //system()
void main()
{
cout<<"Hello Dolly\n"; system("pause") ;
return; // Main is not expecting
//anything but still have to return control to OS !
}
// stdmain.cpp
#include<iostream>
#include<cstdlib.h> // All standard C libraries are presented with 'c'
//inserted for compatabillities !!
using namespace std; // to qualified ( standard C++ libraries files only).
int main()
{
cout<<"Hello Dolly\n";
system("pause") ;
return 0; // Main is not expecting
//anything but return value of 0 to OS !
}
A good C&C++ complier is ISO standard. cut & paste it and try.
I hope this have help you. I heard that < cprogramming.com >is a good
resource website.
Regards
Rudolph
----- Original Message -----
From: "William W Cridland" <wa...@ju...>
To: <dev...@li...>
Sent: Monday, December 29, 2003 9:16 PM
Subject: [Dev-C++] re+ Public Domain C++ IDE
> I have downloaded your C++ IDE 1991 and looks great . However after
> having taught C++ for the past 6 years . All the simple code I input to
> your IDE seems to fail with notes such as antiquated etc etc. Code is as
> follows you cannot get more simple than this.
>
>
> #include<iostream.h>
>
> void main()
>
> {
> cout<<"Hello Dolly\n";
>
> // you dont need a return at this
> level of code, also
> // Main is not expecting anything
> back !
> }
> Would apreciate any help advice or perhaps you could steer me to a
> tutorial which would elaborat or give examples that work with your
> compiler !!. Regards
> Bill Cridland WA1HMW Bolton MA
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
|
|
From: * W. <wi...@fu...> - 2003-12-29 20:14:52
|
Hi all ::
Trivial defence ... I recall several months !! Dealing with this on the =
Microsoft compiler at transition time circa. 1997 and '98.
I much prefer the "\backward" folder stuff that gcc(?) or is it a DEV =
CPP factor -- Use.
I had several project managers dumping on me for "risking' everything -- =
Mind you we delivered on time, etc, etc. (Because we allowed for the =
'pain').
Enjoy someone's forward thinking of the compiler set-up. It will save =
you money !
Good show folks.
Happy 2004 .... Will.
----- Original Message -----=20
From: P.D. van Zelst=20
To: 'William W Cridland' ; dev...@li...=20
Sent: Tuesday, December 30, 2003 6:22 AM
Subject: RE: [Dev-C++] re+ Public Domain C++ IDE
The C++ you're using is pre-standard C++. In 1998 a C++ standard was
finalized and became official, which altered a few things you might be =
used
to. For instance, namespaces have been added, and are now enforced by =
most
compilers. The standard C++ library functions, types and objects are =
now
stored inside a namespace called "std". "void main" has never been =
standard
C or C++, and thus has always been wrong. The newer versions of GCC =
simply
don't accept it anymore. Furthermore, the standard C++ library header =
files
are now extensionless, to avoid confusion with standard C library =
header
files.
So, applying all these changes, here is what your code should look =
like now:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello Dolly\n";
return 0;
}
Hope this helped.
Regards,
Paul
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of =
William W
Cridland
Sent: Monday, December 29, 2003 10:16 PM
To: dev...@li...
Subject: [Dev-C++] re+ Public Domain C++ IDE
I have downloaded your C++ IDE 1991 and looks great . However after
having taught C++ for the past 6 years . All the simple code I input =
to
your IDE seems to fail with notes such as antiquated etc etc. Code is =
as
follows you cannot get more simple than this.
=20
=
#include<iostream.h>
void main()
{
cout<<"Hello Dolly\n";
=20
// you dont need a return at this
level of code, also
// Main is not expecting anything
back !
}
Would apreciate any help advice or perhaps you could steer me to a
tutorial which would elaborat or give examples that work with your
compiler !!. Regards
Bill Cridland WA1HMW Bolton MA
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for =
IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys =
admin.
Click now! =
http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick
_______________________________________________
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
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for =
IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys =
admin.
Click now! =
http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick
_______________________________________________
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: Daniel G. <sp...@ho...> - 2003-12-29 19:40:47
|
Can you give us some examples of these error messages? What happens if you
do an even more simple piece of code (without the iostream library) such as
int main(int argc, char** argv)
{
int SmlNumber = 5;
int BigNumber = 50;
int TempNumber;
TempNumber = SmlNumber + BigNumber;
return TempNumber;
}
Also I do hope you are not teaching students to use depreciated styles of
coding (the .h extention for example).
>From: William W Cridland <wa...@ju...>
>To: dev...@li...
>Subject: [Dev-C++] re+ Public Domain C++ IDE
>Date: Mon, 29 Dec 2003 13:16:08 -0800
>
>I have downloaded your C++ IDE 1991 and looks great . However after
>having taught C++ for the past 6 years . All the simple code I input to
>your IDE seems to fail with notes such as antiquated etc etc. Code is as
>follows you cannot get more simple than this.
>
>
> #include<iostream.h>
>
> void main()
>
> {
> cout<<"Hello Dolly\n";
>
> // you dont need a return at this
>level of code, also
> // Main is not expecting anything
>back !
> }
> Would apreciate any help advice or perhaps you could steer me to a
>tutorial which would elaborat or give examples that work with your
>compiler !!. Regards
>Bill Cridland WA1HMW Bolton MA
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: IBM Linux Tutorials.
>Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
>Free Linux Tutorials. Learn everything from the bash shell to sys admin.
>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
>_______________________________________________
>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
_________________________________________________________________
Sign-up for a FREE BT Broadband connection today!
http://www.msn.co.uk/specials/btbroadband
|
|
From: Tim S. <ti...@we...> - 2003-12-29 19:26:06
|
Hi Michal, you wrote: > the devpak repository project is opened > at http://molhanec.net/devpaks/. Great work. But I think there should be some limitation in creating new categories. First they should be general, like 3d Graphics, Multimediaplatfrom or Framesets. Second not everyone should be allowed to create new categories, maybe only a 'moderator' can create new, if there are in one category too much devpacks of the same kind. So far so _very_ good. > It tries to be repository of links > to devpaks, so go and add your devpaks > there :-). Maybe the project could be moved to a opensource platform like http://www.berlios.de/index.php.en or http://savannah.nongnu.org/. Then all the DevPacks could be hosted on these pages without any bandwidthproblems. so long Tim |
|
From: P.D. v. Z. <pa...@my...> - 2003-12-29 19:19:47
|
The C++ you're using is pre-standard C++. In 1998 a C++ standard was
finalized and became official, which altered a few things you might be used
to. For instance, namespaces have been added, and are now enforced by most
compilers. The standard C++ library functions, types and objects are now
stored inside a namespace called "std". "void main" has never been standard
C or C++, and thus has always been wrong. The newer versions of GCC simply
don't accept it anymore. Furthermore, the standard C++ library header files
are now extensionless, to avoid confusion with standard C library header
files.
So, applying all these changes, here is what your code should look like now:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello Dolly\n";
return 0;
}
Hope this helped.
Regards,
Paul
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of William W
Cridland
Sent: Monday, December 29, 2003 10:16 PM
To: dev...@li...
Subject: [Dev-C++] re+ Public Domain C++ IDE
I have downloaded your C++ IDE 1991 and looks great . However after
having taught C++ for the past 6 years . All the simple code I input to
your IDE seems to fail with notes such as antiquated etc etc. Code is as
follows you cannot get more simple than this.
#include<iostream.h>
void main()
{
cout<<"Hello Dolly\n";
// you dont need a return at this
level of code, also
// Main is not expecting anything
back !
}
Would apreciate any help advice or perhaps you could steer me to a
tutorial which would elaborat or give examples that work with your
compiler !!. Regards
Bill Cridland WA1HMW Bolton MA
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
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: Ferdinando F. <s2...@st...> - 2003-12-29 19:03:27
|
It's a common problem: the C++ standard is changed and so your program, as
most of those learned by students, is incorrect. The actual C++ standard
library, as described in Stroustrup 3rd edition, has the following
form for an hello-world program:
#include <iostream>
int main() {
std::cout << "Hello world!" << std::endl;
}
The old library is still present, but in a backward compatibility
directory that is not guaranteed to be supported in future.
Bye, Ferdinando
|
|
From: William W C. <wa...@ju...> - 2003-12-29 18:16:51
|
I have downloaded your C++ IDE 1991 and looks great . However after
having taught C++ for the past 6 years . All the simple code I input to
your IDE seems to fail with notes such as antiquated etc etc. Code is as
follows you cannot get more simple than this.
#include<iostream.h>
void main()
{
cout<<"Hello Dolly\n";
// you dont need a return at this
level of code, also
// Main is not expecting anything
back !
}
Would apreciate any help advice or perhaps you could steer me to a
tutorial which would elaborat or give examples that work with your
compiler !!. Regards
Bill Cridland WA1HMW Bolton MA
|
|
From: Michal M. <mi...@mo...> - 2003-12-29 18:00:18
|
Hello all, the devpak repository project is opened at http://molhanec.net/devpaks/ . It tries to be repository of links to devpaks, so go and add your devpaks there :-). Michal |
|
From: jo m. <non...@ho...> - 2003-12-29 17:38:58
|
hello. I've been using McAfee with vShield activated on my W98se, on my old pentium II - 350Mh, 64MB RAM, and no problem at all when compiling. (Although, for better performace, I had unselected to scan "outbound files" in system scaning properties). bye. >From: "Tom Craig" <jat...@gm...> >To: <dev...@li...> >Subject: Re: [Dev-C++] MAJOR bug >Date: Sat, 27 Dec 2003 18:08:42 -0000 > >Are you running an anti-virus program? I had to disable Norton when >compiling or the entire system would crash. I've since changed to McAfee >and >have to disable that too, or my floppy drive is repeatedly scanned for a >disk. I too am using WinME. > _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail |
|
From: Daniel K. O. <dan...@ya...> - 2003-12-29 14:34:16
|
P.T. Waugh MA wrote: > What should I be modifying to allow me to save output files to a > sub-directory, but without mandating the extension so that the > compiler will use the appropriate .s or .o as required. Try using -save-temps then. Daniel K. O. |
|
From: P.T. W. M. <pt...@ea...> - 2003-12-29 14:10:24
|
Found this stuff on the GNU site, actually had it all along. Patrick At 20:35 28-12-03, P.T. Waugh MA wrote: >Not really, I have GSView as well. Does nothing more than what Distiller >will do. What I require is documentation in a different format than .ps >or .pdf, ie. text. > >Patrick > > >At 18:40 28-12-03, Nathan Smith wrote: >>Ghostviw or something should be useful. I have no idea what platforms >>but I'm guessing most. >>----- Original Message ----- >>From: "P.T. Waugh MA" <pt...@ea...> >>To: <dev...@li...> >>Sent: Monday, December 29, 2003 12:26 PM >>Subject: [Dev-C++] gcc docs in other than ps >> >> >> > Hi, >> > >> > I downloaded the gcc docs, but they are in PS formated on A4. >> > >> > I used Acrobat's Distiller to convert them to .pdf, but the text is >>barely >> > readable, and since it is in A4 format, I cannot easily print it. >> > >> > I'm looking for the docs in some other format so that I might be >>able to >> > better manipulate them into the form I need to be able to read it. >> > >> > Where might I find some other format? I have a FreeBSD machine at >>my >> > disposal as well. >> > >> > Thanks, Patrick >> > >> > >> > >> > ------------------------------------------------------- >> > This SF.net email is sponsored by: IBM Linux Tutorials. >> > Become an expert in LINUX or just sharpen your skills. Sign up for >>IBM's >> > Free Linux Tutorials. Learn everything from the bash shell to sys >>admin. >> > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click >> > _______________________________________________ >> > 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 >> >> >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: IBM Linux Tutorials. >>Become an expert in LINUX or just sharpen your skills. Sign up for IBM's >>Free Linux Tutorials. Learn everything from the bash shell to sys admin. >>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click >>_______________________________________________ >>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 > > > >------------------------------------------------------- >This SF.net email is sponsored by: IBM Linux Tutorials. >Become an expert in LINUX or just sharpen your skills. Sign up for IBM's >Free Linux Tutorials. Learn everything from the bash shell to sys admin. >Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click >_______________________________________________ >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: P.T. W. M. <pt...@ea...> - 2003-12-29 13:37:41
|
Forget these errors. I determined the problem I was having there were do to specifying -std=gnu99. Still when using the -S compiler option it mandates that the file have the .o extension which is a pain. I'd rather have a .s file created so it is persistent, and now think the only way to do this is to manually setup a dependency and rule. Patrick At 04:58 29-12-03, P.T. Waugh MA wrote: >Using this hand modified makefile: > >CPP = g++.exe >CC = mingw32-gcc.exe >WINDRES = windres.exe >RES = X01_private.res >OBJ = object/main.o $(RES) >LINKOBJ = source/main.o $(RES) >LIBS = -L"C:/bin/cpp/lib" -mwindows >INCS = -I"C:/bin/cpp/include" >CXXINCS = -I"C:/bin/cpp/include/c++" -I"C:/bin/cpp/include/c++/mingw32" >-I"C:/bin/cpp/include/c++/backward" -I"C:/bin/cpp/include" >BIN = exe/X01.exe >CXXFLAGS = $(CXXINCS) -std=gnu99 >CFLAGS = $(INCS) -std=gnu99 > >.PHONY: all all-before all-after clean clean-custom > >all: all-before exe/X01.exe all-after > > >clean: clean-custom > rm -f $(OBJ) $(BIN) > >$(BIN): $(LINKOBJ) > $(CPP) $(LINKOBJ) -o "exe\X01.exe" $(LIBS) > >object/main.s: source/main.cpp > $(CPP) -c source/main.cpp -S $(CXXFLAGS) > >X01_private.res: X01_private.rc > $(WINDRES) -i X01_private.rc -I rc -o X01_private.res -O coff > >on the simple attached (automatically generated app) main.cpp where I >completely removed the main.o lines and inserted a rule to make the asm >source yields this console output: > >C:\Documents and Settings\patrick\My Documents\Shop>make >g++ -I"C:/bin/cpp/include/c++" -I"C:/bin/cpp/includ >=gnu99 -c -o source/main.o source/main.cpp >In file included from c:/bin/MinGW/include/objbase.h > from c:/bin/MinGW/include/ole2.h:9, > from c:/bin/MinGW/include/windows.h > from source/main.cpp:1: >c:/bin/MinGW/include/rpcndr.h:123: non-local functio > NDRSContextMarshall(<anonymous struct>*, void*, v > anonymous type >c:/bin/MinGW/include/rpcndr.h:124: non-local functio > NDRSContextUnmarshall(void*, long unsigned int)' >c:/bin/MinGW/include/rpcndr.h:315: non-local functio > NdrServerContextMarshall(_MIDL_STUB_MESSAGE*, <an > (*)(void*))' uses anonymous type >c:/bin/MinGW/include/rpcndr.h:336: non-local functio > NdrServerContextUnmarshall(_MIDL_STUB_MESSAGE*)' >make: *** [source/main.o] Error 1 > >C:\Documents and Settings\patrick\My Documents\Shop> > >*********************** output end > >This error seems strange to me as I'm not asking for any .o file, and in >fact deleted the main.o rule to see if I could get rid of this error, >which was stopping me inside the GUI as well. > >Again, my goal is simple. I'd like to just be able to turn on the -S >option and then get .s files as output, rather than asm in .o files. > >Right now, I'm doing this merely to groke the GUI and see the relationship >to the Makefile.win it creates, etc. > >Anyway, if anyone can set me straight about this I'm grateful. It just >does not appear to be working the way I would expect. I notice that in >the Makefile.win created by Dev-Cpp, that it does not use a macro for the >.o rule. > >I assume what I want to do is possible with a standard makefile, and >therefore should be possible with the Dev-Cpp GUI. Maybe I need to >manually enter an additional rule? > >Patrick > > > > > |
|
From: Per W. <pw...@ia...> - 2003-12-29 13:36:40
|
It is not the compiler. It is the linker in combination with the design of the c++ library. If you strip the binary, it will be a bit smaller, but you will still get a bit of extra from the RTL. /Per W On Mon, 29 Dec 2003, Kevin Sopp wrote: > Hi, > using a simple Hello World program and the appropriate compiler flags > (-O3) and without any debug info the executable is about 440KB in size. > The compiler doesn't seem to be doing any dead code removal. I remember I > had this problem a long time ago when I used cygwin but I don't remember > my solution. > > -- > Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > 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: Tim S. <ti...@we...> - 2003-12-29 13:27:25
|
Hi Kevin, you could try strip, for example 'strip -s filename.exe'. If you think your executeable is still too big, you could give upx (upx.sf.net) a try. so long Tim |
|
From: <or...@vp...> - 2003-12-29 13:27:16
|
Kevin Sopp wrote: > using a simple Hello World program and the appropriate compiler flags > (-O3) and without any debug info the executable is about 440KB in size. > The compiler doesn't seem to be doing any dead code removal. I remember > I had this problem a long time ago when I used cygwin but I don't > remember my solution. This is not a problem, and there is no real "solution" to it. One alternate "solution" might be to use simple C code for a Hello World program. That will get you a 20 KB exe :) However, if you wish to reduce the size of your exe, use UPX. http://upx.sf.net The size growth for C++ is because stdc++ is linked statically into the exe, however when using simple C code, the exe is linked dynamically to Windows DLLs (like msvcrt.dll, etc.) -- Greetings, Balázs |
|
From: Piotr O. Z.E.S. <co...@si...> - 2003-12-29 13:07:10
|
Hi! If you use SH (SuperH) family, You should try to use KPIT GNU SH ToolChain and KPIT free support http://www.kpitgnutools.com There are GCC 3.3.1 for SH, H8/300, H8S and quite good, fast and FREE support. You can download this tools for free. It consists some examples. Greetings, Collins ----- Original Message ----- From: "Smitha V. Babu" <smi...@so...> To: "Per Westermark" <pw...@ia...>; "Smitha V. Babu" <smi...@so...> Cc: <dev...@li...> Sent: Monday, December 29, 2003 1:39 PM Subject: RE: [Dev-C++] write a startup code > i don't know how to setup the processor register or what value i have to > give for it.. > we are using the hitachi chip.. > is there any good tutorial with which i can start... > Expecting help... > regds > smitha > > > -----Original Message----- > > From: Per Westermark [SMTP:pw...@ia...] > > Sent: Monday, December 29, 2003 5:50 PM > > To: Smitha V. Babu > > Cc: dev...@li... > > Subject: RE: [Dev-C++] write a startup code > > > > There is nothing magic about it. > > > > All you have to do is setup the processor registers. Then you may call the > > _main function and perform the rest of the hardware initialization there. > > > > What type of processor are you using? If it is a 386 or higher you might > > have to initialize processor to proper memory mappings and then enter > > protected mode before calling _main. > > > > /Per W > > > > On Mon, 29 Dec 2003, Smitha V. Babu wrote: > > > > > hi .. > > > thank you for your instant reply.. > > > I am writing startup code for my gcc compiled program for SH on custom > > made > > > board. The code that is been generated is fine. But now, I want to add > > my > > > own startup code. > > > What i have to do..does I need to write a small piece of "free-standing" > > > code, i.e. it will contain its own startup code . > > > can u give some guidelines.. > > > how i have to start > > > regards > > > smitha > > > > > > > -----Original Message----- > > > > From: Per Westermark [SMTP:pw...@ia...] > > > > Sent: Monday, December 29, 2003 5:21 PM > > > > To: Smitha V. Babu > > > > Cc: dev...@li... > > > > Subject: Re: [Dev-C++] write a startup code > > > > > > > > You have to come back with more information. Are you building some > > > > embedded system or? That is the only reason to write own startup code. > > > > > > > > /Per W > > > > > > > > On Mon, 29 Dec 2003, Smitha V. Babu wrote: > > > > > > > > > hi , > > > > > Does any body know how to write startup code.. > > > > > How i can tell the processor to go to main function execute a > > particular > > > > > function..register exit functions... > > > > > > > > > > regards > > > > > smitha > > > > > > > ********************************************************************* > > > > > Disclaimer: The information in this e-mail and any attachments is > > > > > confidential / privileged. It is intended solely for the addressee > > or > > > > > addressees. If you are not the addressee indicated in this message, > > you > > > > may > > > > > not copy or deliver this message to anyone. In such case, you should > > > > destroy > > > > > this message and kindly notify the sender by reply email. Please > > advise > > > > > immediately if you or your employer does not consent to Internet > > email > > > > for > > > > > messages of this kind. > > > > > > > ********************************************************************* > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.net email is sponsored by: IBM Linux Tutorials. > > > > > Become an expert in LINUX or just sharpen your skills. Sign up for > > > > IBM's > > > > > Free Linux Tutorials. Learn everything from the bash shell to sys > > > > admin. > > > > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > > > > _______________________________________________ > > > > > 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 > > > > > > > > ********************************************************************* > > > Disclaimer: The information in this e-mail and any attachments is > > > confidential / privileged. It is intended solely for the addressee or > > > addressees. If you are not the addressee indicated in this message, you > > may > > > not copy or deliver this message to anyone. In such case, you should > > destroy > > > this message and kindly notify the sender by reply email. Please advise > > > immediately if you or your employer does not consent to Internet email > > for > > > messages of this kind. > > > ********************************************************************* > > > > ********************************************************************* > Disclaimer: The information in this e-mail and any attachments is > confidential / privileged. It is intended solely for the addressee or > addressees. If you are not the addressee indicated in this message, you may > not copy or deliver this message to anyone. In such case, you should destroy > this message and kindly notify the sender by reply email. Please advise > immediately if you or your employer does not consent to Internet email for > messages of this kind. > ********************************************************************* > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > 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 |