dev-cpp-users Mailing List for Dev-C++ (Page 392)
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: Rafael C. <cha...@un...> - 2003-04-25 15:33:48
|
Have you tried http://www.wxwindows.org/? Dwayne Miller wrote: > Ok, sorry if this is in an FAQ someplace, I searched the past two > evenings for help, to no luck. > > I am looking for some form of How To, or tutorial on using wxWindows > under Dev-Cpp. > > I have succesfully installed it, and it works, both Dev-Cpp and > wxWindows DevPack. I just have no idea where to start learning how to > use it. I have a working knowledge of C, and a smattering of C++ but > have never ever programmed for windows, only console. > > Any help appreciated. > > Thanks, > Dwayne Miller > Barberton, Ohio > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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 > |
|
From: Janos B. <jb...@gm...> - 2003-04-25 14:55:12
|
After having played with Dec-C++ for a few days, here is what I see: The IDE that Dev-C++ is so good that I should probably never use Emacs for programming any more. It (Dev-C++) is so much better than MVC++6. So the only problem (as far as I and probably many other people are concerned) is the lack of a decent debugger. I do not know how difficult it is to write a MVC++6 style debugger but that debugger is excellent. Now I just thought: The Watcom sources should be be free by now; so wouldn't it be possible to look at that code and learn how they implemented their debugger (which almost paralleled the MVC++ debugger) and write your own debugger. Taken the genuine devotion of the Dev-C++ team (othwewise they could not have created such a nice product) it would be only a question of until they woul produce even a better debugger. Is this suggestion completely stupid? Is any work being done on a debugger vor Dev-C++? (As for the quality of the compiler, for most applications it is not that decisive.) At the moment I use Dev-C++ and for the tricky parts MVC++6. Anyway, thx for this great product. -- EG |
|
From: Daniel G. <sp...@ho...> - 2003-04-25 13:49:26
|
Yes knowing that you are using the hungarian keyboard is important (at least I think it is!!!). So the semicolon works fine in all applications except in dev-c++ ? The only thing I'd recommend is changing your settings in control panel to use a different character set for your keyboard. I'm afraid I'm not sure what else you could do. Oh hang on, have you tried typing ; in notepad or somewhere, and in Dev-C++ doing a paste to put the semi colon in? What happens this way? Does the semi colon appear, or do you get nothing, or some garbage character? Could be to do with unicode/dbcs/ascii perhaps. I'm just guessing here. >From: Neszt Tibor <ne...@ss...> >To: Daniel Glenfield <sp...@ho...> >CC: dev...@li... >Subject: Re: [Dev-C++] missing ";" >Date: Fri, 25 Apr 2003 15:22:52 +0200 (MET DST) > > > ok let's find out a few things. If you open notepad or another text >editor > > can you type a semi colon? If you can, you'll need to reinstall DEV. If >not, > > you need to reinstall your OS or, if a special keyboard, the keyboard > > driver. > >Reinstall OS :-))))) > >Oh, funny, You don't understand me. Of course, I can type semicolon all of >my other programs. Need to reintall devc++? How many times? If You read >my letter thoughtfully, You can see, I tried many version of devc++. >Moreover! In the meantime, I tried to install devc++ to 4 other computers, >and the semicolor is missing on all of them. >I'm sure the problem is NOT in the devc++. >I use hungarian keyboard, if it is important. (Any other hungarian user >here?) > >Regards, > > Neszt Tibor > >P.s.: To see, I can type semicolon here... ;;;;;;;;;;; > >:-))) > _________________________________________________________________ Stay in touch with absent friends - get MSN Messenger http://www.msn.co.uk/messenger |
|
From: Neszt T. <ne...@ss...> - 2003-04-25 13:21:41
|
> ok let's find out a few things. If you open notepad or another text editor > can you type a semi colon? If you can, you'll need to reinstall DEV. If not, > you need to reinstall your OS or, if a special keyboard, the keyboard > driver. Reinstall OS :-))))) Oh, funny, You don't understand me. Of course, I can type semicolon all of my other programs. Need to reintall devc++? How many times? If You read my letter thoughtfully, You can see, I tried many version of devc++. Moreover! In the meantime, I tried to install devc++ to 4 other computers, and the semicolor is missing on all of them. I'm sure the problem is NOT in the devc++. I use hungarian keyboard, if it is important. (Any other hungarian user here?) Regards, Neszt Tibor P.s.: To see, I can type semicolon here... ;;;;;;;;;;; :-))) |
|
From: <ca...@kr...> - 2003-04-25 12:28:32
|
> -stdin gets cleared
> how can i do that?
fflush(stdin);
just found out how.. thanks anyway!
gruss
/Christian mailto:ca...@kr...
---
I propose that the following character sequence for joke markers:
:-)
19-Sep-82 11:44 Scott E Fahlman
|
|
From: <ca...@kr...> - 2003-04-25 12:23:03
|
hi dev-cpp-users,
I try the following code:
<snip>
#include <stdio.h>
int main(int argc, char** argv)
{
char buffer[5];
while(1)
{
printf("prompt > ");
scanf("%4[^\n]",buffer);
printf("you typed: %s\n", buffer);
printf("you typed: %d %d %d %d %d\n", buffer[0], buffer[1], buffer[2], buffer[3], buffer[4]);
}
return 0;
}
</snap>
but it obviously doesn't work.
I want to emulate a console behaviour.
so that whenever you press <ENTER>
-the just typed letters (only 4 of them) get placed in buffer (with a
terminating 0)
-buffer gets printed
-buffer gets cleared
-stdin gets cleared
-new prompt waiting for input ()
how can i do that?
gruss
/Christian mailto:ca...@kr...
---
I propose that the following character sequence for joke markers:
:-)
19-Sep-82 11:44 Scott E Fahlman
|
|
From: Daniel G. <sp...@ho...> - 2003-04-25 12:04:42
|
Have you tried using 'j' instead? It looks similar to the semi colon. ok let's find out a few things. If you open notepad or another text editor can you type a semi colon? If you can, you'll need to reinstall DEV. If not, you need to reinstall your OS or, if a special keyboard, the keyboard driver. >From: Neszt Tibor <ne...@ss...> >To: dev...@li... >Subject: [Dev-C++] missing ";" >Date: Fri, 25 Apr 2003 09:32:51 +0200 (MET DST) > >Hello! > >I was satisfied with devc++4. That's why I not upgraded to a newer >version. Now, I installed the lastest one (4.9.8.0), and the first I >realized, I cannot type the ";" semicolon, because I can not find.. >I was in surprise, and I tried some of older versions (4.9.2.0, 4.9.6.0, >4.9.7.0), with no result. > >It is a trick? > >Please help me, to get back my dear semicolon.. :) > >Thanks Your help in advance, > >Regards, > >Neszt Tibor > >P.s.: Of course, I tried all of my keys, and looked over the whole >devc++ settings, and the windows keyboards settings. > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >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 _________________________________________________________________ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger |
|
From: Mark S. <mar...@li...> - 2003-04-25 11:38:31
|
loads of icon collections here: http://www.pcworld.com/downloads/file_description/0,fid,4281,00.asp --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.458 / Virus Database: 257 - Release Date: 24/02/03 The information contained in this e-mail message (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s). If you are not an addressee, any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited. If you have received this communication in error, please contact us immediately so that we can correct the error. |
|
From: Yeoh H. <ye...@ye...> - 2003-04-25 09:36:12
|
----- Original Message ----- From: "Ioannis Vranos" <iv...@em...> To: "Dev-C++ Mailing List" <dev...@li...> Sent: Friday, April 25, 2003 2:59 PM Subject: [Dev-C++] Bitmaps > Does anyone know any site with free bitmaps and icons suitable for > programming? (file open, print etc ones). > > > > > Regards, > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL 1: http://run.to/noicys > * Alternative URL 2: http://www.noicys.cjb.net > > > Anti-racism movement: http://www.positive-youthfoundation.org > Iraq Peace Pledge: http://www.peacepledge.org > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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 Try this site: http://www.aha-soft.com/iconlibs.htm Best Regards, Yeoh -- http://www.yeohhs.com |
|
From: Dondolo M. <MDo...@OL...> - 2003-04-25 09:32:00
|
Hi Guys, Can anybody help me. I need a code that will be able to read and display the model, make, and other stuff of hardware. For example, the info your harddrive, CDROM, Memory .ect.ect.ect. I want to understand how to communicate with your hardware. Regards, Mpho Dondolo Support Analyst Computer Sciences Corp. (CSC) Tel: +27 21 503 0059 Fax: +27 21 509 5619 Cell: +27 84 337 1468 mdo...@cs... mdo...@ol... |
|
From: Christian W. <Chr...@vo...> - 2003-04-25 09:00:32
|
Hi List, in the good old days of DOS we had the possibility to check the state of the RS232 ports. (In Basic I have tested if GND and another port was connected inp(PORT + PIN) )... How can i realise that in cpp under win32 ??? I have to check if a circuit is closed (alert system)... I know that you can not longer get direct access to the hardware ... does any one have an idea or better an example ??? kind regards |
|
From: Neszt T. <ne...@ss...> - 2003-04-25 07:31:29
|
Hello! I was satisfied with devc++4. That's why I not upgraded to a newer version. Now, I installed the lastest one (4.9.8.0), and the first I realized, I cannot type the ";" semicolon, because I can not find.. I was in surprise, and I tried some of older versions (4.9.2.0, 4.9.6.0, 4.9.7.0), with no result. It is a trick? Please help me, to get back my dear semicolon.. :) Thanks Your help in advance, Regards, Neszt Tibor P.s.: Of course, I tried all of my keys, and looked over the whole devc++ settings, and the windows keyboards settings. |
|
From: Ioannis V. <iv...@em...> - 2003-04-25 06:59:14
|
Does anyone know any site with free bitmaps and icons suitable for programming? (file open, print etc ones). Regards, Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |
|
From: Smitha V. B. <smi...@so...> - 2003-04-25 04:06:07
|
Hi, all I am new to Xwindows programming and linux... Is it possible to do X windows programming using telnet... Where i will get good guide to X windows programming... Thanking in advance with 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. ********************************************************************* |
|
From: Dwayne M. <dmi...@ne...> - 2003-04-25 04:05:00
|
Ok, sorry if this is in an FAQ someplace, I searched the past two evenings for help, to no luck. I am looking for some form of How To, or tutorial on using wxWindows under Dev-Cpp. I have succesfully installed it, and it works, both Dev-Cpp and wxWindows DevPack. I just have no idea where to start learning how to use it. I have a working knowledge of C, and a smattering of C++ but have never ever programmed for windows, only console. Any help appreciated. Thanks, Dwayne Miller Barberton, Ohio |
|
From: jp <rar...@xt...> - 2003-04-24 22:12:46
|
C++ locales use facets as template parameters to the std::ios classes. facets are a fascinating topic and worth checking out. you can easily make your own locale, and drop it in the iostream = heirarchy. There's some good stuff on locales and facets on the Dr Dobbs site, in = an expert's column on iostreams, by a woman whose name I've forgotten, = who also has a book on the same subject. I cld find it in 2 minutes, but = I haven't got 2 minutes. Interesting discussion of streambufs as well... also here's some stuff... http://www.cantrip.org/locale.html ever heard of google? jp |
|
From: jp <rar...@xt...> - 2003-04-24 19:51:19
|
help. can't breath. need source... It's not a threading issue.. My guess is that the problem is still there, its just yr sort is trampling on less sensitive memory from its differnt location in code space, or maybe the call to get() forces some static data to be initialized. Where is the matrix defined? If its static or global, try making it local... > I'm facing a problem that I have to slow down my program > to avoid a segmentation fault .... > Regards, > Kris |
|
From: jp <rar...@xt...> - 2003-04-24 19:24:31
|
Hi,
This isn't a Dev-Cpp question, but I'd be interested in anyone's thoughts...
If I'm using C++, I avoid using the preprocessor for anything except
#include's and #pragma's.
The directives I most despise are #line, as suffered by users of lex/yacc,
esql, and other source code generators, and ...
#ifdef ENTIRELY_STUPID_FEATURE_FOR_ANNOYING_CLIENT
void stupid();
#endif
If I need a constant I use, eg, enum{SOMETHING=0xffffffff}; One of the
benefits is that such constants are scoped. It bugs me when I want, eg,
enum{ERROR=0xffffffff}; and ERROR has already been #defined in a header...
Sometimes, wash my mouth out, I #undef, eg, ERROR..
If I need a macro I use...
template <typename someT> void xargle( someT& thing)
{
xargle_buffer << thing;
}
BUT, and here's the point of my question, I don't know of any way to
stringize or token paste without using the preprocessor. I have a lisp. Not
literally, like thith, but a library I've written. Built in types are
instantiated using templates, so that, given a constant type id (eg:
INTEGER), I can add a new type like so..
DECLTYPE(int, INTEGER, Integer)
the macro DECLTYPE looks like this...
#define DECLTYPE(T, I, n)typedef imp::ImplObject<T, I> n;\
bool is##n(const Object &obj);\
const T &get##n(const Object &obj);\
T &ref##n(const Object &obj);
and there is an equally brief IMPLTYPE.
The library allows constructions like..
Object thing = String("gimme five: ");
String s = thing;
Integer i = 4;
thing = i;
refInteger(thing)++;
cout << s << thing;
==========================================
This all works pretty well, and my lisp handles multimedia, ISAM, COM,
sockets and other exotica in a fully object oriented, but typesafe, manner.
But FUNGLTYPE is a macro, and like I say, #define's are for grannies, so..
..does anybody know of an alternative to macros for generating identifiers
from user supplied fragments?
Cheers,
jp.
|
|
From: Ioannis V. <iv...@at...> - 2003-04-24 18:49:06
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Krzysztof Kapuscik > Sent: Thursday, April 24, 2003 4:10 PM > To: Dev...@li... > Subject: Fwd: RE: [Dev-C++] c or c++. that is the question > > > This is not exactly right. One of the reasons why the C++ code could > be larger/slower than C one (not much, just a bit) is that for every > object the '*this' pointer is added to function params. Just putting > it one the stack takes a bit of time and a bit of space... > > Why people need to use C sometimes instead of C++? Because there are > many platforms (especially microcontrollers) for which there is a > C compiler but no C++ is available. Also the object-oriented (C++) > programming (with analysis, optimization) is more complicated than > programming without objects. If a "this" pointer is considered too costly to you then don't use objects in your C++ code. Do you believe that C is better than the procedural paradigm of C++ (the C-subset?). Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |
|
From: Ioannis V. <iv...@at...> - 2003-04-24 18:46:13
|
> -----Original Message----- > From: Daniel Glenfield [mailto:sp...@ho...] > Sent: Thursday, April 24, 2003 12:02 PM > To: iv...@at...; Dev...@li... > Subject: RE: [Dev-C++] c or c++. that is the question > > > what about > #ifdef __cplusplus > //...code > #endif > > or is that something that our company has created themselves? It is an extension of the implementation. extern "C" when applied to a C++ definition creates an object file with C linkage. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |
|
From: Kris N. <kri...@ag...> - 2003-04-24 14:59:14
|
Dear all, I'm facing a problem that I have to slow down my program to avoid a segmentation fault - or at least that is how I interprete my problems. I have a class function that sorts a matrix. When I put cin.get(); before this function, the function works. When I remove cin.get();, I get a segmentation fault. A few lines further it works without any problems in a for() routine. Strange enough the cout function one line after my sort function always works. I get the impression, but am not a profressional programmer, that functions run more or less simultaneously. It looks as if cout is started before the sort function is finished. Has it something to do with threading, I heard about it, never looked at it. Has anyone an idea what's going on, probably it's quite obvious for a professional? Are there good references where I can find more information? Regards, Kris -- ------------------------------------------------------------------------ http://perswww.kuleuven.ac.be/~u0027178/VCard/mycard.php?name=krisn ------------------------------------------------------------------------ Minds are like parachutes, they only work when open |
|
From: Krzysztof K. <sa...@op...> - 2003-04-24 13:10:32
|
> Khalid > >Ioannis wearing his bullet-proof vest: > > > > > >Keep in mind that the prevalent X-Window library now is a > C++ one. Also > >most > >new GNU/Linux programs are being written in C++ these days... > > > > > >File sizes for the hello world program should not be different. > > This is not exactly right. One of the reasons why the C++ code could be larger/slower than C one (not much, just a bit) is that for every object the '*this' pointer is added to function params. Just putting it one the stack takes a bit of time and a bit of space... Why people need to use C sometimes instead of C++? Because there are many platforms (especially microcontrollers) for which there is a C compiler but no C++ is available. Also the object-oriented (C++) programming (with analysis, optimization) is more complicated than programming without objects. -- Have a nice life, Krzysztof mailto:sa...@op... http://www.saveman.w.pl |
|
From: Daniel G. <sp...@ho...> - 2003-04-24 09:02:21
|
what about #ifdef __cplusplus //...code #endif or is that something that our company has created themselves? >From: "Ioannis Vranos" <iv...@at...> >To: <Dev...@li...> >Subject: RE: [Dev-C++] c or c++. that is the question >Date: Wed, 23 Apr 2003 07:53:06 +0300 > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Khalid El-Kary > > Sent: Wednesday, April 23, 2003 7:19 AM > > To: Dev...@li... > > Subject: RE: [Dev-C++] c or c++. that is the question > > > > > > One question: > > > > is there a extern "C++" like there's extern "C" ? > > > > if there's isn't, C code will be more useable, for both C++ > > and C programms. > > (?) > > > > > > Khalid > > >extern "C" works both ways! > > >If you want to use your C++ code in C programs, enclose the C++ >*definitions* inside extern "C" blocks. > > > > >Ioannis Vranos > >* Programming pages: http://www.noicys.freeurl.com >* Alternative URL 1: http://run.to/noicys >* Alternative URL 2: http://www.noicys.cjb.net > > >Anti-racism movement: http://www.positive-youthfoundation.org >Iraq Peace Pledge: http://www.peacepledge.org > > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >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 _________________________________________________________________ Express yourself with cool emoticons http://www.msn.co.uk/messenger |
|
From: Ioannis V. <iv...@at...> - 2003-04-24 04:03:14
|
> -----Original Message----- > From: Per Westermark [mailto:pw...@ia...] > Sent: Thursday, April 24, 2003 6:11 AM > To: Ioannis Vranos > Cc: Dev-C++ Mailing List > Subject: RE: RES: [Dev-C++] generated .exe is too big > > > _Bool does not increase size of final executable. > > _Complex and (possibly) long long increases the size of the > executable - > but only for executables that needs them, and then it can > hardly count. An > opengl executable is larger than a hello world, but that isn't a > deficiency of opengl but just that the opengl application > solves a harder > problem. > > Without the _Complex data type, you have to implement - or > link through an > existing library - your own complex math. And by doing that, the > application has to be larger or the application wouldn't work. > >[...] I did not say that complex type existence is bad (although I do not like to provide whatever type one can imagine as built in). I posted my theory why the C99-compliant MINGW 3.x produce larger executables than 2.95.x ones. I think it is because of the the new built in types and library facilities (for example printf() got larger to support the new types and changes). Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |
|
From: Per W. <pw...@ia...> - 2003-04-24 03:33:14
|
Forgot a comment. See below /Per W On Thu, 24 Apr 2003, Ioannis Vranos wrote: > > -----Original Message----- > > From: Per Westermark [mailto:pw...@ia...] > > Sent: Thursday, April 24, 2003 5:26 AM > > To: Ioannis Vranos > > Cc: Dev-C++ Mailing List > > Subject: RE: RES: [Dev-C++] generated .exe is too big > > > > > > The changes for C99 should not make a real difference in quality of > > mapping against hardware. > > > > [...] > > > > _Complex operators needs either multiple assembler > > instructions or calls > > to helper functions, to handle all combinations of NaN and > > infinities. No > > difference from support of float and double on a processor without fp > > support. Linker wouldn't add these helper functions unless needed. > > > Yes but there are processors with fp support. However there isn't any with > complex support. > General purpose processors have a bit of lack of this support, but a number of DSP processors do have built-in data types for complex numbers since they are used in FFT evaluations etc. In this case, the _Complex data type makes C code more portable. Previous implementations has had to add non-standard additions for handling this data type. In the same way, a number of processors have 1-bit variables. When programming the 8051 processor, one compiler I have been using have added the extra keyword bit just to allow the use of these variables. Now it gets defined in the base language, allowing easy portability to other C vendors having a compiler for that processor. It should be noted that while C++ is more used on PC-class hardware and upwards, C is very large in the embedded market, and the guys implementing these compilers have a tough time constantly adding extra data types and keywords just because the NEED to map the full capability set of the used processor. In desktop programming, we don't give a damn if the compiler ignores using one or two exotic processor instructions but in the embedded market that instruction might be the difference between a working and a non-working application, and no designer designs in +10 - +50% higher chips multiplied by 100k units to get an extra feature and not being able to use it. With _Bool and _Complex data types, they might test-run the application on their normal PC while developing, and then recompile the source with the target compiler and make timing and final test runs on the real metal. > > > > It isn't possible to add _Bool and _Complex as just typedef, > > since it's a > > question of giving the language the correct operators too. In C++ with > > operator overloading we can add a _Complex type on our own, > > but in C it > > has to be made as a hard-coded data type. > > > > I mean they could avoid polluting the namespace. And what about size_t? In > C99 it can be some type other than the provided standard built in ones, and > yet is provided through header file only. > > In any case, these things do increase the size of the final executable. > > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL 1: http://run.to/noicys > * Alternative URL 2: http://www.noicys.cjb.net > > > Anti-racism movement: http://www.positive-youthfoundation.org > Iraq Peace Pledge: http://www.peacepledge.org > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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 > |