dev-cpp-users Mailing List for Dev-C++ (Page 2)
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
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
1
(2) |
2
|
3
(1) |
4
|
5
|
6
|
7
(1) |
8
(1) |
9
|
10
|
11
|
12
|
13
(6) |
14
(6) |
15
(4) |
16
(6) |
17
(7) |
18
|
19
(4) |
20
(2) |
21
(3) |
22
(1) |
23
(4) |
24
|
25
|
26
|
27
(1) |
28
|
|
|
|
From: Per W. <pw...@ia...> - 2007-02-16 06:15:58
|
There can be more problems, but you should really avoid using paths with spaces in them. /Per W On Fri, 16 Feb 2007, Leo M. Cabrera wrote: > Hello everyone! :-D > > Okay, all of my files compile perfectly on the command line; however > Dev-C++ gives me this output: > > -------------- > Compiler: Default compiler > Building Makefile: "F:\Projects\Finished\(Lua) Mythax\Src\cpp\Makefile.win" > Executing make... > make.exe -f "F:\Projects\Finished\(Lua) Mythax\Src\cpp\Makefile.win" all > gcc.exe -c header.c -o ../cpp/out/header.o > gcc.exe: no input files > > make.exe: *** [../cpp/out/header.o] Error 1 > Execution terminated > -------------- > > That command - 'gcc.exe -c header.c -o ../cpp/out/header.o' is exactly > what I use on the DOS prompt. > > Why is it giving me that? Thanks! ;-) > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > 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: Leo M. C. <le...@gm...> - 2007-02-16 06:11:19
|
Hello everyone! :-D Okay, all of my files compile perfectly on the command line; however Dev-C++ gives me this output: -------------- Compiler: Default compiler Building Makefile: "F:\Projects\Finished\(Lua) Mythax\Src\cpp\Makefile.win" Executing make... make.exe -f "F:\Projects\Finished\(Lua) Mythax\Src\cpp\Makefile.win" all gcc.exe -c header.c -o ../cpp/out/header.o gcc.exe: no input files make.exe: *** [../cpp/out/header.o] Error 1 Execution terminated -------------- That command - 'gcc.exe -c header.c -o ../cpp/out/header.o' is exactly what I use on the DOS prompt. Why is it giving me that? Thanks! ;-) |
From: Chino A. <chi...@gm...> - 2007-02-16 02:57:10
|
Hi, In linux or any unix O.S., is it possible to trace the source of a signal that cause a process to stop? I'm thinking of writing a daemon that starts other process and then manage it. If that process is stopped by a kill or whatever signal, I want the monitor daemon detect it. I've read about ptrace system call but I'm not sure if this will have an impact on the performance of the process being monitored. Regards, Chino |
From: hhh h. <the...@ho...> - 2007-02-15 21:59:01
|
I apologize, I did not realized I unhooked the mailing list. As it is obvious I did not read the aformentioned document. Thank you for the link. Taradinhu. _________________________________________________________________ MSN Busca: fácil, rápido, direto ao ponto. http://search.msn.com.br |
From: Per W. <pw...@ia...> - 2007-02-15 21:54:26
|
Note, don't unhook the mailing list from the conversation. Have you read this information: http://www.mingw.org/MinGWiki/index.php/CreateImportLibraries /Per W On Thu, 15 Feb 2007, hhh hhh wrote: > > You can't convert a dll file to a static library. > > Are you talking about creating an import library for your application? > > /Per W > > ---- > > Hi Per W. > Yes. My aim is to create a import library that I can link and use with a > header of my own... > RSXNT, Gcc port seems to make this option possible (with a tool called > makelib, but I am not sure), and I assumed dev-cpp would too. > Isn't there another way? > > _________________________________________________________________ > MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com > > |
From: Per W. <pw...@ia...> - 2007-02-15 21:43:57
|
You can't convert a dll file to a static library. Are you talking about creating an import library for your application? /Per W On Thu, 15 Feb 2007, hhh hhh wrote: > > > > Hello. > > > > I'm intrested in makind a .a lib from a dll source, namingly icmp.dll in > c:\system... but i can't seem to find makelib.exe in bin folder... can > anyone lend me a helping hand in this matter? > > _________________________________________________________________ > MSN Messenger: converse com os seus amigos online. > http://messenger.msn.com.br > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > 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: hhh h. <the...@ho...> - 2007-02-15 21:37:18
|
Hello. I'm intrested in makind a .a lib from a dll source, namingly icmp.dll in c:\system... but i can't seem to find makelib.exe in bin folder... can anyone lend me a helping hand in this matter? _________________________________________________________________ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br |
From: Per W. <pw...@ia...> - 2007-02-14 21:12:07
|
The IDE normally have problem with multi-line error messages, resulting in very strange error messages being displayed. Look at the unfiltered output of the compiler instead. /Per W On Wed, 14 Feb 2007, AIG donia wrote: > I've a problem with the Errors appear in the compiler when I compile a file > Errors aren't understandable , Alot of errors ; > Please Guide me to tutorial collect the errors for the compiler > Regards > > > --------------------------------- > Expecting? Get great news right away with email Auto-Check. > Try the Yahoo! Mail Beta. |
From: AIG d. <aig...@ya...> - 2007-02-14 20:06:47
|
I've a problem with the Errors appear in the compiler when I compile a file Errors aren't understandable , Alot of errors ; Please Guide me to tutorial collect the errors for the compiler Regards --------------------------------- Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. |
From: Per W. <pw...@ia...> - 2007-02-14 14:41:56
|
I didn't say they would have an easy task killing it. I just wrote that they are _trying_ :) If all existing Win32 applications suddenly have to be emulated, a lot of users will notice that they may just as well emulate it on Linux/Wine... /Per W On Wed, 14 Feb 2007, seb_kramm wrote: > Per Westermark a =E9crit : > > By the way, M$ is trying to kill the old Win32 API. > > Mmmh, I would'nt be so sure about that. > > Look what happened with the so-called "Dos Box". Started as command.com, = moved up to > cmd.exe with NT4, and I'm using it daily as a native scripting language o= n a XP > machine. Why ? Just because many people are used to it, and that it doesn= 't cost > anything to let it survive. (Not to say that many administrative tasks re= quire some > cmd.exe commands) > I hav'nt had a Vista machine, but I think I read somewhere that cmd.exe w= as still there. > > IMHO, it'll be the same with the "good'ol" win32 api. So many application= s rely on > it, and can be easily rebuild from source with a couple of mods, I don't = think MS > will break it so sharply. > And was Vista written from scratch ? It probably relies also on some win3= 2 api code, > or else, I got things wrong about MS... > > > Look into writing applications using a portable framework instead, such= as > > wxWidgets. > > Anyhow, good advice, I agree ! > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share y= our > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > 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: seb_kramm <seb...@ya...> - 2007-02-14 14:28:39
|
Per Westermark a écrit : > By the way, M$ is trying to kill the old Win32 API. Mmmh, I would'nt be so sure about that. Look what happened with the so-called "Dos Box". Started as command.com, moved up to cmd.exe with NT4, and I'm using it daily as a native scripting language on a XP machine. Why ? Just because many people are used to it, and that it doesn't cost anything to let it survive. (Not to say that many administrative tasks require some cmd.exe commands) I hav'nt had a Vista machine, but I think I read somewhere that cmd.exe was still there. IMHO, it'll be the same with the "good'ol" win32 api. So many applications rely on it, and can be easily rebuild from source with a couple of mods, I don't think MS will break it so sharply. And was Vista written from scratch ? It probably relies also on some win32 api code, or else, I got things wrong about MS... > Look into writing applications using a portable framework instead, such as > wxWidgets. Anyhow, good advice, I agree ! |
From: Per W. <pw...@ia...> - 2007-02-14 00:24:45
|
Look at system, exec, spawn, ShellExecute, ShellExecuteEx or similar function calls, to start another application. By the way, M$ is trying to kill the old Win32 API. Are you really sure that you want to learn how to use it? Look into writing applications using a portable framework instead, such as wxWidgets. /Per W On Tue, 13 Feb 2007, Yohaan Hall wrote: > I am still learning C++ as well as the Dev-Cpp program. I got a little bi= t > confused at the beginning and am now able to perhaps ask the right > questions. > > the first rather simple one is how would i call a second cpp program from > the first? as in if (a=3D1) then open second program? > > the second regarding the main.c program > > hwnd =3D CreateWindowEx( > 0, /* Extended possibilites for variation */ > szClassName, /* Classname */ > "Windows Example", /* Title Text */ > WS_OVERLAPPEDWINDOW, /* defaultwindow */ > CW_USEDEFAULT, /* Windows decides the position */ > CW_USEDEFAULT, /* where the window end up on the screen = */ > 544, /* The programs width */ > 375, /* and height in pixels */ > HWND_DESKTOP, /* The window is a childwindow to desktop= */ > NULL, /* No menu */ > hThisInstance, /* Program Instance handler */ > NULL /* No Window Creation data */ > ); > > where NULL is what would i use to state that their is Window Creation dat= a > would this qualify as a call to a second program? > > _________________________________________________________________ > Don=92t miss your chance to WIN 10 hours of private jet travel from Micro= soft > Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ > > > |
From: Yohaan H. <jsh...@ho...> - 2007-02-14 00:13:02
|
I am still learning C++ as well as the Dev-Cpp program. I got a little bit confused at the beginning and am now able to perhaps ask the right questions. the first rather simple one is how would i call a second cpp program from the first? as in if (a=1) then open second program? the second regarding the main.c program hwnd = CreateWindowEx( 0, /* Extended possibilites for variation */ szClassName, /* Classname */ "Windows Example", /* Title Text */ WS_OVERLAPPEDWINDOW, /* defaultwindow */ CW_USEDEFAULT, /* Windows decides the position */ CW_USEDEFAULT, /* where the window end up on the screen */ 544, /* The programs width */ 375, /* and height in pixels */ HWND_DESKTOP, /* The window is a childwindow to desktop */ NULL, /* No menu */ hThisInstance, /* Program Instance handler */ NULL /* No Window Creation data */ ); where NULL is what would i use to state that their is Window Creation data would this qualify as a call to a second program? _________________________________________________________________ Dont miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ |
From: Per W. <pw...@ia...> - 2007-02-13 16:52:25
|
I would recommend that you ignore the built-in debugger in Dev-C++. Go for an external graphical front-end to gdb (for example Insight). That is what I do. /Per W On Tue, 13 Feb 2007, gary watson wrote: > I teach using Dev-C++ and had problems getting the debugger to include de= bugging code.=A0 Here's the recipe I tell my students to use. > Do the following one time only. > 1. Start up Dev-C++. > 2. Change the linker setting Generate debugging information to the value= no. To do this select the Tools/Compiler Options menu, then the > Linker option on the Settings tab. Select Generate debugging informat= ion and change to no if it is set to yes. > 3. Close Dev-C++. > > Now everytime you start Dev-C++, that linker mode will be off. It seems t= hat this must changed from no to yes when you want to debug. This is > done following the steps below for each program you want to debug. > > When you are ready to debug a program you have been working on do the fol= lowing. > > 1. Change Generate debugging information to yes using the Tools/Compiler= Options menu. > 2. Set a break point at the beginning of your program. > 3. Click on the debug tab at the bottom and then click the debug button = on this tab. > 4. You will get a message saying there is no debug information in the fi= le, and do you want to generate it:. Answer yes. This will close the > tabs at the bottom. > 5. Again click on the debug tab and debug button and you should get a co= nsole window up and can now continue stepping through your program. At > this point you can also add watch variables. This will allow you to s= ee how your variables are changing as you step through your program. > > =A0Gary Watson > Computer Science, OSU > > > > dev...@li... wrote: > > Send Dev-cpp-users mailing list submissions to > =09d...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > =09https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body 'help' to > =09d...@li... > > You can reach the person managing the list at > =09d...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dev-cpp-users digest..." > > > Today's Topics: > > 1. Re: undeclared constant (Per Westermark) > 2. Basic 'float' and Decimal Output (Ken Baratko) > 3. Compilation problem (Philip Bennefall) > 4. Set debugger ON (Raghavendra R) > 5. post (ricardo padilla) > 6. Huge executables (Philip Bennefall) > 7. Re: Huge executables (Per Westermark) > 8. Re: Huge executables (Philip Bennefall) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 1 Feb 2007 19:41:40 +0100 (CET) > From: Per Westermark <pw...@ia...> > Subject: Re: [Dev-C++] undeclared constant > To: k.a...@at... > Cc: Dev C++ <dev...@li...> > Message-ID: > =09<Pin...@ia...> > Content-Type: TEXT/PLAIN; charset=3DUS-ASCII > > The constant is defined in winbase.h. > winbase.h is also included from windows.h > > When in trouble - always do a grep in the include directories. > > /Per W > > On Thu, 1 Feb 2007 k.a...@at... wrote: > > > > I am trying to run a program but I keep getting an error message. The m= essage is STD_OUTPUT_HANDLE undeclared. The line of code that I have in my= program is > HANDLE hcon =3D Get Std Handle (STD_OUTPUT_HANDLE); > I am using Dev C++ version 4.9.8.0 can someone tell me if this version su= pports hcon? > > Kathy Elia > k.a...@at... > > > ------------------------------ > > Message: 2 > Date: Sat, 3 Feb 2007 09:20:11 -0800 (PST) > From: Ken Baratko <kba...@ya...> > Subject: [Dev-C++] Basic 'float' and Decimal Output > To: dev...@li... > Message-ID: <511...@we...> > Content-Type: text/plain; charset=3D"iso-8859-1" > > This is a very fundamental equation... > I put 2 'float's in my program and multiplied them... > I then used basic 'cout' to print out the decimals... > The program internally rounded all 3 outputs to basically integers... > It did not print the number to the right of the decimal... > I thought I could use setprecision() to see number of decimals to right= of decimals... > but that did not work... > ...so, why does dev4cpp do this...?... and... > how do I make simple corrections for printing of decimals from floats..= =2E? > Thks, ken > > > --------------------------------- > No need to miss a message. Get email on-the-go > with Yahoo! Mail for Mobile. Get started. > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 3 > Date: Wed, 7 Feb 2007 02:02:47 +0100 > From: "Philip Bennefall" <phi...@pb...> > Subject: [Dev-C++] Compilation problem > To: <dev...@li...> > Message-ID: <000801c74a53$af11f880$4800a8c0@Pbgames> > Content-Type: text/plain; charset=3D"iso-8859-1" > > Hey everyone, > > I am trying to compile a program that uses Direct input 8, and I believe = that I have done everything correctly, but the linker will not include dinp= ut8.lib for some reason. I am using the Microsoft Direct X October SDK rele= ase from 2006, so there should be no problem what so ever. It is finding th= e file, that's for sure, but it is giving me a strange error that I can't f= or the life of me figure out how to solve. The log is below. > > Compiler: Default compiler > Building Makefile: "C:\C++ tests\Direct input\Makefile.win" > Finding dependencies for file: C:\C++ tests\Direct input\Direct input.cpp > Executing make... > make.exe -f "C:\C++ tests\Direct input\Makefile.win" all > g++.exe -c "Direct input.cpp" -o "Direct input.o" -I"C:/Dev-Cpp/lib/gcc/m= ingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev= -Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/De= v-Cpp/include" > > g++.exe "Direct input.o" -o "Direct input.exe" -L"C:/Dev-Cpp/lib" -mwind= ows dxguid.lib dinput8.lib > > Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" ' unreco= gnized > Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" ' unreco= gnized > Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" ' unreco= gnized > Direct input.o(.text+0x39):Direct input.cpp: undefined reference to `Dire= ctInput8Create@20' > collect2: ld returned 1 exit status > > make.exe: *** ["Direct] Error 1 > > Execution terminated > > I simply can't make any sense out of it. Can anyone help? > > Thanks in advance. > > Regards > Philip Bennefall > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 4 > Date: Thu, 8 Feb 2007 11:20:48 +0100 > From: "Raghavendra R" <mai...@gm...> > Subject: [Dev-C++] Set debugger ON > To: dev...@li... > Message-ID: > =09<9e7...@ma...> > Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed > > Hello, > I am not able to debug my code ie Not able to set the debugger ON > > I have looked into the FAQ list about the similar question and help > manual, I followed the same steps but it's not working. > > Steps I have followed, > 1.=09set break points in code and added even watch also > 2.=09compiled and run the program-F9 > 3.=09click ->debug- it asks that your project does not have debug > information whether to enable or not > click:::::: yes > 4.=09click -> debug again > or > =09click -> run time cursor > > The program is working fine. > Where is the problem? I have varied some of the steps with little > luck. Should I follow some extra steps? > Please help me in setting my debugger. If you can give me step by step > information, it will be of great help. > > Raghavendra > > > > ------------------------------ > > Message: 5 > Date: Mon, 12 Feb 2007 20:43:40 -0500 > From: "ricardo padilla" <ri...@gm...> > Subject: [Dev-C++] post > To: dev...@li... > Message-ID: > =09<6de...@ma...> > Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed > > hello to all you. > > > > ------------------------------ > > Message: 6 > Date: Tue, 13 Feb 2007 16:46:00 +0100 > From: "Philip Bennefall" <phi...@pb...> > Subject: [Dev-C++] Huge executables > To: <Dev...@li...> > Message-ID: <007501c74f86$10206940$4800a8c0@Pbgames> > Content-Type: text/plain; charset=3D"iso-8859-1" > > Hey folks, > > I've been feeling for a while that my executables have been much larger t= han they need to be, so I tried to make a very simple console application i= n C++ using iostream and nothing more. This code generates an executable th= at is over 400 kb! > > ---Code begin--- > #include <iostream> > > using namespace std; > > int main() > { > int year; > cout << "How old are you?\n"; > cin >> year; > cout << "Okay, you are " << year <<" years old.\n"; > fflush(stdin); > getchar(); > } > ---Code end--- > > This, I should imagine, would be something like 20 kb. I looked in the FA= Q of course, and it said that I should make sure that I don't have debuggin= g enabled. It does not look like it is, and I just can't figure out why the= files are so huge. iostream, that's really small. Can anyone help? I have = not modified any settings in compiler options at all. > > Regards > Philip Bennefall > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 7 > Date: Tue, 13 Feb 2007 16:53:50 +0100 (CET) > From: Per Westermark <pw...@ia...> > Subject: Re: [Dev-C++] Huge executables > To: Philip Bennefall <phi...@pb...> > Cc: Dev...@li... > Message-ID: > =09<Pin...@ia...> > Content-Type: TEXT/PLAIN; charset=3DUS-ASCII > > If I just copy your code to test_size.cpp and then do: > g++ test_size.cpp > on your source, I get a binary that is 475kB. > > If I strip the binary, it will shrink to 266kB. > > This with MinGW gcc 3.4.2. > > Alas, the c++ library is quite aggresive at adding stuff to hello-world > applications. The good part is of course that when you do add real code t= o > the project, a large part of the RTL is already included, so the binary > will not continue to grow at the same high speed. > > /Per W > > On Tue, 13 Feb 2007, Philip Bennefall wrote: > > > > Hey folks, > > I've been feeling for a while that my executables have been much larger t= han they need to be, so I tried to make a very simple console application i= n C++ using iostream and nothing more. This code generates an executable th= at is over 400 kb! > > ---Code begin--- > #include <iostream> > > using namespace std; > > int main() > { > int year; > cout << "How old are you?\n"; > cin >> year; > cout << "Okay, you are " << year <<" years old.\n"; > fflush(stdin); > getchar(); > } > ---Code end--- > > This, I should imagine, would be something like 20 kb. I looked in the FA= Q of course, and it said that I should make sure that I don't have debuggin= g enabled. It does not look like it is, and I just can't figure out why the= files are so huge. iostream, that's really small. Can anyone help? I have = not modified any settings in compiler options at all. > > Regards > Philip Bennefall > > > ------------------------------ > > Message: 8 > Date: Tue, 13 Feb 2007 17:08:08 +0100 > From: "Philip Bennefall" <phi...@pb...> > Subject: Re: [Dev-C++] Huge executables > To: <Dev...@li...> > Message-ID: <004b01c74f89$27383f60$4800a8c0@Pbgames> > Content-Type: text/plain; format=3Dflowed; charset=3D"iso-8859-1"; > =09reply-type=3Doriginal > > When you strip the executable, what is actually removed? Should all relea= se > versions of executables be stripped? I mean, the information that is remo= ved > from the binary, is that only good for debugging purposes? > > Regards > Philip Bennefall > ----- Original Message ----- > From: "Per Westermark" <pw...@ia...> > To: "Philip Bennefall" <phi...@pb...> > Cc: <Dev...@li...> > Sent: Tuesday, February 13, 2007 4:53 PM > Subject: Re: [Dev-C++] Huge executables > > > > > If I just copy your code to test_size.cpp and then do: > g++ test_size.cpp > on your source, I get a binary that is 475kB. > > If I strip the binary, it will shrink to 266kB. > > This with MinGW gcc 3.4.2. > > Alas, the c++ library is quite aggresive at adding stuff to hello-world > applications. The good part is of course that when you do add real code t= o > the project, a large part of the RTL is already included, so the binary > will not continue to grow at the same high speed. > > /Per W > > On Tue, 13 Feb 2007, Philip Bennefall wrote: > > > > Hey folks, > > I've been feeling for a while that my executables have been much larger > than they need to be, so I tried to make a very simple console > application in C++ using iostream and nothing more. This code generates > an executable that is over 400 kb! > > ---Code begin--- > #include <iostream> > > using namespace std; > > int main() > { > int year; > cout << "How old are you?\n"; > cin >> year; > cout << "Okay, you are " << year <<" years old.\n"; > fflush(stdin); > getchar(); > } > ---Code end--- > > This, I should imagine, would be something like 20 kb. I looked in the > FAQ of course, and it said that I should make sure that I don't have > debugging enabled. It does not look like it is, and I just can't figure > out why the files are so huge. iostream, that's really small. Can anyone > help? I have not modified any settings in compiler options at all. > > Regards > Philip Bennefall > > > ------------------------------ > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job ea= sier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > > ------------------------------ > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > End of Dev-cpp-users Digest, Vol 9, Issue 2 > ******************************************* > > > > |
From: gary w. <wa...@ee...> - 2007-02-13 16:44:25
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> I teach using Dev-C++ and had problems getting the debugger to include debugging code. Here's the recipe I tell my students to use.<br> Do the following one time only. <ol> <li>Start up Dev-C++.</li> <li>Change the linker setting <em>Generate debugging information </em>to the value <em>no</em>. To do this select the <em>Tools/Compiler Options</em> menu, then the <em>Linker</em> option on the <em>Settings</em> tab. Select <em>Generate debugging information</em> and change to no if it is set to yes.</li> <li>Close Dev-C++.</li> </ol> <p>Now everytime you start Dev-C++, that linker mode will be off. It seems that this must changed from <em>no</em> to <em>yes</em> when you want to debug. This is done following the steps below for each program you want to debug. </p> <p>When you are ready to debug a program you have been working on do the following.</p> <ol> <li>Change <em>Generate debugging information</em> to <em>yes </em>using the <em>Tools/Compiler Options </em>menu.</li> <li>Set a break point at the beginning of your program.</li> <li>Click on the debug tab at the bottom and then click the debug button on this tab. </li> <li>You will get a message saying there is no debug information in the file, and do you want to generate it:. Answer yes. This will close the tabs at the bottom. </li> <li>Again click on the debug tab and debug button and you should get a console window up and can now continue stepping through your program. At this point you can also add <em>watch</em> variables. This will allow you to see how your variables are changing as you step through your program.</li> </ol> <p> Gary Watson<br> Computer Science, OSU<br> </p> <br> <br> <a class="moz-txt-link-abbreviated" href="mailto:dev...@li...">dev...@li...</a> wrote: <blockquote cite="mid...@li..." type="cite"> <pre wrap="">Send Dev-cpp-users mailing list submissions to <a class="moz-txt-link-abbreviated" href="mailto:dev...@li...">dev...@li...</a> To subscribe or unsubscribe via the World Wide Web, visit <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/dev-cpp-users">https://lists.sourceforge.net/lists/listinfo/dev-cpp-users</a> or, via email, send a message with subject or body 'help' to <a class="moz-txt-link-abbreviated" href="mailto:dev...@li...">dev...@li...</a> You can reach the person managing the list at <a class="moz-txt-link-abbreviated" href="mailto:dev...@li...">dev...@li...</a> When replying, please edit your Subject line so it is more specific than "Re: Contents of Dev-cpp-users digest..." Today's Topics: 1. Re: undeclared constant (Per Westermark) 2. Basic 'float' and Decimal Output (Ken Baratko) 3. Compilation problem (Philip Bennefall) 4. Set debugger ON (Raghavendra R) 5. post (ricardo padilla) 6. Huge executables (Philip Bennefall) 7. Re: Huge executables (Per Westermark) 8. Re: Huge executables (Philip Bennefall) ---------------------------------------------------------------------- Message: 1 Date: Thu, 1 Feb 2007 19:41:40 +0100 (CET) From: Per Westermark <a class="moz-txt-link-rfc2396E" href="mailto:pw...@ia..."><pw...@ia...></a> Subject: Re: [Dev-C++] undeclared constant To: <a class="moz-txt-link-abbreviated" href="mailto:k.a...@at...">k.a...@at...</a> Cc: Dev C++ <a class="moz-txt-link-rfc2396E" href="mailto:dev...@li..."><dev...@li...></a> Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:Pin...@ia..."><Pin...@ia...></a> Content-Type: TEXT/PLAIN; charset=US-ASCII The constant is defined in winbase.h. winbase.h is also included from windows.h When in trouble - always do a grep in the include directories. /Per W On Thu, 1 Feb 2007 <a class="moz-txt-link-abbreviated" href="mailto:k.a...@at...">k.a...@at...</a> wrote: </pre> <blockquote type="cite"> <pre wrap="">I am trying to run a program but I keep getting an error message. The message is STD_OUTPUT_HANDLE undeclared. The line of code that I have in my program is HANDLE hcon = Get Std Handle (STD_OUTPUT_HANDLE); I am using Dev C++ version 4.9.8.0 can someone tell me if this version supports hcon? Kathy Elia <a class="moz-txt-link-abbreviated" href="mailto:k.a...@at...">k.a...@at...</a> </pre> </blockquote> <pre wrap=""><!----> ------------------------------ Message: 2 Date: Sat, 3 Feb 2007 09:20:11 -0800 (PST) From: Ken Baratko <a class="moz-txt-link-rfc2396E" href="mailto:kba...@ya..."><kba...@ya...></a> Subject: [Dev-C++] Basic 'float' and Decimal Output To: <a class="moz-txt-link-abbreviated" href="mailto:dev...@li...">dev...@li...</a> Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:511...@we..."><511...@we...></a> Content-Type: text/plain; charset="iso-8859-1" This is a very fundamental equation... I put 2 'float's in my program and multiplied them... I then used basic 'cout' to print out the decimals... The program internally rounded all 3 outputs to basically integers... It did not print the number to the right of the decimal... I thought I could use setprecision() to see number of decimals to right of decimals... but that did not work... ...so, why does dev4cpp do this...?... and... how do I make simple corrections for printing of decimals from floats...? Thks, ken --------------------------------- No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 3 Date: Wed, 7 Feb 2007 02:02:47 +0100 From: "Philip Bennefall" <a class="moz-txt-link-rfc2396E" href="mailto:phi...@pb..."><phi...@pb...></a> Subject: [Dev-C++] Compilation problem To: <a class="moz-txt-link-rfc2396E" href="mailto:dev...@li..."><dev...@li...></a> Message-ID: <000801c74a53$af11f880$4800a8c0@Pbgames> Content-Type: text/plain; charset="iso-8859-1" Hey everyone, I am trying to compile a program that uses Direct input 8, and I believe that I have done everything correctly, but the linker will not include dinput8.lib for some reason. I am using the Microsoft Direct X October SDK release from 2006, so there should be no problem what so ever. It is finding the file, that's for sure, but it is giving me a strange error that I can't for the life of me figure out how to solve. The log is below. Compiler: Default compiler Building Makefile: "C:\C++ tests\Direct input\Makefile.win" Finding dependencies for file: C:\C++ tests\Direct input\Direct input.cpp Executing make... make.exe -f "C:\C++ tests\Direct input\Makefile.win" all g++.exe -c "Direct input.cpp" -o "Direct input.o" -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" g++.exe "Direct input.o" -o "Direct input.exe" -L"C:/Dev-Cpp/lib" -mwindows dxguid.lib dinput8.lib Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" ' unrecognized Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" ' unrecognized Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" ' unrecognized Direct input.o(.text+0x39):Direct input.cpp: undefined reference to `DirectInput8Create@20' collect2: ld returned 1 exit status make.exe: *** ["Direct] Error 1 Execution terminated I simply can't make any sense out of it. Can anyone help? Thanks in advance. Regards Philip Bennefall -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 4 Date: Thu, 8 Feb 2007 11:20:48 +0100 From: "Raghavendra R" <a class="moz-txt-link-rfc2396E" href="mailto:mai...@gm..."><mai...@gm...></a> Subject: [Dev-C++] Set debugger ON To: <a class="moz-txt-link-abbreviated" href="mailto:dev...@li...">dev...@li...</a> Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:9e7...@ma..."><9e7...@ma...></a> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hello, I am not able to debug my code ie Not able to set the debugger ON I have looked into the FAQ list about the similar question and help manual, I followed the same steps but it's not working. Steps I have followed, 1. set break points in code and added even watch also 2. compiled and run the program-F9 3. click ->debug- it asks that your project does not have debug information whether to enable or not click:::::: yes 4. click -> debug again or click -> run time cursor The program is working fine. Where is the problem? I have varied some of the steps with little luck. Should I follow some extra steps? Please help me in setting my debugger. If you can give me step by step information, it will be of great help. Raghavendra ------------------------------ Message: 5 Date: Mon, 12 Feb 2007 20:43:40 -0500 From: "ricardo padilla" <a class="moz-txt-link-rfc2396E" href="mailto:ri...@gm..."><ri...@gm...></a> Subject: [Dev-C++] post To: <a class="moz-txt-link-abbreviated" href="mailto:dev...@li...">dev...@li...</a> Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:6de...@ma..."><6de...@ma...></a> Content-Type: text/plain; charset=ISO-8859-1; format=flowed hello to all you. ------------------------------ Message: 6 Date: Tue, 13 Feb 2007 16:46:00 +0100 From: "Philip Bennefall" <a class="moz-txt-link-rfc2396E" href="mailto:phi...@pb..."><phi...@pb...></a> Subject: [Dev-C++] Huge executables To: <a class="moz-txt-link-rfc2396E" href="mailto:Dev...@li..."><Dev...@li...></a> Message-ID: <007501c74f86$10206940$4800a8c0@Pbgames> Content-Type: text/plain; charset="iso-8859-1" Hey folks, I've been feeling for a while that my executables have been much larger than they need to be, so I tried to make a very simple console application in C++ using iostream and nothing more. This code generates an executable that is over 400 kb! ---Code begin--- #include <iostream> using namespace std; int main() { int year; cout << "How old are you?\n"; cin >> year; cout << "Okay, you are " << year <<" years old.\n"; fflush(stdin); getchar(); } ---Code end--- This, I should imagine, would be something like 20 kb. I looked in the FAQ of course, and it said that I should make sure that I don't have debugging enabled. It does not look like it is, and I just can't figure out why the files are so huge. iostream, that's really small. Can anyone help? I have not modified any settings in compiler options at all. Regards Philip Bennefall -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 7 Date: Tue, 13 Feb 2007 16:53:50 +0100 (CET) From: Per Westermark <a class="moz-txt-link-rfc2396E" href="mailto:pw...@ia..."><pw...@ia...></a> Subject: Re: [Dev-C++] Huge executables To: Philip Bennefall <a class="moz-txt-link-rfc2396E" href="mailto:phi...@pb..."><phi...@pb...></a> Cc: <a class="moz-txt-link-abbreviated" href="mailto:Dev...@li...">Dev...@li...</a> Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:Pin...@ia..."><Pin...@ia...></a> Content-Type: TEXT/PLAIN; charset=US-ASCII If I just copy your code to test_size.cpp and then do: g++ test_size.cpp on your source, I get a binary that is 475kB. If I strip the binary, it will shrink to 266kB. This with MinGW gcc 3.4.2. Alas, the c++ library is quite aggresive at adding stuff to hello-world applications. The good part is of course that when you do add real code to the project, a large part of the RTL is already included, so the binary will not continue to grow at the same high speed. /Per W On Tue, 13 Feb 2007, Philip Bennefall wrote: </pre> <blockquote type="cite"> <pre wrap="">Hey folks, I've been feeling for a while that my executables have been much larger than they need to be, so I tried to make a very simple console application in C++ using iostream and nothing more. This code generates an executable that is over 400 kb! ---Code begin--- #include <iostream> using namespace std; int main() { int year; cout << "How old are you?\n"; cin >> year; cout << "Okay, you are " << year <<" years old.\n"; fflush(stdin); getchar(); } ---Code end--- This, I should imagine, would be something like 20 kb. I looked in the FAQ of course, and it said that I should make sure that I don't have debugging enabled. It does not look like it is, and I just can't figure out why the files are so huge. iostream, that's really small. Can anyone help? I have not modified any settings in compiler options at all. Regards Philip Bennefall </pre> </blockquote> <pre wrap=""><!----> ------------------------------ Message: 8 Date: Tue, 13 Feb 2007 17:08:08 +0100 From: "Philip Bennefall" <a class="moz-txt-link-rfc2396E" href="mailto:phi...@pb..."><phi...@pb...></a> Subject: Re: [Dev-C++] Huge executables To: <a class="moz-txt-link-rfc2396E" href="mailto:Dev...@li..."><Dev...@li...></a> Message-ID: <004b01c74f89$27383f60$4800a8c0@Pbgames> Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original When you strip the executable, what is actually removed? Should all release versions of executables be stripped? I mean, the information that is removed from the binary, is that only good for debugging purposes? Regards Philip Bennefall ----- Original Message ----- From: "Per Westermark" <a class="moz-txt-link-rfc2396E" href="mailto:pw...@ia..."><pw...@ia...></a> To: "Philip Bennefall" <a class="moz-txt-link-rfc2396E" href="mailto:phi...@pb..."><phi...@pb...></a> Cc: <a class="moz-txt-link-rfc2396E" href="mailto:Dev...@li..."><Dev...@li...></a> Sent: Tuesday, February 13, 2007 4:53 PM Subject: Re: [Dev-C++] Huge executables </pre> <blockquote type="cite"> <pre wrap="">If I just copy your code to test_size.cpp and then do: g++ test_size.cpp on your source, I get a binary that is 475kB. If I strip the binary, it will shrink to 266kB. This with MinGW gcc 3.4.2. Alas, the c++ library is quite aggresive at adding stuff to hello-world applications. The good part is of course that when you do add real code to the project, a large part of the RTL is already included, so the binary will not continue to grow at the same high speed. /Per W On Tue, 13 Feb 2007, Philip Bennefall wrote: </pre> <blockquote type="cite"> <pre wrap="">Hey folks, I've been feeling for a while that my executables have been much larger than they need to be, so I tried to make a very simple console application in C++ using iostream and nothing more. This code generates an executable that is over 400 kb! ---Code begin--- #include <iostream> using namespace std; int main() { int year; cout << "How old are you?\n"; cin >> year; cout << "Okay, you are " << year <<" years old.\n"; fflush(stdin); getchar(); } ---Code end--- This, I should imagine, would be something like 20 kb. I looked in the FAQ of course, and it said that I should make sure that I don't have debugging enabled. It does not look like it is, and I just can't figure out why the files are so huge. iostream, that's really small. Can anyone help? I have not modified any settings in compiler options at all. Regards Philip Bennefall </pre> </blockquote> <pre wrap=""> </pre> </blockquote> <pre wrap=""><!----> ------------------------------ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo <a class="moz-txt-link-freetext" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a> ------------------------------ _______________________________________________ Dev-cpp-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Dev...@li...">Dev...@li...</a> TO UNSUBSCRIBE: <a class="moz-txt-link-freetext" href="http://www.noicys.cjb.net/devcpp/ub.htm">http://www.noicys.cjb.net/devcpp/ub.htm</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/dev-cpp-users">https://lists.sourceforge.net/lists/listinfo/dev-cpp-users</a> End of Dev-cpp-users Digest, Vol 9, Issue 2 ******************************************* </pre> </blockquote> </body> </html> |
From: Philip B. <phi...@pb...> - 2007-02-13 16:06:16
|
When you strip the executable, what is actually removed? Should all release versions of executables be stripped? I mean, the information that is removed from the binary, is that only good for debugging purposes? Regards Philip Bennefall ----- Original Message ----- From: "Per Westermark" <pw...@ia...> To: "Philip Bennefall" <phi...@pb...> Cc: <Dev...@li...> Sent: Tuesday, February 13, 2007 4:53 PM Subject: Re: [Dev-C++] Huge executables > If I just copy your code to test_size.cpp and then do: > g++ test_size.cpp > on your source, I get a binary that is 475kB. > > If I strip the binary, it will shrink to 266kB. > > This with MinGW gcc 3.4.2. > > Alas, the c++ library is quite aggresive at adding stuff to hello-world > applications. The good part is of course that when you do add real code to > the project, a large part of the RTL is already included, so the binary > will not continue to grow at the same high speed. > > /Per W > > On Tue, 13 Feb 2007, Philip Bennefall wrote: > >> Hey folks, >> >> I've been feeling for a while that my executables have been much larger >> than they need to be, so I tried to make a very simple console >> application in C++ using iostream and nothing more. This code generates >> an executable that is over 400 kb! >> >> ---Code begin--- >> #include <iostream> >> >> using namespace std; >> >> int main() >> { >> int year; >> cout << "How old are you?\n"; >> cin >> year; >> cout << "Okay, you are " << year <<" years old.\n"; >> fflush(stdin); >> getchar(); >> } >> ---Code end--- >> >> This, I should imagine, would be something like 20 kb. I looked in the >> FAQ of course, and it said that I should make sure that I don't have >> debugging enabled. It does not look like it is, and I just can't figure >> out why the files are so huge. iostream, that's really small. Can anyone >> help? I have not modified any settings in compiler options at all. >> >> Regards >> Philip Bennefall > > |
From: Per W. <pw...@ia...> - 2007-02-13 15:54:42
|
If I just copy your code to test_size.cpp and then do: g++ test_size.cpp on your source, I get a binary that is 475kB. If I strip the binary, it will shrink to 266kB. This with MinGW gcc 3.4.2. Alas, the c++ library is quite aggresive at adding stuff to hello-world applications. The good part is of course that when you do add real code to the project, a large part of the RTL is already included, so the binary will not continue to grow at the same high speed. /Per W On Tue, 13 Feb 2007, Philip Bennefall wrote: > Hey folks, > > I've been feeling for a while that my executables have been much larger than they need to be, so I tried to make a very simple console application in C++ using iostream and nothing more. This code generates an executable that is over 400 kb! > > ---Code begin--- > #include <iostream> > > using namespace std; > > int main() > { > int year; > cout << "How old are you?\n"; > cin >> year; > cout << "Okay, you are " << year <<" years old.\n"; > fflush(stdin); > getchar(); > } > ---Code end--- > > This, I should imagine, would be something like 20 kb. I looked in the FAQ of course, and it said that I should make sure that I don't have debugging enabled. It does not look like it is, and I just can't figure out why the files are so huge. iostream, that's really small. Can anyone help? I have not modified any settings in compiler options at all. > > Regards > Philip Bennefall |
From: Philip B. <phi...@pb...> - 2007-02-13 15:44:19
|
Hey folks, I've been feeling for a while that my executables have been much larger = than they need to be, so I tried to make a very simple console = application in C++ using iostream and nothing more. This code generates = an executable that is over 400 kb! ---Code begin--- #include <iostream> using namespace std; int main() { int year; cout << "How old are you?\n"; cin >> year; cout << "Okay, you are " << year <<" years old.\n"; fflush(stdin); getchar(); } ---Code end--- This, I should imagine, would be something like 20 kb. I looked in the = FAQ of course, and it said that I should make sure that I don't have = debugging enabled. It does not look like it is, and I just can't figure = out why the files are so huge. iostream, that's really small. Can anyone = help? I have not modified any settings in compiler options at all. Regards Philip Bennefall |
From: ricardo p. <ri...@gm...> - 2007-02-13 01:43:47
|
hello to all you. |
From: Raghavendra R <mai...@gm...> - 2007-02-08 10:20:51
|
Hello, I am not able to debug my code ie Not able to set the debugger ON I have looked into the FAQ list about the similar question and help manual, I followed the same steps but it's not working. Steps I have followed, 1. set break points in code and added even watch also 2. compiled and run the program-F9 3. click ->debug- it asks that your project does not have debug information whether to enable or not click:::::: yes 4. click -> debug again or click -> run time cursor The program is working fine. Where is the problem? I have varied some of the steps with little luck. Should I follow some extra steps? Please help me in setting my debugger. If you can give me step by step information, it will be of great help. Raghavendra |
From: Philip B. <phi...@pb...> - 2007-02-07 01:00:00
|
Hey everyone, I am trying to compile a program that uses Direct input 8, and I believe = that I have done everything correctly, but the linker will not include = dinput8.lib for some reason. I am using the Microsoft Direct X October = SDK release from 2006, so there should be no problem what so ever. It is = finding the file, that's for sure, but it is giving me a strange error = that I can't for the life of me figure out how to solve. The log is = below. Compiler: Default compiler Building Makefile: "C:\C++ tests\Direct input\Makefile.win" Finding dependencies for file: C:\C++ tests\Direct input\Direct = input.cpp Executing make... make.exe -f "C:\C++ tests\Direct input\Makefile.win" all g++.exe -c "Direct input.cpp" -o "Direct input.o" = -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" = -I"C:/Dev-Cpp/include/c++/3.4.2/backward" = -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" = -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" =20 g++.exe "Direct input.o" -o "Direct input.exe" -L"C:/Dev-Cpp/lib" = -mwindows dxguid.lib dinput8.lib =20 Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" ' = unrecognized Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" ' = unrecognized Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" ' = unrecognized Direct input.o(.text+0x39):Direct input.cpp: undefined reference to = `DirectInput8Create@20' collect2: ld returned 1 exit status make.exe: *** ["Direct] Error 1 Execution terminated I simply can't make any sense out of it. Can anyone help? Thanks in advance. Regards Philip Bennefall |
From: Ken B. <kba...@ya...> - 2007-02-03 17:20:20
|
This is a very fundamental equation... I put 2 'float's in my program and multiplied them... I then used basic 'cout' to print out the decimals... The program internally rounded all 3 outputs to basically integers... It did not print the number to the right of the decimal... I thought I could use setprecision() to see number of decimals to right of decimals... but that did not work... ...so, why does dev4cpp do this...?... and... how do I make simple corrections for printing of decimals from floats...? Thks, ken --------------------------------- No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. |
From: Per W. <pw...@ia...> - 2007-02-01 18:42:02
|
The constant is defined in winbase.h. winbase.h is also included from windows.h When in trouble - always do a grep in the include directories. /Per W On Thu, 1 Feb 2007 k.a...@at... wrote: > I am trying to run a program but I keep getting an error message. The message is STD_OUTPUT_HANDLE undeclared. The line of code that I have in my program is > HANDLE hcon = Get Std Handle (STD_OUTPUT_HANDLE); > I am using Dev C++ version 4.9.8.0 can someone tell me if this version supports hcon? > > Kathy Elia > k.a...@at... |
From: <k.a...@at...> - 2007-02-01 18:34:35
|
I am trying to run a program but I keep getting an error message. The message is STD_OUTPUT_HANDLE undeclared. The line of code that I have in my program is HANDLE hcon = Get Std Handle (STD_OUTPUT_HANDLE); I am using Dev C++ version 4.9.8.0 can someone tell me if this version supports hcon? Kathy Elia k.a...@at... |