dev-cpp-users Mailing List for Dev-C++ (Page 161)
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: Alfred P. R. <al...@ya...> - 2004-12-13 20:42:58
|
HI Issac, You should add the SQLite files to the project, then go into the Project Options -> Compiler window and select compile as C for the SQLite sources. You have to do that to each file individually. "Isaac E. Wagner" <is...@wa...> wrote: I've got a C++ project that requires a public domain C library (SQLite). I am trying to compile the library directly into the project, instead of linking to the library. I've tried compiling SQLite as a C++ project, but it generates tons of errors, so it really does need to be C compiled. Anyway, is there a way to add those files to my project, but have the C compiler invoked on them, and the C++ compiler invoked on the rest? <snip> Alfred P. Reaud |
|
From: Isaac E. W. <is...@wa...> - 2004-12-13 17:49:24
|
I've got a C++ project that requires a public domain C library (SQLite). I am trying to compile the library directly into the project, instead of linking to the library. I've tried compiling SQLite as a C++ project, but it generates tons of errors, so it really does need to be C compiled. Anyway, is there a way to add those files to my project, but have the C compiler invoked on them, and the C++ compiler invoked on the rest? Does that make sense? Thanks! |
|
From: Jonathan D.T. <tur...@ka...> - 2004-12-13 07:39:00
|
Hi, I'm trying to debug a program which I know produces a segfault at a certain point. I've set a number of breakpoints by clicking on the black band at the left of the editor window. When I click the purple checkmark icon to initiate debugging, there seems to be no visual clue as to current location in the program. If I click "run to cursor" several times, I get the expected segfault, but I never know where I am in the program, and clicking "Step Into" or "Next Step" seems to have no effect. I've compiled the program with all optimizations disabled and with the -g option. Any help would be greatly appreciated. Best Regards, Jonathan Turkanis |
|
From: Harald N. <no...@sb...> - 2004-12-12 02:59:36
|
Hello!
I thought I can define a shared memory in a dll with the following command
in the *.c file:
#pragma data_seg(".SHARDATA")
static HWND mainWindow = NULL;
static UINT message = 0;
#pragma data_seg()
#pragma comment(linker,"/SECTION:.SHARDATA,RWS")
but it has no effect :-(
in the linker options of the project stands following:
--no-export-all-symbols --add-stdcall-alias
what do I have to solve that problem?
THANKS for your help !!!!!
|
|
From: Per W. <pw...@ia...> - 2004-12-11 17:39:53
|
Borland have always shipped excellent help files - or at least used to,
since I haven't used any recent Borland compilers.
Of course a good online help should include operator precedence, just as
it should contain the runtime library reference, or at least a direct link
to a separately installed GNU documentation or similar.
What I meant by operator precedence being basic programming skill is that
I don't think that they are something that should require massive amounts
of googling for. For beginners they should be max two seconds away, and
for experienced programmers they should be "hard-coded" in memory. Any
person who works full-time programming C or C++ should be able to remember
the rules even if waked up in the middle of the night. That is one of the
cornerstones for writing bug-free code.
Most programming languages have very similar operator precedence rules,
which isn't so strange since most of the rules have been created as a
result of a bit of logic thinking and are based on non-programming rules
from the mathematics world.
About using massive amounts of parentheses in the source code, some
programmers feels that operator precedence is black magic and if they
don't clearly show the execution order neither the programmer self - or
any other programmer - will be able to later look at an expression and
deduce what it does.
It's fine by me if people want to be very clear when doing bit or shift
operators or similar, but I get a bit of an headache when
multiplication/division needs parentheses to convice the world that they
should be evaluated before addition/subtraction. The expressions below
have the big problem that it starts with four lpar making it very hard to
immediately keep track of the corresponding rpar.
One other thing I have noticed is that some programmers somehow think that
operator precedence isn't 100% fixed, but might vary between compilers,
and just because it works on "their" compiler they still feel a need for
parentheses to make sure the code is portable. I don't know if this has
something to do with parameter passing, where the compiler is free to
decide which order the parameters should be evaluated. What I mean is aa
construct like:
int i = 0;
printf("%d %d %d\n",i++,i++,i++);
where all bets are off about the resulting output. The funny thing with
the above code is of course that parentheses can't be used to solve the
problem anyway, so there really are no similarities with normal operator
precedence.
/Per W
On Sun, 12 Dec 2004, Eric wrote:
> O bye the way ......
>
> the fact that someone wrote
> x = ((((mm-1)*31)+dd)-1)%8;
> y = ((((mm-1)*31)+dd)-1)/8;
>
> is a clear indication that people that do "programming micro-controller with C" more than I do and I was
> able to pick up the correction show that not everyone is up to speed with operator precedence.
>
>
> A very good reason why this should included in upgrade version of [Dev-C++] help notes after all
> Borlands have done it and they are not a "fly by night - half measure company"
>
>
> >From Eric
>
>
>
> ----- Original Message -----
> From: "Eric" <eri...@cl...>
> To: <dev...@li...>
> Sent: Sunday, December 12, 2004 3:48 AM
> Subject: Re: [Dev-C++] help files and Operator Precedence
>
>
> OK
>
> It is just that I don't do C++ full time nor do I programming micro-controller with C full time, A
> employment option in ether direction would be great !!! :)
>
> This is why I have kept the C++ notes in folder and refer to them and upgrade them from time to time as
> needed,
>
> The only reason why I made a posting is so I could find (and others as well) the operator precedence
> order in the help file if I need to and don't have access to my notes, I am sure you Per Westermark would
> not need them but other people might find it useful and stop them posting to this group on a trivial
> problem using operator precedence.
>
> After all I did see a "Hello world" example in the help files briefly while looking for something else.
>
> Also I do realize that operator precedence (and did while I was at school) that the operator precedence
> does not change between local and global variables, it was (it the time) a reminder that in a function a
> global variable would be ignored if there was a local variable defined in that function.
>
> >From Eric
>
>
>
>
>
>
>
>
> ----- Original Message -----
> From: "Per Westermark" <pw...@ia...>
> To: "Eric" <eri...@cl...>
> Cc: <dev...@li...>
> Sent: Sunday, December 12, 2004 3:27 AM
> Subject: Re: [Dev-C++] help files and Operator Precedence
>
>
> Knowing thee precendence rules are part of basic programming skills.
>
> Anyway, there are _no_ precedence difference between auto and global
> variables when evaluating an expression.
>
> There is, of course, a difference in the time when the
> constructors/destructors will be run for variables declared global, auto
> or dyanmically allocated.
>
> /Wer W
>
> On Sun, 12 Dec 2004, Eric wrote:
>
> > Hi I belong to a micro-controller group,
> >
> >
> > someone in the group presented a formula (which might not be the problem to their question)
> > x = ((((mm-1)*31)+dd)-1)%8;
> > y = ((((mm-1)*31)+dd)-1)/8;
> >
> >
> > I told them it could be written as
> > x = ((mm-1)*31+dd-1)%8;
> > y = ((mm-1)*31+dd-1)/8;
> >
> >
> > if they look on the "Operator Precedence chart"
> >
> > it took me a while to remember I had printed off the Operator Precedence chart from the Borland help
> > files, for my own C++ notes (while I was at C++, school)
> >
> > While you can find the Operator Precedence chart on Internet with the help of Google, a couple of web
> > sites I have seen does not tell that most Operator Precedence level (16 in all) go from left to right,
> > but there are three that go from right to left, level 2, 13 and 15.
> >
> >
> > Hand written on the bottom of the page is a reminder local variables take precedence over global
> > variables (I was at school at the time when I wrote the notes, OK)
> >
> >
> >
> > The Aim of this posting is a suggestion this could included in the (dev-C++) help files on future
> > upgrades unless I am using a old version you can correct me and I would be grateful.
> >
> >
> > >From Eric Richards
> >
> >
> >
> >
> >
> >
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.809 / Virus Database: 551 - Release Date: 09-Dec-04
> >
> >
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://productguide.itmanagersjournal.com/
> > _______________________________________________
> > 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
> >
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.809 / Virus Database: 551 - Release Date: 09-Dec-04
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> 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
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> 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: Eric <eri...@cl...> - 2004-12-11 15:14:29
|
O bye the way ...... the fact that someone wrote x = ((((mm-1)*31)+dd)-1)%8; y = ((((mm-1)*31)+dd)-1)/8; is a clear indication that people that do "programming micro-controller with C" more than I do and I was able to pick up the correction show that not everyone is up to speed with operator precedence. A very good reason why this should included in upgrade version of [Dev-C++] help notes after all Borlands have done it and they are not a "fly by night - half measure company" From Eric ----- Original Message ----- From: "Eric" <eri...@cl...> To: <dev...@li...> Sent: Sunday, December 12, 2004 3:48 AM Subject: Re: [Dev-C++] help files and Operator Precedence OK It is just that I don't do C++ full time nor do I programming micro-controller with C full time, A employment option in ether direction would be great !!! :) This is why I have kept the C++ notes in folder and refer to them and upgrade them from time to time as needed, The only reason why I made a posting is so I could find (and others as well) the operator precedence order in the help file if I need to and don't have access to my notes, I am sure you Per Westermark would not need them but other people might find it useful and stop them posting to this group on a trivial problem using operator precedence. After all I did see a "Hello world" example in the help files briefly while looking for something else. Also I do realize that operator precedence (and did while I was at school) that the operator precedence does not change between local and global variables, it was (it the time) a reminder that in a function a global variable would be ignored if there was a local variable defined in that function. From Eric ----- Original Message ----- From: "Per Westermark" <pw...@ia...> To: "Eric" <eri...@cl...> Cc: <dev...@li...> Sent: Sunday, December 12, 2004 3:27 AM Subject: Re: [Dev-C++] help files and Operator Precedence Knowing thee precendence rules are part of basic programming skills. Anyway, there are _no_ precedence difference between auto and global variables when evaluating an expression. There is, of course, a difference in the time when the constructors/destructors will be run for variables declared global, auto or dyanmically allocated. /Wer W On Sun, 12 Dec 2004, Eric wrote: > Hi I belong to a micro-controller group, > > > someone in the group presented a formula (which might not be the problem to their question) > x = ((((mm-1)*31)+dd)-1)%8; > y = ((((mm-1)*31)+dd)-1)/8; > > > I told them it could be written as > x = ((mm-1)*31+dd-1)%8; > y = ((mm-1)*31+dd-1)/8; > > > if they look on the "Operator Precedence chart" > > it took me a while to remember I had printed off the Operator Precedence chart from the Borland help > files, for my own C++ notes (while I was at C++, school) > > While you can find the Operator Precedence chart on Internet with the help of Google, a couple of web > sites I have seen does not tell that most Operator Precedence level (16 in all) go from left to right, > but there are three that go from right to left, level 2, 13 and 15. > > > Hand written on the bottom of the page is a reminder local variables take precedence over global > variables (I was at school at the time when I wrote the notes, OK) > > > > The Aim of this posting is a suggestion this could included in the (dev-C++) help files on future > upgrades unless I am using a old version you can correct me and I would be grateful. > > > >From Eric Richards > > > > > > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.809 / Virus Database: 551 - Release Date: 09-Dec-04 > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > 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 > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.809 / Virus Database: 551 - Release Date: 09-Dec-04 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ 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: Eric <eri...@cl...> - 2004-12-11 14:49:10
|
OK It is just that I don't do C++ full time nor do I programming micro-controller with C full time, A employment option in ether direction would be great !!! :) This is why I have kept the C++ notes in folder and refer to them and upgrade them from time to time as needed, The only reason why I made a posting is so I could find (and others as well) the operator precedence order in the help file if I need to and don't have access to my notes, I am sure you Per Westermark would not need them but other people might find it useful and stop them posting to this group on a trivial problem using operator precedence. After all I did see a "Hello world" example in the help files briefly while looking for something else. Also I do realize that operator precedence (and did while I was at school) that the operator precedence does not change between local and global variables, it was (it the time) a reminder that in a function a global variable would be ignored if there was a local variable defined in that function. From Eric ----- Original Message ----- From: "Per Westermark" <pw...@ia...> To: "Eric" <eri...@cl...> Cc: <dev...@li...> Sent: Sunday, December 12, 2004 3:27 AM Subject: Re: [Dev-C++] help files and Operator Precedence Knowing thee precendence rules are part of basic programming skills. Anyway, there are _no_ precedence difference between auto and global variables when evaluating an expression. There is, of course, a difference in the time when the constructors/destructors will be run for variables declared global, auto or dyanmically allocated. /Wer W On Sun, 12 Dec 2004, Eric wrote: > Hi I belong to a micro-controller group, > > > someone in the group presented a formula (which might not be the problem to their question) > x = ((((mm-1)*31)+dd)-1)%8; > y = ((((mm-1)*31)+dd)-1)/8; > > > I told them it could be written as > x = ((mm-1)*31+dd-1)%8; > y = ((mm-1)*31+dd-1)/8; > > > if they look on the "Operator Precedence chart" > > it took me a while to remember I had printed off the Operator Precedence chart from the Borland help > files, for my own C++ notes (while I was at C++, school) > > While you can find the Operator Precedence chart on Internet with the help of Google, a couple of web > sites I have seen does not tell that most Operator Precedence level (16 in all) go from left to right, > but there are three that go from right to left, level 2, 13 and 15. > > > Hand written on the bottom of the page is a reminder local variables take precedence over global > variables (I was at school at the time when I wrote the notes, OK) > > > > The Aim of this posting is a suggestion this could included in the (dev-C++) help files on future > upgrades unless I am using a old version you can correct me and I would be grateful. > > > >From Eric Richards > > > > > > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.809 / Virus Database: 551 - Release Date: 09-Dec-04 > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > 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 > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.809 / Virus Database: 551 - Release Date: 09-Dec-04 |
|
From: Per W. <pw...@ia...> - 2004-12-11 14:28:07
|
Knowing thee precendence rules are part of basic programming skills. Anyway, there are _no_ precedence difference between auto and global variables when evaluating an expression. There is, of course, a difference in the time when the constructors/destructors will be run for variables declared global, auto or dyanmically allocated. /Wer W On Sun, 12 Dec 2004, Eric wrote: > Hi I belong to a micro-controller group, > > > someone in the group presented a formula (which might not be the problem to their question) > x = ((((mm-1)*31)+dd)-1)%8; > y = ((((mm-1)*31)+dd)-1)/8; > > > I told them it could be written as > x = ((mm-1)*31+dd-1)%8; > y = ((mm-1)*31+dd-1)/8; > > > if they look on the "Operator Precedence chart" > > it took me a while to remember I had printed off the Operator Precedence chart from the Borland help > files, for my own C++ notes (while I was at C++, school) > > While you can find the Operator Precedence chart on Internet with the help of Google, a couple of web > sites I have seen does not tell that most Operator Precedence level (16 in all) go from left to right, > but there are three that go from right to left, level 2, 13 and 15. > > > Hand written on the bottom of the page is a reminder local variables take precedence over global > variables (I was at school at the time when I wrote the notes, OK) > > > > The Aim of this posting is a suggestion this could included in the (dev-C++) help files on future > upgrades unless I am using a old version you can correct me and I would be grateful. > > > >From Eric Richards > > > > > > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.809 / Virus Database: 551 - Release Date: 09-Dec-04 > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > 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: Eric <eri...@cl...> - 2004-12-11 14:12:17
|
Hi I belong to a micro-controller group, someone in the group presented a formula (which might not be the problem to their question) x = ((((mm-1)*31)+dd)-1)%8; y = ((((mm-1)*31)+dd)-1)/8; I told them it could be written as x = ((mm-1)*31+dd-1)%8; y = ((mm-1)*31+dd-1)/8; if they look on the "Operator Precedence chart" it took me a while to remember I had printed off the Operator Precedence chart from the Borland help files, for my own C++ notes (while I was at C++, school) While you can find the Operator Precedence chart on Internet with the help of Google, a couple of web sites I have seen does not tell that most Operator Precedence level (16 in all) go from left to right, but there are three that go from right to left, level 2, 13 and 15. Hand written on the bottom of the page is a reminder local variables take precedence over global variables (I was at school at the time when I wrote the notes, OK) The Aim of this posting is a suggestion this could included in the (dev-C++) help files on future upgrades unless I am using a old version you can correct me and I would be grateful. From Eric Richards --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.809 / Virus Database: 551 - Release Date: 09-Dec-04 |
|
From: Per W. <pw...@ia...> - 2004-12-10 10:09:04
|
Forst of all - i assume you mean #include <string> since "string" means an application-specific file instead of a system include file. Next - exactly what problems do you have? /Per W On Fri, 10 Dec 2004, robert gasson wrote: > Has any else had trouble with '#include "string"' with Dev-Cpp 4.9.9.0? I > get error messages pertaining to the components of the string class. What > else is wrong? Any fixes available? |
|
From: robert g. <rg...@ho...> - 2004-12-10 08:39:34
|
Has any else had trouble with '#include "string"' with Dev-Cpp 4.9.9.0? I get error messages pertaining to the components of the string class. What else is wrong? Any fixes available? |
|
From: Raw M. D. C. <pe...@ra...> - 2004-12-09 19:32:47
|
Hello Michal, > use WebUpdate Thanks, I had to select devpaks.org for it to show the GCC files, didnt show it for the other selection. -- Best regards, Peter mailto:pe...@ra... |
|
From: Michal M. <mi...@mo...> - 2004-12-09 19:16:38
|
Raw Magick DOT COM wrote:
> The version of GCC which comes with Dev-CPP is quite old 3.3.1, does
> anyone have the procedure for updating all the binaries without
> mucking it all up?
use WebUpdate
--
Regards,
Michal
|
|
From: Raw M. D. C. <pe...@ra...> - 2004-12-09 19:03:45
|
Hi, The version of GCC which comes with Dev-CPP is quite old 3.3.1, does anyone have the procedure for updating all the binaries without mucking it all up? -- Best regards, Peter mailto:pe...@ra... |
|
From: Siva C. <siv...@ya...> - 2004-12-09 08:51:40
|
hello achim, I am sure I did not change anything else. I am currently using it without any problems! As you point out, 2.4.2 has a single huge monolith library file. So how does order of linking come in here? Does this suggest that the error is due to something else? If yes, then what is it? Is this related to gcc itself? Siva Chandra. --- atm <at...@su...> wrote: > hi, > > are you shure, you didn't change anything else? > got similar problems while changing from wx 2.4.2 to > 2.5.x > and fixed it, playing around with the linking order. > You might not have this problem, because 2.4.2's > just working with > mainly one "monolith" library, but the other libs > (comiler...), > you have to link against, will need thier order too. > > Have look to: > http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?8:sss:62043:200407:idibmoffciml > nechjpko#b > or > http://www.solidsteel.nl/users/wxwidgets/viewtopic.php?t=95&highlight=vtable > or > http://www.solidsteel.nl/users/wxwidgets/viewtopic.php?t=307&highlight=vtabl > e > or > http://www.solidsteel.nl/users/wxwidgets/viewtopic.php?t=10&highlight=vtable > > hope it helps > > cheers > achim __________________________________ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com |
|
From: atm <at...@su...> - 2004-12-09 07:20:39
|
hi, are you shure, you didn't change anything else? got similar problems while changing from wx 2.4.2 to 2.5.x and fixed it, playing around with the linking order. You might not have this problem, because 2.4.2's just working with mainly one "monolith" library, but the other libs (comiler...), you have to link against, will need thier order too. Have look to: http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?8:sss:62043:200407:idibmoffciml nechjpko#b or http://www.solidsteel.nl/users/wxwidgets/viewtopic.php?t=95&highlight=vtable or http://www.solidsteel.nl/users/wxwidgets/viewtopic.php?t=307&highlight=vtabl e or http://www.solidsteel.nl/users/wxwidgets/viewtopic.php?t=10&highlight=vtable hope it helps cheers achim > Hi, > Recently, I installed the newest version of Dev-C++ 4.9.9.1. > I create a new wxWindows 2.4.2 project with only the template. > After compiling, I got the following error message. > I did not have this error message with Dev-C++ 4.9.9.0. > Any help is appreciated. > > Edward > // ****************************************** > > make.exe -f "E:\dev_projects\Makefile.win" all > g++.exe -c main.cpp -o ain.o -I"e:/Dev-Cpp/include/c++" -I"e:/Dev-Cpp/include/c++/mingw32" -I"e:/ Dev-Cpp/include/c++/backward" -I"e:/Dev-Cpp/include" > -I"E:/Dev-Cpp/include/tnt_jama" -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32_ _ -D__WIN32__ -DHAVE_W32API_H -D__WXMSW__ -D__WINDOWS__ -Wall -fno-pcc-stru ct-> > return -O2 -Os -fno-rtti -fno-exceptions > windres.exe -i test1_private.rc --input-format=rc -o test1_private.res -O coff > g++.exe main.o test1_private.res -o "test1.exe" -L"e:/Dev-Cpp/lib" -mwindows -Wl,--subsystem,windows -mwindows - lwxmsw -lstdc++ -lgcc -lodbc32 -lwsock32 -> > lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lopengl32 -lglu 32 -lole32 -loleaut32 -luuid > e:/Dev-Cpp/lib/libwxmsw.a(mdi.o)(.data$_ZTV14wxMenuItemList+0x0):mdi.cpp: multiple definition of `vtable for wxMenuItemList' > main.o(.rdata$_ZTV14wxMenuItemList+0x0):main.cpp: first defined here > make.exe: *** [test1.exe] Error 1 > // ****************************************** |
|
From: Siva C. <siv...@ya...> - 2004-12-09 04:04:55
|
Hello, I am not sure if the problem is between Dev-C++ 4.9.9.1 and 4.9.9.0. They both have the same compiler system, gcc-3.3.1(mingw special). I had a similar problem while upgrading from 4.9.8.x to 4.9.9.0. All I had to do to sort this problem was to download the DevPak for 4.9.9.0 from this site: http://michel.weinachter.free.fr/ ... and it solved my problem. I am able to use comfortably with 4.9.9.1 also! Hope this helps, Siva Chandra. ********************************* ********************************* Hi, Recently, I installed the newest version of Dev-C++ 4.9.9.1. I create a new wxWindows 2.4.2 project with only the template. After compiling, I got the following error message. I did not have this error message with Dev-C++ 4.9.9.0. Any help is appreciated. *** __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
|
From: Alfred P. R. <al...@ya...> - 2004-12-09 00:27:51
|
Hi Edward, This is being reported on the wxWidgets forums, search for "multiple definition of `vtable for wxMenuItemList'". A solution is proposed on Jul 12, 2004 15:02. Another possible solution is to use grep -r 'vtable' * in the library folder of Dev-Cpp to find where vtable is actually replicated, then exclude that library if possible. That grep on my devcpp (4.9.9.0) install, which doesn't have wxWidgets currently installed, mind you, gives the results: Binary file gcc-lib/mingw32/3.3.1/cc1.exe matches Binary file gcc-lib/mingw32/3.3.1/cc1obj.exe matches Binary file gcc-lib/mingw32/3.3.1/cc1plus.exe matches Binary file libbfd.a matches Binary file libiberty.a matches Binary file libstdc++.a matches Binary file libsupc++.a matches Good luck Edward! fe...@ms... wrote: Hi, Recently, I installed the newest version of Dev-C++ 4.9.9.1. I create a new wxWindows 2.4.2 project with only the template. After compiling, I got the following error message. I did not have this error message with Dev-C++ 4.9.9.0. Any help is appreciated. Edward <snip> Alfred P. Reaud |
|
From: Noorez K. <dar...@ho...> - 2004-12-08 23:59:38
|
That worked. Thanks! >From: "Mohammed" <mi...@ac...> >To: <dev...@li...> >Subject: Re: [Dev-C++] can't get rid of warning message >Date: Tue, 7 Dec 2010 18:46:31 +0300 > >The problem is not in your compiler but in your code. There's a missing >closing "}" somewhere in your sourcecode. > > >Mohammed >----- Original Message ----- >From: Noorez Kassam <dar...@ho...> >To: <dev...@li...> >Sent: Saturday, December 04, 2004 11:20 PM >Subject: [Dev-C++] can't get rid of warning message > > > > I just downloaded the new version of dev-cpp. When I try to compile to > > produces the executable but there is a warning message saying that there >was > > no new line at the end of file, even though i put a ton of lines at the >end > > of the program! > > > > _________________________________________________________________ > > Scan and help eliminate destructive viruses from your inbound and >outbound > > e-mail and attachments. > > >http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=htt >p://hotmail.com/enca&HL=Market_MSNIS_Taglines > > Start enjoying all the benefits of MSN® Premium right now and get the > > first two months FREE*. > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://productguide.itmanagersjournal.com/ > > _______________________________________________ > > 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 > > > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://productguide.itmanagersjournal.com/ >_______________________________________________ >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 _________________________________________________________________ Scan and help eliminate destructive viruses from your inbound and outbound e-mail and attachments. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. |
|
From: <fe...@ms...> - 2004-12-08 23:40:21
|
PFA+SGksPC9QPg0KPFA+UmVjZW50bHksIEkgaW5zdGFsbGVkIHRoZSBuZXdl c3QgdmVyc2lvbiBvZiBEZXYtQysrIDQuOS45LjEuPC9QPg0KPFA+SSBjcmVh dGUgYSBuZXcgd3hXaW5kb3dzIDIuNC4yJm5ic3A7IHByb2plY3QmbmJzcDt3 aXRoIG9ubHkgdGhlIHRlbXBsYXRlLjwvUD4NCjxQPkFmdGVyIGNvbXBpbGlu ZywgSSBnb3QgdGhlIGZvbGxvd2luZyBlcnJvciBtZXNzYWdlLjwvUD4NCjxQ PkkgZGlkIG5vdCBoYXZlIHRoaXMgZXJyb3IgbWVzc2FnZSZuYnNwO3dpdGgg RGV2LUMrKyA0LjkuOS4wLjwvUD4NCjxQPkFueSBoZWxwIGlzIGFwcHJlY2lh dGVkLjwvUD4NCjxQPiZuYnNwOzwvUD4NCjxQPkVkd2FyZDwvUD4NCjxQPi8v ICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKjxC Uj48L1A+DQo8UD5tYWtlLmV4ZSAtZiAiRTpcZGV2X3Byb2plY3RzXE1ha2Vm aWxlLndpbiIgYWxsPEJSPmcrKy5leGUgLWMgbWFpbi5jcHAgLW8gbWFpbi5v IC1JImU6L0Rldi1DcHAvaW5jbHVkZS9jKysiJm5ic3A7IC1JImU6L0Rldi1D cHAvaW5jbHVkZS9jKysvbWluZ3czMiImbmJzcDsgLUkiZTovRGV2LUNwcC9p bmNsdWRlL2MrKy9iYWNrd2FyZCImbmJzcDsgLUkiZTovRGV2LUNwcC9pbmNs dWRlIiZuYnNwOyAtSSJFOi9EZXYtQ3BwL2luY2x1ZGUvdG50X2phbWEiJm5i c3A7IC1EV0lOVkVSPTB4MDQwMCAtRF9fV0lOOTVfXyAtRF9fR05VV0lOMzJf XyAtRF9fV0lOMzJfXyAtREhBVkVfVzMyQVBJX0gmbmJzcDsgLURfX1dYTVNX X18gLURfX1dJTkRPV1NfXyAtV2FsbCAtZm5vLXBjYy1zdHJ1Y3QtcmV0dXJu IC1PMiAtT3MgLWZuby1ydHRpIC1mbm8tZXhjZXB0aW9ucyZuYnNwOyA8L1A+ DQo8UD53aW5kcmVzLmV4ZSAtaSB0ZXN0MV9wcml2YXRlLnJjIC0taW5wdXQt Zm9ybWF0PXJjIC1vIHRlc3QxX3ByaXZhdGUucmVzIC1PIGNvZmYgPC9QPg0K PFA+ZysrLmV4ZSBtYWluLm8gdGVzdDFfcHJpdmF0ZS5yZXMgLW8gInRlc3Qx LmV4ZSIgLUwiZTovRGV2LUNwcC9saWIiIC1td2luZG93cyAtV2wsLS1zdWJz eXN0ZW0sd2luZG93cyAtbXdpbmRvd3MgLWx3eG1zdyAtbHN0ZGMrKyAtbGdj YyAtbG9kYmMzMiAtbHdzb2NrMzIgLWx3aW5zcG9vbCAtbHdpbm1tIC1sc2hl bGwzMiAtbGNvbWN0bDMyIC1sY3RsM2QzMiAtbGFkdmFwaTMyIC1sb3Blbmds MzIgLWxnbHUzMiAtbG9sZTMyIC1sb2xlYXV0MzIgLWx1dWlkJm5ic3A7Jm5i c3A7Jm5ic3A7IDwvUD4NCjxQPmU6L0Rldi1DcHAvbGliL2xpYnd4bXN3LmEo bWRpLm8pKC5kYXRhJF9aVFYxNHd4TWVudUl0ZW1MaXN0KzB4MCk6bWRpLmNw cDogbXVsdGlwbGUgZGVmaW5pdGlvbiBvZiBgdnRhYmxlIGZvciB3eE1lbnVJ dGVtTGlzdCc8QlI+bWFpbi5vKC5yZGF0YSRfWlRWMTR3eE1lbnVJdGVtTGlz dCsweDApOm1haW4uY3BwOiBmaXJzdCBkZWZpbmVkIGhlcmU8L1A+DQo8UD5t YWtlLmV4ZTogKioqIFt0ZXN0MS5leGVdIEVycm9yIDE8L1A+DQo8UD4vLyAq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKio8QlI+ PC9QPg== |
|
From: Per W. <pw...@ia...> - 2004-12-08 13:47:36
|
This is the reason why the error message should be generated. A number of tools doesn't correctly handle files where the last line doesn't end with a '\n' and the compiler want to inform that the source versioning sysmte for example may check in broken files. /Per W On Wed, 8 Dec 2004, Len Philpot wrote: > > The problem is not in your compiler but in your code. There's a > > missing closing "}" somewhere in your sourcecode. > > I've also seen this when there wasn't a blank line at the end of a > file. For example : > > return 0; > }<EOF> > > Adding : > > return 0; > }<\n> > <EOF> > > ...eliminated the problem. > > -- > Len Philpot ><> > le...@ph... http://philpot.org/ > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > 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: Len P. <le...@ph...> - 2004-12-08 13:41:33
|
> The problem is not in your compiler but in your code. There's a > missing closing "}" somewhere in your sourcecode. I've also seen this when there wasn't a blank line at the end of a file. For example : return 0; }<EOF> Adding : return 0; }<\n> <EOF> ...eliminated the problem. -- Len Philpot ><> le...@ph... http://philpot.org/ |
|
From: Mohammed <mi...@ac...> - 2004-12-08 09:57:27
|
The problem is not in your compiler but in your code. There's a missing closing "}" somewhere in your sourcecode. Mohammed ----- Original Message ----- From: Noorez Kassam <dar...@ho...> To: <dev...@li...> Sent: Saturday, December 04, 2004 11:20 PM Subject: [Dev-C++] can't get rid of warning message > I just downloaded the new version of dev-cpp. When I try to compile to > produces the executable but there is a warning message saying that ther= e was > no new line at the end of file, even though i put a ton of lines at the end > of the program! > > _________________________________________________________________ > Scan and help eliminate destructive viruses from your inbound and outbo= und > e-mail and attachments. > http://join.msn.com/?pgmarket=3Den-ca&page=3Dbyoa/prem&xAPID=3D1994&DI=3D= 1034&SU=3Dhtt p://hotmail.com/enca&HL=3DMarket_MSNIS_Taglines > Start enjoying all the benefits of MSN=AE Premium right now and get t= he > first two months FREE*. > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > 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: Per W. <pw...@ia...> - 2004-12-07 12:36:08
|
Join the club :) This is a much wanted feature. I normally include own Makefile extensions for this, but an integration into the IDE would be much appreciated. /Per W On Tue, 7 Dec 2004, Christian Jacob wrote: > Hi Folks, > > I wondered whether it is possible to simply add different build > configurations to a project. > > In VS, I used this feature to add a release build and a debug build for > instance. Also, it was great that I could set options that would be used > for every build configuration. > > If there were custom build steps such as versioning or whatever, I > simply added them into the global build configuration section and within > the configurations for debug and release build I added whatever > distinguished both (e.g. debug library or release library linked to the > project, etc.) > > How do I achieve this best with DevC++? > > Regards, > Tronex. > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > 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: Per W. <pw...@ia...> - 2004-12-07 12:34:49
|
Have you tried to run any stand-alone front ends for the gdb? They have a lot of extra debugging features not directly available in the Dev-C++ IDE. /Per W On Tue, 7 Dec 2004, Raw Magick DOT COM wrote: > Hi All, > > The CPU window is pretty ropey compared to the version in Delphi, which > lists the line of code and then the asm for it. > > Is there actually a way to do this, but it isnt implemented yet? If so > maybe I could look at it myself as I have been coding in Delphi since > version 1. Also had quite a bit of experience in BASM. > > Peter > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > 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 > |