dev-cpp-users Mailing List for Dev-C++ (Page 564)
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: <CSt...@ao...> - 2002-06-29 19:13:39
|
Hello CPP user community, Can anyone give me the basics on linking in the debugger and point me to an online users manual for it? I'm trying to learn from Jesse Liberty's book, Teach yourself C++ in 24 hours and he provides a link to get the Bloodshed compiler. Charles in LA |
|
From: Napoleon A. <nah...@so...> - 2002-06-29 19:01:03
|
Hello, I'll like to applogise if the mail I sent with the above subject upset = anyone. That was not the intent. Neither was it to spam. Sorry once = again. napo.=20 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.372 / Virus Database: 207 - Release Date: 20/06/02 |
|
From: Abhijit S. <mu...@gm...> - 2002-06-29 18:57:28
|
I fixed the error, thanks. Sorry for the useless post. I should look around
a bit longer before I start crying for help. You were right, I'd not flagged
the function as non-modifying...
const char *GetNum() const { foo(); }
--------------------------
http://mudeth.tripod.com
----- Original Message -----
From: "Daniel Glenfield" <sp...@ho...>
To: <mu...@gm...>
Sent: Saturday, June 29, 2002 11:21 PM
Subject: Re: [Dev-C++] Const something problem...
> Can you send the code?
>
> It may be to do with the const keyword, in the wrong place perhaps?
|
|
From: Abhijit S. <mu...@gm...> - 2002-06-29 18:22:45
|
Heh... just kiddin'... :) Suggestion: Everyone on the list add http://www.noicys.cjb.net/devcpp/ub.htm to their signature. > I suspect that they go to that link but they can't complete the > unsubscription process. People with small stack i guess. :) Check out this page for a more detailed explanation on the above phenomenon... really funny :) http://bofh.ntk.net/StackMode.html -------------------------- http://mudeth.tripod.com TO UNSUBSCRIBE DEV-C++ CLICK THE LINK BELOW http://www.noicys.cjb.net/devcpp/ub.htm |
|
From: Ioannis V. <no...@ho...> - 2002-06-29 18:20:11
|
-----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Napoleon Ahiable Sent: Saturday, June 29, 2002 9:12 PM To: dev...@li... Subject: [Dev-C++] Reliable Software. Hello Folks, I have found a web site I want to share with you. It is www.relisoft.com . In my quest to learn C++ programming I came accross several myths. One was that I had to learn C before C++. I didn't make much sense to me why so I kept searching till I came accross the book Accelerated C++. With that I can say that I'm making a head way in C++ without C. The second myths is about the Win32 API, It looked at first that without C it would be immposible to do Win32 programming without MFC but after finding www.relisoft.com I can say that is not true. Infact the site is against using MFC. They have what I think is the best Win32 tutorial online for C++ users. I find it revolutionary. I mean how about this for a Hello World program: #include <iostream> class World { public: World () { std::cout << "Hello!\n"; } ~World () { std::cout << "Good bye!\n"; } }; World TheWorld; Why a global variable? void main() {} int main() {} Maybe I'm going on too much and sorry if I am. All I'm saying is if C++ is your thing then please visit this site. It can only help and challenge you. Thanks. Thanks for the spamming. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net <http://www.noicys.cjb.net/> * Alternative URL: http://run.to/noicys |
|
From: Napoleon A. <nah...@so...> - 2002-06-29 18:14:08
|
Hello Fellas, Thanks for your help but I think what it's alright now. I unistalled dev-C++ and did a fresh download and installed and it seems to be fine. Thanks for your help. Napoleon. ----- Original Message ----- From: "Ioannis Vranos" <no...@ho...> To: <dev...@li...> Sent: Saturday, June 29, 2002 5:18 PM Subject: RE: [Dev-C++] Error using std::cout > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Napoleon Ahiable > > Sent: Saturday, June 29, 2002 7:12 PM > > To: dev...@li... > > Subject: Re: [Dev-C++] Error using std::cout > > > > > > Hello and thanks, > > > > I don,t know what I'm doing wrong but all I've done is create > > a console > > project with the source code. and when I compile I get the > > following error > > still: > > > > /C++Lab/Temp/test.cpp C:\C++Lab\Temp\C > > In constructor `World::World(int)': > > 10 C:\C++Lab\Temp\test.cpp > > `cout' undeclared in namespace `std' > > > > I'm still scratching my head . > > > It may be a Dev-C++ bug. Try to create a blank file without any project, > save it as .cpp and compile it. > > > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.cjb.net > * Alternative URL: http://run.to/noicys --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.372 / Virus Database: 207 - Release Date: 20/06/02 |
|
From: Napoleon A. <nah...@so...> - 2002-06-29 18:14:05
|
Hello Folks, I have found a web site I want to share with you. It is www.relisoft.com = . In my quest to learn C++ programming I came accross several myths. One = was that I had to learn C before C++. I didn't make much sense to me why = so I kept searching till I came accross the book Accelerated C++. With = that I can say that I'm making a head way in C++ without C. The second myths is about the Win32 API, It looked at first that without = C it would be immposible to do Win32 programming without MFC but after = finding www.relisoft.com I can say that is not true. Infact the site is = against using MFC. They have what I think is the best Win32 tutorial = online for C++ users. I find it revolutionary. I mean how about this for = a Hello World program: #include <iostream> class World { public: World () { std::cout << "Hello!\n"; } ~World () { std::cout << "Good bye!\n"; } }; World TheWorld; void main() {} Maybe I'm going on too much and sorry if I am. All I'm saying is if C++ = is your thing then please visit this site. It can only help and = challenge you. Thanks. Napoleon. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.372 / Virus Database: 207 - Release Date: 20/06/02 |
|
From: Carlos d. M. <cg...@wo...> - 2002-06-29 17:48:31
|
I think it would be very good think have the possibility of searching the list archive, now the site has no search it, and the search engine such as altavista, google and others don't find it, they give a lot of other lists which have -dev] in the begin of the subject, and by url or host it neither appear, with luck I found a couple of pages, in the fifth page of search results. Now searching the archive is really annoying, I must search through a million of pages for find messages, if I find them. I don't remember where are the messages which appeared at least two months ago, (perhaps five), and what if I want search a message from more than one year?. |
|
From: Rob A. <ro...@us...> - 2002-06-29 16:35:03
|
I just created a new console application project and pasted your code in to replace the default code. Still no problems. I received the clock skew error on the first compile, but the second compile proceeded without incident. Rob http://uselesspython.com Ioannis Vranos wrote: >>-----Original Message----- >>I don,t know what I'm doing wrong but all I've done is create >>a console >>project with the source code. and when I compile I get the >>following error >>still: >> >>/C++Lab/Temp/test.cpp C:\C++Lab\Temp\C >>In constructor `World::World(int)': >>10 C:\C++Lab\Temp\test.cpp >>`cout' undeclared in namespace `std' >> >>I'm still scratching my head . >> -- "Giving the Linus Torvalds Award to the Free Software Foundation is a bit like giving the Han Solo Award to the Rebel Alliance." --Richard Stallman at the 1999 LinuxWorld show |
|
From: Ioannis V. <no...@ho...> - 2002-06-29 16:18:47
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Napoleon Ahiable > Sent: Saturday, June 29, 2002 7:12 PM > To: dev...@li... > Subject: Re: [Dev-C++] Error using std::cout > > > Hello and thanks, > > I don,t know what I'm doing wrong but all I've done is create > a console > project with the source code. and when I compile I get the > following error > still: > > /C++Lab/Temp/test.cpp C:\C++Lab\Temp\C > In constructor `World::World(int)': > 10 C:\C++Lab\Temp\test.cpp > `cout' undeclared in namespace `std' > > I'm still scratching my head . It may be a Dev-C++ bug. Try to create a blank file without any project, save it as .cpp and compile it. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
|
From: Napoleon A. <nah...@so...> - 2002-06-29 16:13:33
|
Hello and thanks, I don,t know what I'm doing wrong but all I've done is create a console project with the source code. and when I compile I get the following error still: /C++Lab/Temp/test.cpp C:\C++Lab\Temp\C In constructor `World::World(int)': 10 C:\C++Lab\Temp\test.cpp `cout' undeclared in namespace `std' I'm still scratching my head . Napoleon. ----- Original Message ----- From: "Rob Andrews" <ro...@us...> To: "Napoleon Ahiable" <nah...@so...> Sent: Saturday, June 29, 2002 4:48 PM Subject: Re: [Dev-C++] Error using std::cout > I just pasted your code into a blank source file on Dev-C++ 4.9.4.0 and > compiled it without problem. Here's the output: > > Hello from 1. > Hello from 2. > Hello from main! > Good bye. > Good bye. > > Rob Andrews > http://uselesspython.com > > Napoleon Ahiable wrote: > > > Hello, > > > > > > > > I just tried to compile this program and I had an error saying cout not > > declared: > > > > > > > > > > #include <iostream> > > #include <stdlib.h> > > > > > > > > using std::cout; > > > > > > > > class World > > { > > public: > > World (int i) > > { > > std::cout << "Hello from " << i << ".\n"; > > } > > > > > > > > ~World () > > { > > std::cout << "Good bye.\n"; > > } > > }; > > > > > > > > World TheWorld (1); > > > > > > > > int main() > > { > > World myWorld (2); > > std::cout << "Hello from main!\n"; > > } > > > > > > > > I'll appreciate any help you can give me. > > > > > > > > Napoleon. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.372 / Virus Database: 207 - Release Date: 20/06/02 |
|
From: Abhijit S. <mu...@gm...> - 2002-06-29 16:09:53
|
I have a Node class, containing the method
const char *GetNum() { return num; }
in it. In another method, MakeNum(), I use this code:
num = new char[strlen(parentNode.GetNum()) + sizeof(word)*3 + 1];
where parentNode is a const reference to a node.
When I try to compile it, I get this error:
node.cpp: In method `void Node::MakeNum(const Node &)':
node.cpp:76: passing `const Node' as `this' argument of `const char *
Node::GetN
um()' discards qualifiers
node.cpp:79: passing `const Node' as `this' argument of `const char *
Node::GetT
itle()' discards qualifiers
node.cpp:82: passing `const Node' as `this' argument of `const word
Node::GetNum
Child()' discards qualifiers
I have three .cpp files: node.cpp contains the methods' definitions,
test.cpp has a main() which declares a single Node, and doqspc.cpp has the
namespace declarations.
The program compiles using BC5.5 but when I run it, I get an exception, and
GCC simply refuses to compile it...
--------------------------
http://mudeth.tripod.com
|
|
From: Ioannis V. <no...@ho...> - 2002-06-29 16:06:38
|
I found no errors, the code is ok. How did you try to compile it? Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net <http://www.noicys.cjb.net/> * Alternative URL: http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Napoleon Ahiable Sent: Saturday, June 29, 2002 6:21 PM To: dev...@li... Subject: [Dev-C++] Error using std::cout Hello, I just tried to compile this program and I had an error saying cout not declared: #include <iostream> #include <stdlib.h> using std::cout; class World { public: World (int i) { std::cout << "Hello from " << i << ".\n"; } ~World () { std::cout << "Good bye.\n"; } }; World TheWorld (1); int main() { World myWorld (2); std::cout << "Hello from main!\n"; } I'll appreciate any help you can give me. Napoleon. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.372 / Virus Database: 207 - Release Date: 20/06/02 |
|
From: Rob A. <ro...@us...> - 2002-06-29 15:49:48
|
I just pasted your code into a blank source file on Dev-C++ 4.9.4.0 and compiled it without problem. Here's the output: Hello from 1. Hello from 2. Hello from main! Good bye. Good bye. Rob Andrews http://uselesspython.com Napoleon Ahiable wrote: > Hello, > > I just tried to compile this program and I had an error saying cout not > declared: > -- "Giving the Linus Torvalds Award to the Free Software Foundation is a bit like giving the Han Solo Award to the Rebel Alliance." --Richard Stallman at the 1999 LinuxWorld show |
|
From: Napoleon A. <nah...@so...> - 2002-06-29 15:32:25
|
Hello,
I just tried to compile this program and I had an error saying cout not =
declared:
#include <iostream>
#include <stdlib.h>
using std::cout;
class World
{
public:
World (int i)
{
std::cout << "Hello from " << i << ".\n";
}
~World ()
{
std::cout << "Good bye.\n";
}
};
World TheWorld (1);
int main()
{
World myWorld (2);
std::cout << "Hello from main!\n";
}
I'll appreciate any help you can give me.
Napoleon.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 20/06/02
|
|
From: Larry H. <lm...@ha...> - 2002-06-29 02:42:10
|
I have figured out how to read a Window's desktop shortcut with VBScript/WSH, but need to figure out how to do it with C++. For example, the start in line and the target line of the shortcut. I need to be able to read the shortcut with C++, not use C++ to run the VBScript. It is a long story why I need this, but if anyone has any ideas or suggestions, please let me know. Ideally, I need something that will work with any C++ compiler including VC++ Any ideas or suggestions would be greatly appreciated. TIA! Larry Hamilton lm...@ha... |
|
From: Ioannis V. <no...@ho...> - 2002-06-29 02:12:55
|
I suspect that they go to that link but they can't complete the unsubscription process. People with small stack i guess. :) That's why i made the http://www.noicys.cjb.net/devcpp/ub.htm to help them find their way out to the open cyberspace. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Daniel Glenfield > Sent: Thursday, June 27, 2002 10:10 AM > To: ste...@ho...; dev...@li... > Subject: Re: [Dev-C++] UNSUBSCRIBE > > > > Oh look, unsubscribe instructions A FEW LINES BELOW YOUR > REPLY!!!!!!!! WHAT > THE HELL IS WRONG WITH YOU PEOPLE??????????? > > >From: "Steven Henrix" <ste...@ho...> > >To: <dev...@li...> > >Subject: [Dev-C++] UNSUBSCRIBE > >Date: Wed, 26 Jun 2002 21:13:33 +0200 > > > >PLS UNSUBSCRIBE > > > >-----Original Message----- > >From: dev...@li... > >[mailto:dev...@li...] On Behalf Of > >dev...@li... > >Sent: dinsdag 25 juni 2002 20:39 > >To: dev...@li... > >Subject: Dev-cpp-users digest, Vol 1 #838 - 5 msgs > > > > > >Send Dev-cpp-users mailing list submissions to > > dev...@li... > > > >To subscribe or unsubscribe via the World Wide Web, visit > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > >or, via email, send a message with subject or body 'help' to > > dev...@li... > > > >You can reach the person managing the list at > > dev...@li... > > > >When replying, please edit your Subject line so it is more > specific than > >"Re: Contents of Dev-cpp-users digest..." > > > > > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > > ------------------------------------------------------- > Sponsored by: > ThinkGeek at http://www.ThinkGeek.com/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Hongli L. <h....@ch...> - 2002-06-28 22:06:18
|
On Fri, 2002-06-28 at 20:59, Mac Reiter wrote: > At 06:15 PM 6/28/02 +0200, Colin Laplace wrote: > Now the linker pass comes along and has some kind of problem, because it > can't tell if main.o is newer than main.cpp or not. Does this sound like > the problem? If so, either make needs to be modified to somehow use more > accurate timestamps (difficult, since it relies on file timestamps, which > are OS determined), or GCC needs to be modified so that if it completes > compilation in less than one second, it delays a second to let the > timestamps differ. If this actually is the problem, it is only going to > get worse as machines get faster. > Actually, GCC or the linker don't check on anything. Make does that. So make will have to be modified, not GCC. |
|
From: Mac R. <re...@no...> - 2002-06-28 19:01:35
|
At 06:15 PM 6/28/02 +0200, Colin Laplace wrote:
>Hello,
>
>Just to say you can set a delay before the compiler will be called (in
>Compiler Options), if you really want to get rid of this message.
>
>Greetings,
>Colin
>
>On Friday 28 June 2002 13:45, you wrote:
>> On Fri, 2002-06-28 at 11:09, Pierre Delporte wrote:
>> > Nothing serious ! I am not sure about this. It is always anoying to have
>> > to compile two, three or more times to get a good result. I think, to
>> > improve the quality of the product, that this matter should be
>> > investigated with high priority.
>>
>> Always? I only experience this once every 20 compiles.
Just trying to understand what is happening. If adding a delay to each
compilation step (prior to invoking gcc/g++) fixes the problem, it sounds
like it is possible for compilation to occur and linking to start before
the clock has advanced enough for 'make' to be able to distinguish that
time has elapsed.
Example:
main.o, timestamp 5:13:47pm
I tell it to make, so it saves my file:
main.cpp, timestamp 5:25:23pm (timestamp of autosave prior to make)
which occurs REALLY FAST, and GCC compiles main.cpp REALLY FAST, so that
the saved .cpp file and the .o file both have the same timestamp (not even
one second has elapsed between save and compilation of this file):
main.o, timestamp 5:25:23pm
Now the linker pass comes along and has some kind of problem, because it
can't tell if main.o is newer than main.cpp or not. Does this sound like
the problem? If so, either make needs to be modified to somehow use more
accurate timestamps (difficult, since it relies on file timestamps, which
are OS determined), or GCC needs to be modified so that if it completes
compilation in less than one second, it delays a second to let the
timestamps differ. If this actually is the problem, it is only going to
get worse as machines get faster.
My Athlon XP 1900+ with Barracuda ATA IV driver does seem to get the clock
skew warning quite frequently, suggesting that it might be CPU and/or
harddrive speed dependent.
Thanks for the delay suggestion Colin! (And for including the capability).
Delaying for 1 second _should_ fix the problem, if it is the one just
described, and a one second delay shouldn't be a problem for most builds.
If this really IS the problem, it might be worth modifying Dev-C++ to
always add a one second delay, or to time the runtime of GCC and add a
second if it looks like no time has passed. Can that even be done, or is
make in complete control?
On a somewhat unrelated note, I do know that if you ever use
QueryPerformanceCounter() and QueryPerformanceFrequency() to calculate
really accurate times, you can get clock rollback. If you use these
functions and want proof, write a loop that simply stares at the results
from QueryPerformanceCounter() over and over again for several seconds.
Keep track of every time the clock jumps backward -- you'll get one pretty
quickly. I looked at the bit patterns for the clock, and the problem is
that the clock register is not protected while it is being incremented, or
while it is being read. So *while* you are copying off the 64bit integer
(which takes at least 2 instructions, probably 3), the value of that
register changes. Most of the time it isn't a problem, but since you are
reading out portions of the integer, when a carry occurs that crosses the
boundary between the pieces, you can end up with really funky numbers:
Example, shorted into a byte and nybbles for ease of typing:
Clock value : 0101 1111
Read High Half into variable -> 0101 0000
Clock updates : 0110 0000
Change index in preparation for reading low half
Clock updates : 0110 0001
Read Low Half into variable -> 0101 0001
Notice that the high half changed *after* you had already read it, but
before you managed to read the low half. This is the problem with the new
processors having a clock that increments once for every instruction, but
which takes multiple cycles (only one instruction, but it internally takes
longer) to read.
The moral? If you use super high resolution clocks
(QueryPerformanceCounter or directly playing with the RDSTC opcode), check
the clock a few times for each read, and reject silly numbers. Your timing
code will be slightly slower, but you will not report negative elapsed
times or unnecessarily long times (imagine if your recorded start time was
the bad read of 01010001 above, and then very shortly afterward you took
another reading and got an accurate 01100100. You would think that almost
00100000 ticks had occurred, when only 00000100 ticks had actually
occurred. That's not bad with a byte and nybbles, but think about a 64 bit
int with two long int halves -- the reading would claim that over 4 billion
ticks had occurred...)
Sorry for the rambling...
Mac
-
_____________________________ /"\
Mac Reiter \ / ASCII Ribbon Campaign
Nomadics, Inc. X Against HTML Mail
re...@no... / \ (To join the campaign, simply use
this in your signature.)
|
|
From: Hongli L. <h....@ch...> - 2002-06-28 17:04:35
|
On Fri, 2002-06-28 at 17:34, Ioannis Vranos wrote: > Hongli why not try to recompile Dev-C++ in Delphi without any caching > (full Building)? > How does that have anything to do with make? |
|
From: John <jo...@mu...> - 2002-06-28 16:42:59
|
Trying to include a bitmap in a window. The bitmap and the resource = file and header file all show up in the project tree, but when I try to = complile the project I get: "Linker input file unused since linking not = done." Could someone please help a newbie? |
|
From: Colin L. <col...@wa...> - 2002-06-28 16:16:28
|
Hello, Just to say you can set a delay before the compiler will be called (in Compiler Options), if you really want to get rid of this message. Greetings, Colin On Friday 28 June 2002 13:45, you wrote: > On Fri, 2002-06-28 at 11:09, Pierre Delporte wrote: > > Nothing serious ! I am not sure about this. It is always anoying to have > > to compile two, three or more times to get a good result. I think, to > > improve the quality of the product, that this matter should be > > investigated with high priority. > > Always? I only experience this once every 20 compiles. > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Caffeinated soap. No kidding. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Fredrik P. <per...@li...> - 2002-06-28 16:09:52
|
What is missing or what has i forgot when i get this msg when i try to = compile? (I'm useing Dev-C++ 4.9.2.0)... Building Makefile: "C:\DEV-C++\Makefile.win" Executing make... make.exe all -f "C:\DEV-C++\Makefile.win" Execution terminated 2. Could not find program file //Perra |
|
From: Daniel G. <sp...@ho...> - 2002-06-28 15:37:18
|
Yes I received your reply a while ago. I'm not sure why that thinkgeek link is there. >From: "Ioannis Vranos" <no...@ho...> >To: "Dev-C++ Mailing List" <dev...@li...> >Subject: RE: ??? RE: [Dev-C++] ioannis - namespaces >Date: Fri, 28 Jun 2002 17:11:01 +0300 > >I do not know what has happened, but i was surprised myself too when i >saw it yesterday. The first thought that came to my mind was "well 10 >days of delay is better than never". :) But since you say that you >received that twice, something strange is going on. > > > >Ioannis > >* Ioannis Vranos >* Programming pages: http://www.noicys.cjb.net >* Alternative URL: http://run.to/noicys > > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Daniel Glenfield > > Sent: Friday, June 28, 2002 9:56 AM > > To: dev...@li... > > Subject: ??? RE: [Dev-C++] ioannis - namespaces > > > > > > Hasn't this just been copied from a week ago and the > > "thinkgeek.com" wrapper > > put around it? > > > > > > >From: "Ioannis Vranos" <no...@ho...> > > >To: "Dev-C++ Mailing List" <dev...@li...> > > >Subject: RE: [Dev-C++] ioannis - namespaces > > >Date: Tue, 18 Jun 2002 14:20:30 +0300 > > > > > > > -----Original Message----- > > > > From: dev...@li... > > > > [mailto:dev...@li...] On Behalf > > > > Of Ioannis Vranos > > > > Sent: Tuesday, June 18, 2002 2:09 PM > > > > To: dev...@li... > > > > Subject: RE: [Dev-C++] ioannis - namespaces > > > > > > > > > > > > > -----Original Message----- > > > > > From: dev...@li... > > > > > [mailto:dev...@li...] On Behalf > > > > > Of Daniel Glenfield > > > > > Sent: Tuesday, June 18, 2002 1:36 PM > > > > > To: dev...@li... > > > > > Subject: [Dev-C++] ioannis - namespaces > > > > > > > > > > > > > > > Ioannis, you've mentioned several times to always use > > > > > namespaces as locally > > > > > as possible. I was wondering why this is? What is the benefit > > > > > of using them > > > > > locally? > > > > > > > > > > Daniel > > > > > > > > > > > > The namespace system was made to provide a system that > > > > enables combining > > > > various libraries while protecting from name clashes. > > > > > > > > So you can for example do: > > > > > > > > #include <iostream> > > > > > > #include <vector> > > > > > > > > > > > // Daniel's version of vector > > > > #include <daniel.h> > > > > > > > > > > > > int main() > > > > { > > > > using std::cout; > > > > > > using std::endl; > > > > > > > using daniel::vector; > > > > > > > > vector<int>array(50, 1); > > > > > > > > cout<<array[i]<<endl; > > > > } > > > > > > > > > > > > As god says in TC++PL, using global using directives is > > an efffort to > > > > defeat the namespace system, which has bad consequences in large > > > > projects. We must try to use more using std::something; than using > > > > namespace std; and as in small scope as possible. > > > > > > > > In general myself, i use using std::something; for 2-3 > > facilities in a > > > > given function, and if there are more i place a using > > > > namespace std; in > > > > that function scope. > > > > > > > > > > > > Ioannis > > > > > > > > * Ioannis Vranos > > > > * Programming pages: http://www.noicys.cjb.net > > > > * Alternative URL: http://run.to/noicys > > > > > > > > -------------------------------------------------------------- > > > > -------------- > > > > Bringing you mounds of caffeinated joy > > > > >>> http://thinkgeek.com/sf <<< > > > > > > > > _______________________________________________ > > > > Dev-cpp-users mailing list > > > > Dev...@li... > > > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > > > > >------------------------------------------------------------- > > --------------- > > > Bringing you mounds of caffeinated joy > > > >>> http://thinkgeek.com/sf <<< > > > > > >_______________________________________________ > > >Dev-cpp-users mailing list > > >Dev...@li... > > >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > > > > > _________________________________________________________________ > > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Caffeinated soap. No kidding. > > http://thinkgeek.com/sf > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Caffeinated soap. No kidding. >http://thinkgeek.com/sf >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com |
|
From: Ioannis V. <no...@ho...> - 2002-06-28 15:34:49
|
Hongli why not try to recompile Dev-C++ in Delphi without any caching (full Building)? =20 =20 Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net <http://www.noicys.cjb.net/>=20 * Alternative URL: http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Pierre Delporte Sent: Friday, June 28, 2002 5:26 PM To: Hongli Lai Cc: dev...@li... Subject: Re: [Dev-C++] [Warning] Clock skew detected. Your build may be incomplete. I would not say every time but once every 4 times !=20 Hongli Lai <h....@ch...> a =E9crit :=20 On Fri, 2002-06-28 at 11:09, Pierre Delporte wrote: >=20 > Nothing serious ! I am not sure about this. It is always anoying to have to compile two, three or more times to get a good result. I think, to improve the quality of the product, that this matter should be investigated with high priority. Always? I only experience this once every 20 compiles. _____ =20 Yahoo! Mail <http://fr.mail.yahoo.com> -- Une adresse @yahoo.fr gratuite et en fran=E7ais ! |