dev-cpp-users Mailing List for Dev-C++
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
(2) |
3
|
|
4
|
5
(2) |
6
(4) |
7
(4) |
8
(3) |
9
(5) |
10
(2) |
|
11
(6) |
12
(5) |
13
|
14
(3) |
15
(1) |
16
(5) |
17
(4) |
|
18
(11) |
19
(15) |
20
(1) |
21
(3) |
22
(1) |
23
(8) |
24
(3) |
|
25
|
26
|
27
(1) |
28
(2) |
29
(2) |
30
(5) |
31
|
|
From: Minds W. <min...@gm...> - 2005-12-16 18:58:40
|
Yes, I already tried \, \", ", \\", \', ', \\' <file://\\'>, the command line always ignore the " or '.... When using QT (http://www.trolltech.com/products/qt/index.html), you describe your project in a .pro file, and with qmake command it creates a Makefile for your project. If I put the DEFINE in the .pro file, it works OK with "". But I only need this DEFINE in the release build (and the value of the define is dynamic, it is the date of the release build), so I'm tring to insert the DEFINE in the qmake command line (in the release build script), but I still can't make the define value be a string... So I try to make a code to receive the DEFINE value and make a string from it, but it seens to be impossible in C/C++ :( I need to think in another option... For now in the release build, I append the DEFINE to the .pro file, and after the build, I remove the define... (not a good practice...) PS: I post a message in Qt mailling list about it but no one answer until now :( On 12/16/05, mi...@ne... <mi...@ne...> wrote: > > Hmm. Not familure with Qmake. > > Have you tried, perhaps, giving it as \" instead of " ? > > And if qmake is anything like gnumake, check the makefile -- There should > be options there to set for the compiler. If there are, add the -D option= s > yourself. > > If you'd like, I can look into this for you. Break time for work, so I > have some time. > > Thanks, > Mike, > www.nanobit.net > > ----- Original Message ----- > *From:* Minds Work <min...@gm...> > *To:* mi...@ne... > *Sent:* Friday, December 16, 2005 10:13 AM > *Subject:* Re: [Dev-C++] Can I create a string from a non-string #define > value?? > > > No, i'm not using the -D option. > > I'm using the QT qmake command, and in the QT qmake command line if I try > to put "" in the defines it ignores the "".... > > > On 12/16/05, mi...@ne... <mi...@ne... > <mi...@ne...+>> wrote: > > > > It is quite alright sending it to my personal email. Infact, if you > > would wish to converse through that means, I have no problems with it. > > > > I assume, now, that you're passing the -D option to the compiler to > > assign defines. > > > > If that is the case, Here is a test program I just wrote to make it > > work. > > > > ---code-- > > > > #include <stdio.h> > > > > > > int main () > > { > > printf("%s\n\r", RELEASE); > > return 0; > > } > > > > --code-- > > > > And I compiled it this way (used my linux machine and GCC, but dev-cpp > > uses mingw, so you can set the compile options) > > > > gcc def.c -DRELEASE=3D\"2.2\" -o def -ggdb > > > > > > Notice the use of quotes? Try it. > > > > Output: > > > > ./def > > 2.2 > > > > > > Hope this helps, > > Mike. > > www.nanobit.net > > > > ----- Original Message ----- > > *From:* Minds Work <min...@gm...> > > *To:* dev...@li... > > *Sent:* Friday, December 16, 2005 6:28 AM > > *Subject:* Re: [Dev-C++] Can I create a string from a non-string #defin= e > > value?? > > > > > > Hi Mike, > > This would work if the #define was in the code. > > > > But my problem is that the the #define came from a command line, and > > i CANT put the "" on it. > > (As I said before, I cannot change the value format) > > > > I need something in the code the gets the #define value that is not a > > string and make a string from it. > > > > I tried de # opertator > > > > #define to_string( x ) # x > > const char* VERSION =3D to_string( RELEASE_DATE ); > > > > but I get "RELEASE_DATE" and not "2005_11_11_-_11:11:11" > > > > PS: sorry for sending this to your personal email... (new mail > > program.....) > > > > > > On 12/16/05, mi...@ne... <mi...@ne... > > > wrote: > > > > > > How about trying > > > > > > #define RELEASE_DATE "2005_11_11_-_11:11:11" > > > > > > That makes the defined as a string. > > > > > > Mike, > > > www.nanobit.net > > > > > > > > > ----- Original Message ----- > > > *From:* Minds Work <min...@gm...> > > > *To:* dev...@li... > > > *Sent:* Friday, December 16, 2005 4:31 AM > > > *Subject:* [Dev-C++] Can I create a string from a non-string #define > > > value?? > > > > > > > > > Hi > > > > > > I have a #define like this: > > > > > > #define RELEASE_DATE 2005_11_11_-_11:11:11 > > > > > > And I cannot change the value format :( > > > > > > How can I create a string (char *) form the RELEASE_DATE define??? > > > > > > []s > > > > > > > > > |
|
From: <mi...@ne...> - 2005-12-16 15:13:25
|
It is quite alright sending it to my personal email. Infact, if you =
would wish to converse through that means, I have no problems with it.
I assume, now, that you're passing the -D option to the compiler to =
assign defines.
If that is the case, Here is a test program I just wrote to make it =
work.
---code--
#include <stdio.h>
int main ()
{
printf("%s\n\r", RELEASE);
return 0;
}
--code--
And I compiled it this way (used my linux machine and GCC, but dev-cpp =
uses mingw, so you can set the compile options)
gcc def.c -DRELEASE=3D\"2.2\" -o def -ggdb
Notice the use of quotes? Try it.=20
Output:
./def
2.2
Hope this helps,
Mike.
www.nanobit.net
----- Original Message -----=20
From: Minds Work=20
To: dev...@li...=20
Sent: Friday, December 16, 2005 6:28 AM
Subject: Re: [Dev-C++] Can I create a string from a non-string #define =
value??
Hi Mike,
This would work if the #define was in the code.
But my problem is that the the #define came from a command line, and i =
CANT put the "" on it.
(As I said before, I cannot change the value format)
I need something in the code the gets the #define value that is not a =
string and make a string from it.
I tried de # opertator
#define to_string( x ) # x
const char* VERSION =3D to_string( RELEASE_DATE );
but I get "RELEASE_DATE" and not "2005_11_11_-_11:11:11"
PS: sorry for sending this to your personal email... (new mail =
program.....)
=20
On 12/16/05, mi...@ne... <mi...@ne... > =
wrote:=20
How about trying
#define RELEASE_DATE "2005_11_11_-_11:11:11"
That makes the defined as a string.
Mike,
www.nanobit.net
=20
----- Original Message -----=20
From: Minds Work=20
To: dev...@li...=20
Sent: Friday, December 16, 2005 4:31 AM
Subject: [Dev-C++] Can I create a string from a non-string #define =
value??
=20
Hi
I have a #define like this:
#define RELEASE_DATE 2005_11_11_-_11:11:11
And I cannot change the value format :(
How can I create a string (char *) form the RELEASE_DATE define???
[]s
|
|
From: Minds W. <min...@gm...> - 2005-12-16 14:28:40
|
Hi Mike, This would work if the #define was in the code. But my problem is that the the #define came from a command line, and i CANT put the "" on it. (As I said before, I cannot change the value format) I need something in the code the gets the #define value that is not a strin= g and make a string from it. I tried de # opertator #define to_string( x ) # x const char* VERSION =3D to_string( RELEASE_DATE ); but I get "RELEASE_DATE" and not "2005_11_11_-_11:11:11" PS: sorry for sending this to your personal email... (new mail program.....= ) On 12/16/05, mi...@ne... <mi...@ne...> wrote: > > How about trying > > #define RELEASE_DATE "2005_11_11_-_11:11:11" > > That makes the defined as a string. > > Mike, > www.nanobit.net > > > ----- Original Message ----- > *From:* Minds Work <min...@gm...> > *To:* dev...@li... > *Sent:* Friday, December 16, 2005 4:31 AM > *Subject:* [Dev-C++] Can I create a string from a non-string #define > value?? > > > Hi > > I have a #define like this: > > #define RELEASE_DATE 2005_11_11_-_11:11:11 > > And I cannot change the value format :( > > How can I create a string (char *) form the RELEASE_DATE define??? > > []s > > |
|
From: <mi...@ne...> - 2005-12-16 13:45:38
|
How about trying #define RELEASE_DATE "2005_11_11_-_11:11:11" That makes the defined as a string. Mike, www.nanobit.net ----- Original Message -----=20 From: Minds Work=20 To: dev...@li...=20 Sent: Friday, December 16, 2005 4:31 AM Subject: [Dev-C++] Can I create a string from a non-string #define = value?? Hi I have a #define like this: #define RELEASE_DATE 2005_11_11_-_11:11:11 And I cannot change the value format :( How can I create a string (char *) form the RELEASE_DATE define??? []s |
|
From: Minds W. <min...@gm...> - 2005-12-16 12:31:13
|
Hi I have a #define like this: #define RELEASE_DATE 2005_11_11_-_11:11:11 And I cannot change the value format :( How can I create a string (char *) form the RELEASE_DATE define??? []s |