Thread: Re: [Dev-C++] Insight Debugger questions
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Alfred P. R. <al...@ya...> - 2005-03-21 02:40:44
|
Hi, I assume that by 'downloaded' you mean the package, Insight_Binary.DevPak. If you did that, then you must install it via the package manager, Packman.exe. Other than that, all that would cause a can't find *.exe is a path problem. Also look in the package manager to insure that GDB is an installed package. Packages installed via the package manager should install and work correctly, as opposed to compiling your own package from the sources. If you compiled Insight from the sources, then you may have to manually move things around to get them into the proper folders. ymc014 <ym...@ym...> wrote: Hello All, I have just downloaded Insight Debugger yesterday and I can't get it to work. I am using Dev-C++ 4.9.9.2.When i try to debug, an error occurs(something like "can't find gdb.exe").What went wrong? ymc Alfred P. Reaud |
|
From: Alfred P. R. <al...@ya...> - 2005-03-22 01:42:59
|
Hi again, Are you on a Windows or Linux platform? I believe that the the *.tar.bz2 is for Linux and most probably will not work on Windows platforms. Anybody out there that knows different, please correct me. Looking at the tarball from ftp://sources.redhat.com/pub/gdb/releases/ shows that it doesn't contain the executable and must therefore be built! Can't help there, as I have only used the Insight_Binary.DevPack. Here's my recommendation. Start Dev-Cpp, and proceed to Tools --> Check for Updates/Packages... On the WebUpdate window that pops up depress the Check for Updates button. You may be asked to download the mirrors list. Do so and re-start the WebUpdate window. If that happens, again press the Check for Updates button. Scrolling about 1/3 of the way down, find Insight_Binary and check that package. Depress Download Selected, and follow the prompts. This is the method that works for the Windows platform. I can't report on it's Linux compatibility, as I don't have access to a Linux platform. Hope this helps! Sincerely, Al ymc014 <ym...@ym...> wrote: Hello, It is not in a *.DevPak form rather it is a *.tar.bz2 form I've downloaded, but I had installed it via Package Manager.Could you help me with this please? ----- Original Message ----- From: Alfred P. Reaud To: Dev-Cpp UserList Sent: Monday, March 21, 2005 10:40 AM Subject: Re: [Dev-C++] Insight Debugger questions Hi, I assume that by 'downloaded' you mean the package, Insight_Binary.DevPak. If you did that, then you must install it via the package manager, Packman.exe. Other than that, all that would cause a can't find *.exe is a path problem. Also look in the package manager to insure that GDB is an installed package. Packages installed via the package manager should install and work correctly, as opposed to compiling your own package from the sources. If you compiled Insight from the sources, then you may have to manually move things around to get them into the proper folders. ymc014 <ym...@ym...> wrote: Hello All, I have just downloaded Insight Debugger yesterday and I can't get it to work. I am using Dev-C++ 4.9.9.2.When i try to debug, an error occurs(something like "can't find gdb.exe").What went wrong? ymc Alfred P. Reaud Alfred P. Reaud |
|
From: Verne H. B. <ve...@sy...> - 2005-03-22 02:02:49
|
I think you're so right, Alfred, as the two just don't mix if you use =
the wrong stuff. I'm still very new to it but getting to really love it =
for experimenting around and have a few nice simple programs working to =
my satisfaction now. I'm an old man by age but young at heart at 76 so =
have the time to help where I can. So all can know once and for all I'm =
using Ivor Horton's huge book which really goes into C++ with a bang. =
You young guys learn when you're young as it's harder to sink in as you =
get older. =20
I used to do a lot of work with Lattice C on the Old Amiga Computer =
which was the best little computer around but. . . .one has to move on. =
I'm using XP now which is as far as I'm going but have looked at the =
other side a bit and for those who use Linux or what ever that's a good =
platform too. My son got me halfway into it and then left me floating =
until I got back to my Windows. =20
Have fun guys and help the other guys out as that makes it even more =
fun.
Verne
Hi again,
Are you on a Windows or Linux platform? I believe that the the =
*.tar.bz2 is for Linux and most probably will not work on Windows =
platforms. Anybody out there that knows different, please correct me. =
Looking at the tarball from ftp://sources.redhat.com/pub/gdb/releases/ =
shows that it doesn't contain the executable and must therefore be =
built! Can't help there, as I have only used the =
Insight_Binary.DevPack.
Here's my recommendation. Start Dev-Cpp, and proceed to Tools --> =
Check for Updates/Packages...
On the WebUpdate window that pops up depress the Check for Updates =
button. You may be asked to download the mirrors list. Do so and =
re-start the WebUpdate window. If that happens, again press the Check =
for Updates button. Scrolling about 1/3 of the way down, find =
Insight_Binary and check that package. Depress Download Selected, and =
follow the prompts. This is the method that works for the Windows =
platform.
I can't report on it's Linux compatibility, as I don't have access to =
a Linux platform.
Hope this helps!
Sincerely,
Al
ymc014 <ym...@ym...> wrote:
Hello,
=20
It is not in a *.DevPak form rather it is a *.tar.bz2 form I've =
downloaded, but I had installed it via Package Manager.Could you help me =
with this please?
----- Original Message -----=20
From: Alfred P. Reaud=20
To: Dev-Cpp UserList=20
Sent: Monday, March 21, 2005 10:40 AM
Subject: Re: [Dev-C++] Insight Debugger questions
Hi,
I assume that by 'downloaded' you mean the package, =
Insight_Binary.DevPak. If you did that, then you must install it via =
the package manager, Packman.exe. Other than that, all that would cause =
a can't find *.exe is a path problem. Also look in the package manager =
to insure that GDB is an installed package. =20
Packages installed via the package manager should install and work =
correctly, as opposed to compiling your own package from the sources. =
If you compiled Insight from the sources, then you may have to manually =
move things around to get them into the proper folders.
ymc014 <ym...@ym...> wrote:
Hello All,
I have just downloaded Insight Debugger yesterday and I can't =
get it to work. I am using Dev-C++ 4.9.9.2.When i try to debug, an error =
occurs(something like "can't find gdb.exe").What went wrong?
ymc
Alfred P. Reaud
=20
Alfred P. Reaud
|
|
From: ymc014 <ym...@ym...> - 2005-03-22 02:18:17
|
Hello, I had completely overlooked the Check for Update/Packages feature.It = works fine for me now.By the way I am using Windows. I am new to C++(and to Dev-C++) and I appreciate your help very = much.Thank You. ymc ----- Original Message -----=20 From: Alfred P. Reaud=20 To: ymc014 ; Dev-Cpp UserList=20 Sent: Tuesday, March 22, 2005 9:42 AM Subject: Re: [Dev-C++] Insight Debugger questions Hi again, Are you on a Windows or Linux platform? I believe that the the = *.tar.bz2 is for Linux and most probably will not work on Windows = platforms. Anybody out there that knows different, please correct me. = Looking at the tarball from ftp://sources.redhat.com/pub/gdb/releases/ = shows that it doesn't contain the executable and must therefore be = built! Can't help there, as I have only used the = Insight_Binary.DevPack. Here's my recommendation. Start Dev-Cpp, and proceed to Tools --> = Check for Updates/Packages... On the WebUpdate window that pops up depress the Check for Updates = button. You may be asked to download the mirrors list. Do so and = re-start the WebUpdate window. If that happens, again press the Check = for Updates button. Scrolling about 1/3 of the way down, find = Insight_Binary and check that package. Depress Download Selected, and = follow the prompts. This is the method that works for the Windows = platform. I can't report on it's Linux compatibility, as I don't have access to = a Linux platform. Hope this helps! Sincerely, Al ymc014 <ym...@ym...> wrote: Hello, =20 It is not in a *.DevPak form rather it is a *.tar.bz2 form I've = downloaded, but I had installed it via Package Manager.Could you help me = with this please? ----- Original Message -----=20 From: Alfred P. Reaud=20 To: Dev-Cpp UserList=20 Sent: Monday, March 21, 2005 10:40 AM Subject: Re: [Dev-C++] Insight Debugger questions Hi, I assume that by 'downloaded' you mean the package, = Insight_Binary.DevPak. If you did that, then you must install it via = the package manager, Packman.exe. Other than that, all that would cause = a can't find *.exe is a path problem. Also look in the package manager = to insure that GDB is an installed package. =20 Packages installed via the package manager should install and work = correctly, as opposed to compiling your own package from the sources. = If you compiled Insight from the sources, then you may have to manually = move things around to get them into the proper folders. ymc014 <ym...@ym...> wrote: Hello All, I have just downloaded Insight Debugger yesterday and I can't = get it to work. I am using Dev-C++ 4.9.9.2.When i try to debug, an error = occurs(something like "can't find gdb.exe").What went wrong? ymc Alfred P. Reaud =20 Alfred P. Reaud =20 |
|
From: Verne H. B. <ve...@sy...> - 2005-03-22 02:24:25
|
This is good as we can learn together. Have you done any work with C or = other programs? Verne Hello, I had completely overlooked the Check for Update/Packages feature.It = works fine for me now.By the way I am using Windows. I am new to C++(and to Dev-C++) and I appreciate your help very = much.Thank You. ymc ----- Original Message -----=20 From: Alfred P. Reaud=20 To: ymc014 ; Dev-Cpp UserList=20 Sent: Tuesday, March 22, 2005 9:42 AM Subject: Re: [Dev-C++] Insight Debugger questions Hi again, Are you on a Windows or Linux platform? I believe that the the = *.tar.bz2 is for Linux and most probably will not work on Windows = platforms. Anybody out there that knows different, please correct me. = Looking at the tarball from ftp://sources.redhat.com/pub/gdb/releases/ = shows that it doesn't contain the executable and must therefore be = built! Can't help there, as I have only used the = Insight_Binary.DevPack. Here's my recommendation. Start Dev-Cpp, and proceed to Tools --> = Check for Updates/Packages... On the WebUpdate window that pops up depress the Check for Updates = button. You may be asked to download the mirrors list. Do so and = re-start the WebUpdate window. If that happens, again press the Check = for Updates button. Scrolling about 1/3 of the way down, find = Insight_Binary and check that package. Depress Download Selected, and = follow the prompts. This is the method that works for the Windows = platform. I can't report on it's Linux compatibility, as I don't have access = to a Linux platform. Hope this helps! Sincerely, Al ymc014 <ym...@ym...> wrote: Hello, =20 It is not in a *.DevPak form rather it is a *.tar.bz2 form I've = downloaded, but I had installed it via Package Manager.Could you help me = with this please? ----- Original Message -----=20 From: Alfred P. Reaud=20 To: Dev-Cpp UserList=20 Sent: Monday, March 21, 2005 10:40 AM Subject: Re: [Dev-C++] Insight Debugger questions Hi, I assume that by 'downloaded' you mean the package, = Insight_Binary.DevPak. If you did that, then you must install it via = the package manager, Packman.exe. Other than that, all that would cause = a can't find *.exe is a path problem. Also look in the package manager = to insure that GDB is an installed package. =20 Packages installed via the package manager should install and = work correctly, as opposed to compiling your own package from the = sources. If you compiled Insight from the sources, then you may have to = manually move things around to get them into the proper folders. ymc014 <ym...@ym...> wrote: Hello All, I have just downloaded Insight Debugger yesterday and I = can't get it to work. I am using Dev-C++ 4.9.9.2.When i try to debug, an = error occurs(something like "can't find gdb.exe").What went wrong? ymc Alfred P. Reaud =20 Alfred P. Reaud |
|
From: Verne H. B. <ve...@sy...> - 2005-03-22 02:56:49
|
Nice Alfred, mine lived well into his 95th year but the last few he was =
dozy. I don't want that and just too much to learn. Something I'm =
stuck on right now is if I ask someone a question and want to be able to =
cout the entire line, just how do I use char for that. =20
I know that char name [85]; lets one enter a good long name but I want =
a means of picking up a sentence. I'm sure it's in the book some place =
but not entirely sure where to look or what to look for. Any help on =
this simple thing.
Verne
I'm impressed Verne! I'm 46, BTW, so I'm not that young! I've read =
that an active mind keeps you from aging. So keep working with it! My =
dad lived to be 90 years old, and stayed very mentally active until the =
end.
Linux is kind of inscrutable, but excellent if you want full control =
of your machine and are a power user. Windows XP is very user friendly, =
however you pay for that with loss of control. It's also my opinion =
that XP 'borrowed' features from Linux, as XP has features that none of =
the previous Windows OS's had.
Helping is my way of paying back for any and all past help. It =
balances the scales of karma, so to speak.
Sincerely,
Al
"Verne H. Bohlender" <ve...@sy...> wrote:
I think you're so right, Alfred, as the two just don't mix if you =
use the wrong stuff. I'm still very new to it but getting to really =
love it for experimenting around and have a few nice simple programs =
working to my satisfaction now. I'm an old man by age but young at =
heart at 76 so have the time to help where I can. So all can know once =
and for all I'm using Ivor Horton's huge book which really goes into C++ =
with a bang. You young guys learn when you're young as it's harder to =
sink in as you get older. =20
I used to do a lot of work with Lattice C on the Old Amiga Computer =
which was the best little computer around but. . . .one has to move on. =
I'm using XP now which is as far as I'm going but have looked at the =
other side a bit and for those who use Linux or what ever that's a good =
platform too. My son got me halfway into it and then left me floating =
until I got back to my Windows. =20
Have fun guys and help the other guys out as that makes it even =
more fun.
Verne
<snip>
Alfred P. Reaud
|
|
From: Verne H. B. <ve...@sy...> - 2005-03-22 19:39:25
|
Wonderbar! That's the info I was looking for and here's a good example for
any others that may be reading these mails. It's one of Ivor's and a good
one. For me! Down to reading more about the way it really is to be done
and to try to remember it. You young guys are lucky to be able to take it
in so much faster.
Verne
******************************
const int MAX = 80; // Maximum array dimension
char buffer[MAX]; // Input buffer
int count = 0; // Character count
cout << "Enter a string of less than 80 characters:\n";
cin.getline(buffer, MAX, '\n'); // Read a string until \n
while(buffer[count]!= '\0') // Increment count as long as
count++; // the current character is not null
cout << endl
<< "The string \"" << buffer
<< "\" has " << count << " characters.";
cout << endl;
**************************************
use "cin.getline(85,'\n')" from <iostream>, as you say, this can be
easily found in any book or tutorial.
Puime
Le 22 mars 05, à 03:56, Verne H. Bohlender a écrit :
> Nice Alfred, mine lived well into his 95th year but the last few he was
> dozy. I don't want that and just too much to learn. Something I'm stuck on
> right now is if I ask someone a question and want to be able to cout the
> entire line, just how do I use char for that. I know that char name [85];
> lets one enter a good long name but I want a means of picking up a
> sentence. I'm sure it's in the book some place but not entirely sure where
> to look or what to look for. Any help on this simple thing.
> Verne
>
> I'm impressed Verne! I'm 46, BTW, so I'm not that young! I've read that an
> active mind keeps you from aging. So keep working with it! My dad lived to
> be 90 years old, and stayed very mentally active until the end.
>
> Linux is kind of inscrutable, but excellent if you want full control of
> your machine and are a power user. Windows XP is very user friendly,
> however you pay for that with loss of control. It's also my opinion that
> XP 'borrowed' features from Linux, as XP has features that none of the
> previous Windows OS's had.
>
> Helping is my way of paying back for any and all past help. It balances
> the scales of karma, so to speak.
>
> Sincerely,
>
> Al
>
> "Verne H. Bohlender" <ve...@sy...> wrote:
> I think you're so right, Alfred, as the two just don't mix if you use the
> wrong stuff. I'm still very new to it but getting to really love it for
> experimenting around and have a few nice simple programs working to my
> satisfaction now. I'm an old man by age but young at heart at 76 so have
> the time to help where I can. So all can know once and for all I'm using
> Ivor Horton's huge book which really goes into C++ with a bang. You young
> guys learn when you're young as it's harder to sink in as you get older. I
> used to do a lot of work with Lattice C on the Old Amiga Computer which
> was the best little computer around but. . . .one has to move on. I'm
> using XP now which is as far as I'm going but have looked at the other
> side a bit and for those who use Linux or what ever that's a good platform
> too. My son got me halfway into it and then left me floating until I got
> back to my Windows. Have fun guys and help the other guys out as that
> makes it even more fun.
>
> Verne
> <snip>
>
>
>
>
>
> Alfred P. Reaud
> <Happy_Cat_Technologies_Business_Card.gif>
|
|
From: Verne H. B. <ve...@sy...> - 2005-03-22 15:38:54
|
Nope, Alfred, it doesn't do the job as about all I get out of same is =
one letter or word at the most. Here's the code to a complete little =
program and though I see what I type it only prints out the first word. =
We're missing something here somewhere. Oh well more reading is due I =
guess. Thanks for this.
Verne
***************************************
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
string story;
cin >> story;
cout << story<< "\n";
system("PAUSE");
return EXIT_SUCCESS;
}
*************************************
When it runs type 'Plumbing is my business.' and it will only print =
out Plumbing.
There's different methods. If you're using cout then that implies =
C++. Use the string class instead of the char keyword. The string =
class with cin would already separate the input at the newline =
character.
Then it would be (provided sentences where input with the Enter key):
string line;
cin >> line;
cout << line;
For char's it's a little harder as you have to capture the tokens. =
Look up String Manipulation on the Microsoft Run-Time Library Reference =
Site. strtok is an example. It also depends on whether you are =
terminating sentences on newlines, ". ", or whatever your token is. As =
an example, "This is a test. This is another." would have a token ". " =
for the first sentence, and a terminating token of ".\n" You'd have to =
separate the two, and would have to handle the time when the user =
forgets the period!
There's also formatted input, which I haven't used in so long that =
I've forgotten how to use it! See Standard C I/O, and C++ I/O from the =
C/C++ Reference site. Check out my links page section on Programming at =
http://www.geocities.com/alreaud/Links_Page.htm. Just use the left =
frame, click on Computers and Internet, then click on Programming.
Hope this helps!=20
"Verne H. Bohlender" <ve...@sy...> wrote:
Nice Alfred, mine lived well into his 95th year but the last few he =
was dozy. I don't want that and just too much to learn. Something I'm =
stuck on right now is if I ask someone a question and want to be able to =
cout the entire line, just how do I use char for that. =20
I know that char name [85]; lets one enter a good long name but I =
want a means of picking up a sentence. I'm sure it's in the book some =
place but not entirely sure where to look or what to look for. Any help =
on this simple thing.
Verne
I'm impressed Verne!<snip>=20
Alfred P. Reaud
|
|
From: ymc014 <ym...@ym...> - 2005-03-22 00:42:04
|
Hello,
=20
It is not in a *.DevPak form rather it is a *.tar.bz2 form I've =
downloaded, but I had installed it via Package Manager.Could you help me =
with this please?
----- Original Message -----=20
From: Alfred P. Reaud=20
To: Dev-Cpp UserList=20
Sent: Monday, March 21, 2005 10:40 AM
Subject: Re: [Dev-C++] Insight Debugger questions
Hi,
I assume that by 'downloaded' you mean the package, =
Insight_Binary.DevPak. If you did that, then you must install it via =
the package manager, Packman.exe. Other than that, all that would cause =
a can't find *.exe is a path problem. Also look in the package manager =
to insure that GDB is an installed package. =20
Packages installed via the package manager should install and work =
correctly, as opposed to compiling your own package from the sources. =
If you compiled Insight from the sources, then you may have to manually =
move things around to get them into the proper folders.
ymc014 <ym...@ym...> wrote:
Hello All,
I have just downloaded Insight Debugger yesterday and I can't get =
it to work. I am using Dev-C++ 4.9.9.2.When i try to debug, an error =
occurs(something like "can't find gdb.exe").What went wrong?
ymc
Alfred P. Reaud
=20
|