dev-cpp-users Mailing List for Dev-C++ (Page 636)
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: Anders N. <An...@ek...> - 2002-01-03 19:59:53
|
Hello! I really don't know how I do it in VB but it works. I found a "program" = for it on some official Lego site and followed the manual. My problem is = that I can't VB and therefore couldn't make what I wanted to do. I can = use C/C++ pretty good and therefore I started to look for a class that = can handle the communication between my computer through the seriell = interface to my RCX. I only found a class to Smalltalk = (http://www.object-arts.com/Bower/Bot-Kit/Bot-Kit.htm) and Java = (http://www.slewis.com/rcxport/) . I was hoping that someone already had = written a class in C++ for it because I'm not so god in the communaction = part with the addresses to the serial interface. So I'm sorry, I can't = tell you how it works in VB. Regards, Anders ----- Ursprungligt meddelande -----=20 Fr=E5n: "KJK::Hyperion" <no...@li...> Till: "Anders Nilsson" <An...@ek...> Skickat: den 3 januari 2002 17:20 =C4mne: Re: [Dev-C++] Make programs for Lego RCX > At 15.28 02/01/2002 +0100, you wrote: > >I would like to write programs in C++ to Lego Mindstorm RCX. I have = found=20 > >methods to do it in Smalltalk and VisualBasic. >=20 > Tell me how do you do in VB, I may be able to help you >=20 >=20 |
|
From: Ricardo R. <ri...@po...> - 2002-01-03 18:48:48
|
does someone know where I can download the setup utility from?. thanks in advance. ricardo. |
|
From: <fa...@bl...> - 2002-01-03 16:06:29
|
Hi Folks. If you need OpenGL and Dev-C++ stuff, please check my new homepage. There, you can find a lot of tutorials, documents, demos, tools, sourceco= des, games ... about the OpenGL and GLUT API. There is also a Dev-C++ section with some short tutorials. (I`m sorry, but the page is written in german... perhaps I will make an english mirror, but that's too much work for me alone). Give me some feedback and what you think about it. thanx Karim the URL www.3dcoders.6x.to=20 ________________________________________ E-Mail for everyone! http://www.bluemail.ch/ powered by Bluewin! |
|
From: Ioannis V. <no...@ya...> - 2002-01-03 14:57:06
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Luigi Santillo
> Sent: Wednesday, January 02, 2002 5:59 PM
> To: dev...@li...
> Subject: [Dev-C++] problem with stdin and stdout
>
>
> Hello list
>
> I tried to make a simple program that prints the amount of
> characters found
> in a file. Here is my code:
>
> count.c
> ------
> #include <stdio.h>
>
> int
> main()
> {
> int n = 0;
>
> while (getchar() != EOF)
> n++;
>
> printf("n = %d\n", n);
>
> return 0;
> }
> ---------
>
>
> One could use the program in one of these 4 ways:
> 1) count get input from stdin and print amount
> of character to
> stdout
> 2) count < foo get input from file "foo" (using
> redirection) print
> to stdout
> 3) count > bar get input from stdin, print output to file "bar"
> 4) count < foo > bar get input from "foo", print output to "bar"
>
> IMHO the above 4 commands are equivalent (to the extent that one
> types what is contained in the file "foo", when the input
> comes "directly"
> from stdin), so I expected the code to behave in the same way
> independent
> of the command I used; here are my results: say that the file
> "foo" is the
> following (an '@' stands for EOF):
>
> foo
> -----
> aa@
> -----
>
> When I try command #2 and #4 I get the correct answer: that
> is "n = 2". When I try command #3 (and manually type
> "aa+CTRL-z" on stdin) I find that
> "bar" is
>
> bar
> ------
> n = 2
> ------
>
> Strange enough when I use command #1 (and manually type
> "aa+CTRL-z" on
> stdin) I see nothing displayed!
Nothing is displayed to me too when using MINGW32. However when i sue
the BC++ 5.5 compiler the thing works correctly:
C:\c>temp
aa^Z
n = 2
So it is probably a compiler defect.
>
> I have tried the above with MinGW 2.95 on a Win98SE system. I
> think the
> problem is related to Windows, because I remember asking a
> similar question
> to Mr. Vranos and he answered me that he had no problem, he
> was using MinGW
> 2.95 too, but his system was running a different version of
> Windows (I'm
> not sure which one).
Yes i remeber you had asked something like that (i don't remember what
exactly) but i do not remember the answer i gave to you. Anyway i think
we have to do with compiler defect(s) and i do not think it has to do
with the operating system (this ctrl-z thing).
My OS is Win2k.
>
> I would appreciate if someone, running Windows 98SE, could
> try the above
> using my same compiler (it is the one shipped with Dev-C++
> 4.0 and I think,
> but am not sure, Dev-C++ 4.1) and let me know what happens:
> at least I
> would make sure that the problem is related to my
> installation of Windows.
No, it is the compiler.
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.f2s.com
* Alternative URL: http://run.to/noicys
|
|
From: Luigi S. <gi...@li...> - 2002-01-03 06:36:58
|
Hello list
I tried to make a simple program that prints the amount of characters found
in a file. Here is my code:
count.c
------
#include <stdio.h>
int
main()
{
int n = 0;
while (getchar() != EOF)
n++;
printf("n = %d\n", n);
return 0;
}
---------
One could use the program in one of these 4 ways:
1) count get input from stdin and print amount of character to
stdout
2) count < foo get input from file "foo" (using redirection) print
to stdout
3) count > bar get input from stdin, print output to file "bar"
4) count < foo > bar get input from "foo", print output to "bar"
IMHO the above 4 commands are equivalent (to the extent that one
types what is contained in the file "foo", when the input comes "directly"
from stdin), so I expected the code to behave in the same way independent
of the command I used; here are my results: say that the file "foo" is the
following (an '@' stands for EOF):
foo
-----
aa@
-----
When I try command #2 and #4 I get the correct answer: that is "n = 2".
When I try command #3 (and manually type "aa+CTRL-z" on stdin) I find that
"bar" is
bar
------
n = 2
------
Strange enough when I use command #1 (and manually type "aa+CTRL-z" on
stdin) I see nothing displayed!
I have tried the above with MinGW 2.95 on a Win98SE system. I think the
problem is related to Windows, because I remember asking a similar question
to Mr. Vranos and he answered me that he had no problem, he was using MinGW
2.95 too, but his system was running a different version of Windows (I'm
not sure which one).
I would appreciate if someone, running Windows 98SE, could try the above
using my same compiler (it is the one shipped with Dev-C++ 4.0 and I think,
but am not sure, Dev-C++ 4.1) and let me know what happens: at least I
would make sure that the problem is related to my installation of Windows.
Of course any idea about what I am doing wrong is welcome.
By the way the following code works:
count2.c
------
#include <stdio.h>
int
main()
{
int n = 0;
while (getchar() != EOF)
n++;
puts(""); /* this is the "magic" line */
printf("n = %d\n", n);
return 0;
}
---------
Thank you for your time.
--
gisan
gi...@li...
|
|
From: DXFX <vin...@ed...> - 2002-01-02 14:39:00
|
First of all happy 2002 to all! Now back to why I mailed... Sorry if I'm going slightly off the topic on what I posted some time before... I have a little problem and that's a bit strange... I have a library file ending with .lib extension. And i know this file was generated by Visual C++. And .lib files cannot be used with MinGW Compiler (or can they?). I also know that MinGW uses libraries with .a extension, not .lib(s). I was wondering how I could convert the .lib files to .a files. Anyone knows how? I think this question was posted here before... but I don't know if there was a solution arrived. So here I am asking it again, hoping someone knows how... DOES ANYBODY KNOW HOW? dXfX __________________________________ www.edsamail.com |
|
From: Anders N. <An...@ek...> - 2002-01-02 14:30:18
|
I would like to write programs in C++ to Lego Mindstorm RCX. I have = found methods to do it in Smalltalk and VisualBasic. Have someone tried = this in C++? Do you know about some links there C++ is used with Lego = RCX? |
|
From: Ioannis V. <no...@ya...> - 2002-01-01 10:38:50
|
Take a look at http://www.noicys.f2s.com/links.htm in "Tutorials" section. From these links especially take a look at http://blacksun.box.sk/books.html which is about commercial books on line for free! Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Kenneth Armstrong > Sent: Tuesday, January 01, 2002 8:53 AM > To: dev...@li... > Subject: [Dev-C++] questions from a newbie > > > > Hi, first off, happy new year to all! I am a beginner trying > to get a few > things figured out. First, I am wondering if anyone knows > where to find > some GOOD links on programming simple games in DOS. I'm > trying to learn > things one step at a time and the only thing that I can find is just > tutorials on creating "hello world" programs then they jump > to 3D stuff. > I'm O.K. with the basics but I'm not ready for the 3D stuff > yet. Also, I'm > trying to figure out how to make the computer 'beep' when an > output is > printed to the screen in a DOS program. Such as, how do you get the > computer to use it's own speaker when output is sent from the > program? I > would appreciate any help anyone can offer. Thanks. > digimars (the C++ > rookie) > > > _________________________________________________________________ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Kenneth A. <dig...@ho...> - 2002-01-01 07:04:42
|
Hi, first off, happy new year to all! I am a beginner trying to get a few things figured out. First, I am wondering if anyone knows where to find some GOOD links on programming simple games in DOS. I'm trying to learn things one step at a time and the only thing that I can find is just tutorials on creating "hello world" programs then they jump to 3D stuff. I'm O.K. with the basics but I'm not ready for the 3D stuff yet. Also, I'm trying to figure out how to make the computer 'beep' when an output is printed to the screen in a DOS program. Such as, how do you get the computer to use it's own speaker when output is sent from the program? I would appreciate any help anyone can offer. Thanks. digimars (the C++ rookie) _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx |
|
From: Ioannis V. <no...@ya...> - 2002-01-01 01:37:50
|
For encyclopedic information there was an update at Windows update which makes Euro as the currency in my regional settings (i am in Greece so we get Euro). I miss it as a key in my keyboard though (i am bored pressing ctrl-alt-e). My =88 and i hope the best. :) Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Jason Hardman > Sent: Tuesday, January 01, 2002 3:11 AM > To: Dev-C++ > Subject: Re: [Dev-C++] Welcome to 2002! >=20 >=20 > As a Brit I kinda miss out on that bit, which on the one hand=20 > is sad, but on the other at least I get to see how others=20 > fair before hand. >=20 > Now just where is the Euro symbol on my computer?!? >=20 > Happy Hogmany! >=20 > Jason. |
|
From: Jason H. <jas...@bt...> - 2002-01-01 01:11:32
|
As a Brit I kinda miss out on that bit, which on the one hand is sad, but on the other at least I get to see how others fair before hand. Now just where is the Euro symbol on my computer?!? Happy Hogmany! Jason. ----- Original Message ----- From: "Jürgen Schuhmacher" <jsc...@gm...> To: <dev...@li...> Sent: Tuesday, January 01, 2002 1:05 AM Subject: RE: [Dev-C++] Welcome to 2002! Yes, happy new currency - I wonder what will come with it :-) HAPPY NEW YEAR to ALL in HERE ! On 1 Jan 2002, at 2:55, Ioannis Vranos wrote: From: "Ioannis Vranos" <no...@ya...> To: "Dev-C++" <dev...@li...> Subject: RE: [Dev-C++] Welcome to 2002! Date sent: Tue, 1 Jan 2002 02:55:04 +0200 > Wishes for a Happy New Year from me too, and for the Europeans happy new > currency too. :) > > > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.f2s.com > * Alternative URL: http://run.to/noicys > > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Jason Hardman > > Sent: Tuesday, January 01, 2002 2:05 AM > > To: Dev-C++ > > Subject: [Dev-C++] Welcome to 2002! > > > > > > I just thought I'd take this moment to express to you all a > > wish for a very happy new year. May 2002 be a great year for > > you all, and may you have many more to come. > > > > Jason. > > > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > Jürgen Schuhmacher jsc...@gm... _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: <jsc...@gm...> - 2002-01-01 01:02:26
|
Yes, happy new currency - I wonder what will come with it :-) HAPPY NEW YEAR to ALL in HERE ! On 1 Jan 2002, at 2:55, Ioannis Vranos wrote: From: "Ioannis Vranos" <no...@ya...> To: "Dev-C++" <dev...@li...> Subject: RE: [Dev-C++] Welcome to 2002! Date sent: Tue, 1 Jan 2002 02:55:04 +0200 > Wishes for a Happy New Year from me too, and for the Europeans happy new > currency too. :) > > > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.f2s.com > * Alternative URL: http://run.to/noicys > > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Jason Hardman > > Sent: Tuesday, January 01, 2002 2:05 AM > > To: Dev-C++ > > Subject: [Dev-C++] Welcome to 2002! > > > > > > I just thought I'd take this moment to express to you all a > > wish for a very happy new year. May 2002 be a great year for > > you all, and may you have many more to come. > > > > Jason. > > > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > J=FCrgen Schuhmacher jsc...@gm... |
|
From: Ioannis V. <no...@ya...> - 2002-01-01 00:54:27
|
Wishes for a Happy New Year from me too, and for the Europeans happy new currency too. :) Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Jason Hardman > Sent: Tuesday, January 01, 2002 2:05 AM > To: Dev-C++ > Subject: [Dev-C++] Welcome to 2002! > > > I just thought I'd take this moment to express to you all a > wish for a very happy new year. May 2002 be a great year for > you all, and may you have many more to come. > > Jason. > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Jason H. <jas...@bt...> - 2002-01-01 00:05:22
|
I just thought I'd take this moment to express to you all a wish for a very happy new year. May 2002 be a great year for you all, and may you have many more to come. Jason. |
|
From: Jerry C. <jdc...@ju...> - 2001-12-31 15:03:28
|
Thank you for the informative exchange. Please remove me from the list at this time. Jerry |
|
From: BetaNews <fi...@be...> - 2001-12-31 07:43:25
|
Remove ----- Original Message ----- From: "DXFX" <vin...@ed...> To: "dev-c++ user's mailing list" <dev...@li...> Sent: Monday, December 31, 2001 6:44 PM Subject: [Dev-C++] Shell tray Icons... > Greetings! > > Applications use Shell_NotifyIcon function to create an icon on the Windows Taskbar's Status Area(system tray). > > But what if we turn the the table around... > > What if the application is the one that displays the icons in an area(maybe a system tray replacement or something). It receives some calls from the system informing the application that another application has called the Shell_NotifyIcon function and should process the data that was passed by the other application. Question - > > How does the application receive the notifications from the system that another application has called Shell_NotifyIcon(or simply means that a new icon for the "system tray" was created? Does the system notify the application or not? > > All I wanted to do with the application was to detect if there are icons in the system tray... or if the application IS the system tray, how does it detect if there are new icons to be added, and/or that some of the icons where modified(for Shell_NotifyIcon also allows to change an existing icon in the system tray). How do I do this? > > Please, someone, help! > > Thanks to anyone! > > dXFx > > -- > > __________________________________ > www.edsamail.com > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: DXFX <vin...@ed...> - 2001-12-31 07:34:07
|
Greetings! Applications use Shell_NotifyIcon function to create an icon on the Windows Taskbar's Status Area(system tray). But what if we turn the the table around... What if the application is the one that displays the icons in an area(maybe a system tray replacement or something). It receives some calls from the system informing the application that another application has called the Shell_NotifyIcon function and should process the data that was passed by the other application. Question - How does the application receive the notifications from the system that another application has called Shell_NotifyIcon(or simply means that a new icon for the "system tray" was created? Does the system notify the application or not? All I wanted to do with the application was to detect if there are icons in the system tray... or if the application IS the system tray, how does it detect if there are new icons to be added, and/or that some of the icons where modified(for Shell_NotifyIcon also allows to change an existing icon in the system tray). How do I do this? Please, someone, help! Thanks to anyone! dXFx -- __________________________________ www.edsamail.com |
|
From: <mi...@ju...> - 2001-12-30 21:44:03
|
I was wondering if anyone knew of tutorials for writing c programs for pocket viewer handheld computers. I know these toys are more popular in Europe, but I want to start writing programs for them and can't get started. ________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/web/. |
|
From: John K. <jki...@po...> - 2001-12-30 16:44:27
|
(Sheepishly) Thanks, Dr. lonestar36 ------------------ Reply Separator -------------------- Originally From: "lonestar36" <lon...@go...> Subject: Re: [Dev-C++] newbie with 'undefined reference to strcopy' only on linking files Date: 12/30/2001 06:56am String copy prototype is: char *strcpy( char *dest, const char *src); You are mis spelling strcopy. lonestar36 ----- Original Message ----- From: "John Kilbourne" <jki...@po...> To: <dev...@li...> Sent: Saturday, December 29, 2001 9:22 PM Subject: [Dev-C++] newbie with 'undefined reference to strcopy' only on linking files |
|
From: John K. <jki...@po...> - 2001-12-30 03:29:34
|
I am using gcc on winNT, working with the CD of C programming
accompanying Bruce Eckels' Thinking in C++.
I have a program with three files. I am not using "make"; I just
compile them directly. All has worked well till now.
I compile my program to an object file ok (gcc -c employ2.c), but
when I try to link it with the file with the main() method, I get
the "undefined reference" error noted above. Here is my dos command
line, showing the successful compilation to the .o file and the error
that results both when trying to use the .o file and when
recompiling everyting from source:
C:\eckels>gcc -c employ2.c
C:\eckels>gcc -olab7 employ2.o lab7.c
employ2.o(.text+0x2a):employ2.c: undefined reference to `strcopy'
employ2.o(.text+0x40):employ2.c: undefined reference to `strcopy'
employ2.o(.text+0x56):employ2.c: undefined reference to `strcopy'
employ2.o(.text+0xfc):employ2.c: undefined reference to `strcopy'
employ2.o(.text+0x123):employ2.c: undefined reference to `strcopy'
employ2.o(.text+0x147):employ2.c: more undefined references to
`strcopy' follow
C:\eckels>gcc -o lab7 employ2.c lab7.c
C:\TEMP\ccCqaaaa.o(.text+0x2a):employ2.c: undefined reference to
`strcopy'
C:\TEMP\ccCqaaaa.o(.text+0x40):employ2.c: undefined reference to
`strcopy'
C:\TEMP\ccCqaaaa.o(.text+0x56):employ2.c: undefined reference to
`strcopy'
C:\TEMP\ccCqaaaa.o(.text+0xfc):employ2.c: undefined reference to
`strcopy'
C:\TEMP\ccCqaaaa.o(.text+0x123):employ2.c: undefined reference to
`strcopy'
C:\TEMP\ccCqaaaa.o(.text+0x147):employ2.c: more undefined references
to `strcopy' follow
My header includes <string.h>. Here is my code, which is really
eckels' code:
/* employ2.c*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "employ2.h"
struct Employee* createEmployee
(char* last,
char* first,
char* title,
int sal)
{
struct Employee* p =
malloc(sizeof(struct Employee));
if (p != NULL)
{
strcopy(p->last, last);
strcopy(p->first, first);
strcopy(p->title, title);
p->salary = sal;
}
return p;
}
char* getLast(struct Employee* emp)
{
return emp ? emp->last : "";
}
char* getFirst(struct Employee* emp)
{
return emp ? emp->first : "";
}
char* getTitle(struct Employee* emp)
{
return emp ? emp->title : "";
}
int getSalary(struct Employee* emp)
{
return emp->salary;
}
void setLast(struct Employee* emp, char* last)
{
if (emp != NULL)
strcopy(emp->last, last);
}
void setFirst(struct Employee* emp, char* fir)
{
if (emp != NULL)
strcopy(emp->first, fir);
}
void setTitle(struct Employee* emp, char* title)
{
if (emp != NULL)
strcopy(emp->title, title);
}
void setSalary(struct Employee* emp, int sal)
{
if (emp != NULL)
strcopy(emp->salary, sal);
}
void printEmployee(struct Employee* emp)
{
putchar('{');
if (emp != NULL)
printf("%s\n%s\n%s\n%d\n",
emp->last,
emp->first,
emp->title,
emp->salary);
putchar('}');
}
What simple thing am I missing?
|
|
From: http//:angelfire.com/dc/85 Sale's <bc...@ms...> - 2001-12-29 19:24:21
|
It took me a whoole day to find these,hope they are of some info for you all on how to make a OS.Some are for linux ,others are not,check em out. http://www.codesites.com http://www.kernel.org/pub/ http://www.cs.arizona.edu/people/bridges/os/free.html http://www.acm.uiuc.edu/sigops/roll_your_own/ http://www.acm.uiuc.edu/sigops/roll_your_own/1.html http://www.geocities.com/SiliconValley/Campus/1671/english/iindice.htm http://www.linuxdoc.org/ _________________________________________________________________ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com |
|
From: Ioannis V. <no...@ya...> - 2001-12-29 13:32:01
|
I saw that i made a mistake, so i resend.
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Green, Aaron
> Sent: Saturday, December 29, 2001 3:19 AM
> To: dev-c++ user's mailing list
> Subject: [Dev-C++] C++ pointers
>
>
> This may be OT, but I know I've seen programming questions
> here before, so I'll give it a try.
>
> I wrote up a small program that tries to explain how pointers
> work to me.
>
> #include <iostream>
>
> double* f(double *pD2)
> {
> *pD2 = 15;
> return pD2;
> }
>
> int main()
> {
> double d;
> double *pD = &d;
> d = 20;
> *pD = 10;
> std::cout << *pD << '\n';
> std::cout << d << '\n';
> double *pD3 = f(&d);
This points pD3 toy d which after the execution of this line is 15.
> std::cout << d << '\n';
> std::cout << *pD3 << '\n';
> d = 100;
Now you change d toy 100 so *pD3 is now 100 (pD3==&d).
> std::cout << d << '\n';
> std::cout << *pD3 << '\n';
> std::cout << *pD << '\n';
>
>
> return 0;
> }
>
>
> The last parts of the output are 100 100 100. My
> question is: Why does *pD3 change when it points to a
> function that changes whatever is at &d ? I thought calling
> cout would run that function again, or at least give me the
> same value as before.
Calling cout<<*pD3; doesn't execute any function it simply the value of
d which is 100. If you wanted the function to be called again you should
do:
std::cout << *(pD3=f(pD3)) << '\n';
(or std::cout << *(pD3=f(&d)) << '\n'; )
or std::cout << *f(pD3) << '\n'
( or std::cout << *f(&d) << '\n' )
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.f2s.com
* Alternative URL: http://run.to/noicys
|
|
From: Ioannis V. <no...@ya...> - 2001-12-29 03:12:21
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Green, Aaron
> Sent: Saturday, December 29, 2001 3:19 AM
> To: dev-c++ user's mailing list
> Subject: [Dev-C++] C++ pointers
>
>
> This may be OT, but I know I've seen programming questions
> here before, so I'll give it a try.
>
> I wrote up a small program that tries to explain how pointers
> work to me.
>
> #include <iostream>
>
> double* f(double *pD2)
> {
> *pD2 = 15;
> return pD2;
> }
>
> int main()
> {
> double d;
> double *pD = &d;
> d = 20;
> *pD = 10;
> std::cout << *pD << '\n';
> std::cout << d << '\n';
> double *pD3 = f(&d);
This points pD3 toy d which after the execution of this line is 15.
> std::cout << d << '\n';
> std::cout << *pD3 << '\n';
> d = 100;
Now you change d toy 100 so *pD3 is now 100 (pD3==&d).
> std::cout << d << '\n';
> std::cout << *pD3 << '\n';
> std::cout << *pD << '\n';
>
>
> return 0;
> }
>
>
> The last parts of the output are 100 100 100. My
> question is: Why does *pD3 change when it points to a
> function that changes whatever is at &d ? I thought calling
> cout would run that function again, or at least give me the
> same value as before.
Calling cout<<*pD3; doesn't execute any function it simply the value of
d which is 100. If you wanted the function to be called again you should
do:
std::cout << *(pD3=f(pD3)) << '\n';
(or std::cout << *(pD3=f(d)) << '\n'; )
or std::cout << *f(pD3) << '\n'
( or std::cout << *f(d) << '\n' )
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.f2s.com
* Alternative URL: http://run.to/noicys
|
|
From: Green, A. <JA...@GA...> - 2001-12-29 01:18:48
|
This may be OT, but I know I've seen programming questions here before, so I'll give it a try.
I wrote up a small program that tries to explain how pointers work to me.
#include <iostream>
double* f(double *pD2)
{
*pD2 = 15;
return pD2;
}
int main()
{
double d;
double *pD = &d;
d = 20;
*pD = 10;
std::cout << *pD << '\n';
std::cout << d << '\n';
double *pD3 = f(&d);
std::cout << d << '\n';
std::cout << *pD3 << '\n';
d = 100;
std::cout << d << '\n';
std::cout << *pD3 << '\n';
std::cout << *pD << '\n';
return 0;
}
The last parts of the output are 100 100 100. My question is: Why does *pD3 change when it points to a function that changes whatever is at &d ? I thought calling cout would run that function again, or at least give me the same value as before.
|
|
From: DXFX <vin...@ed...> - 2001-12-29 00:51:12
|
My friend... Jason is right. It is possible for you to create one for a particular system. But if it should support all systems, it will be hard. Although you should pursue the venture. All I can advice for you is utilize whats already being used. Linux IS a good place to start. Building it under windows would be challenging. But Windows uses a default "Shell" which is known as explorer. You might consider using this to advantage (i.e. making a shell enhancement, or possibly... a shell replacement w/c is what I'm doing now). Windows already supports a variety of hardware so building on top of its shell or changing its shell might be good. Your windows "shell" would, in your description, do whatever you need it to do by providing a simple interface(complex if you want). Plus, it will still retain the abilities of windows. But I encourage you to create one. Its quite interesting how those folks at Microsoft do such an OS. May I take a look at the code? or any plans that you made? Do you have any URL for that? I'm just curious and hoping also to help you... __________________________________ www.edsamail.com |