dev-cpp-users Mailing List for Dev-C++ (Page 117)
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: Marc F. <fel...@gm...> - 2005-07-18 19:35:30
|
I'm using the latest beta 4.9.9.2 (WinXP, SP2), having come from a Linux (Xemacs) environment. Xemacs (as well as Anjuta and KDevelop) keeps the source code formatted properly (or can at least globally reformat the code to keep it to a particular style), so style messiness is at a minimum. I've been unable to find any source formatting capability within Dev-C++ and I notice that Xemacs (or KDevelop) formatted code gets messed up pretty quickly in the newest beta. Am I missing something in the configuration or a menu that actually permits source reformatting? Many thanks.=20 --=20 Dr. Marc Feldesman Portland State University http://web.pdx.edu/~h1mf If you received this email by mistake, blame my computer, not me. |
|
From: Edward D. <edd...@tr...> - 2005-07-18 18:20:43
|
How do I tell what version of Mingw I have in my dev-cpp installation ? |
|
From: <Mat...@Ve...> - 2005-07-18 16:06:52
|
The generic terms would be peek instead of pop and poke instead of push... -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of lordSauron Sent: Friday, July 15, 2005 6:59 PM To: dev...@li... Subject: Re: [Dev-C++] What is an intiger? a variable is a metaphor to express a location in memory, from which you can get (pop) the value, or change (push) the value. However, push and pop are stack-memory specific, last time I checked. Feel free to correct me. Variables are usually of class DataType, which simply means that they're of a certain type of caste. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ___________________________________________________________________ The information contained in this message and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it and all copies and backups thereof. Thank you. |
|
From: Jay B. <jay...@ni...> - 2005-07-18 12:14:26
|
[snip] It's a lot more understandable with the vb langwij,and it is more up to date with all the new things like list boxes and buttens and pule down menus [/snip] "Up to date" may be the wrong terminology here. You can do all of this in C++. wxWidgets comes to mind for graphical interface items like this. [snip] How ever,the c++ is more interesting,cause it explaines about the hol prosess of things,I mean, it tells ya what exaktly the comp does when you type in a command like cout main or what ever And I don't know what to do,I think that to learn them both will be a hard thing for me And I really nead to understand what are the diferensess between the two langwijs and wich of them is more strong [/snip] C++ is stronger and more flexible. While Visual Basic is a strong language and is used in many commercial applications it is not as nearly as robust as properly programmed C++. Also, the dot Net languages, even though they are getting more and more popular, are Microsoft inventions that fail to be a.)cross platform compatible and b.)require large expenditures for programming environments. Honestly I have not understood the migration to the dot Net languages. |
|
From: yakir a. <ya...@za...> - 2005-07-18 12:02:06
|
Hi to all I just wanted to say I'm really confused now[not about the good help you gave me], it's that I started learning visual basic6 a cupple of days ago with a book called "visual basic 6 for dumies" It's a lot more understandable with the vb langwij,and it is more up to date with all the new things like list boxes and buttens and pule down menus How ever,the c++ is more interesting,cause it explaines about the hol prosess of things,I mean, it tells ya what exaktly the comp does when you type in a command like cout main or what ever And I don't know what to do,I think that to learn them both will be a hard thing for me And I really nead to understand what are the diferensess between the two langwijs and wich of them is more strong Thanks Yakir |
|
From: Jonathan D. <gri...@ho...> - 2005-07-18 03:39:31
|
Hey Fred, I don't know if you've gotten your answer yet, but I noticed your prototype declaration. I didn't check on it, but as I understand it, the declaration should be exactly the same as the definition. In your source snippet, you have the prototype "void f(int)", but you define it as "f(int i)". Shouldn't it be prototyped as 'void f(int i)"? This might cause a linker error of an undefined reference especially if you have code before the definition that calls f(), but in your case it is probably because it leaves a hanging prototype. I hope that helps, Jonathan _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ |
|
From: Rob A. <rob...@gm...> - 2005-07-17 23:52:56
|
This isn't official documentation, since I'm not one of the developers and wasn't asked to do this (although one of them was suggested by another user). Having made that disclaimer.... I've posted a couple of .pdf files that I hope will be of help to users new to Dev-C++: Installing Dev-C++ Step-By-Step: http://uselesspython.com/devcpp/InstallingDevCppStepByStep.pdf Dev-C++ Quick Start Tutorial: http://uselesspython.com/devcpp/DevCppQuickStartTutorial.pdf Cheers! -Rob Andrews --=20 Golf with an attitude: http://www.ragingolf.com/ |
|
From: Vale G. <val...@at...> - 2005-07-17 21:12:44
|
Fibre - > fixed, i think ... One thing is wird for me :-( When I have commented out '#include <mss.h>' all is OK. - mss log file is on place, looks good - but if not I have such message from sompiler: > main.cpp:42: error: invalid conversion from `const char*' to `char*' > main.cpp:43: error: invalid conversion from `const char*' to `char*' I also get the "invalid conversion" errors when I use the MinGW (default) compiler but not with a Cygwin (gcc) compiler. If I use the Cygwin compiler I can leave the '#include <mss.h>' statement in but then I have problems with the linker. This library obviously needs more work. Unfortunately, it is only maintained periodically and there are several fixes and a new release pending. Perhaps Lauren will get back to it some day soon. Chuck |
|
From: Fibre O. <fib...@go...> - 2005-07-17 18:36:48
|
Vale Group wrote:
>When compiling MSS, be sure to add
>
>-DMSS
>
>to the project C++ compiler command line.
>
>
>When using MSS in your own programs, add
>
>#include "c:\mss121\mss.h"
>
>to each source code .c or .cpp file.
>
>
>Chuck
>
>
>
fixed, i think ... One thing is wird for me :-( When I have commented
out '#include <mss.h>' all is OK. - mss log file is on place, looks good
- but if not I have such message from sompiler:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Projects\test\Makefile.win"
Executing make clean
rm -f main.o test.exe
g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/Projects/mss121" -DMSS
main.cpp: In function `int main(int, char**)':
main.cpp:42: error: invalid conversion from `const char*' to `char*'
main.cpp:43: error: invalid conversion from `const char*' to `char*'
make.exe: *** [main.o] Error 1
Execution terminated
My simple, test code ise below::
//START
#include <iostream>
//#include <mss.h>
using namespace std;
int swap ( int inX, int inY )
{
int tmp;
tmp = inX;
inX = inY;
inY = tmp;
return 0;
}
int main(int argc, char *argv[])
{
int* x;
x = new int;
*x = 10;
int* y;
y = new int;
*y = 20;
for( int i = 0; i <= 100; i ++ ) {
cout << "Variable X: " << *x << endl;
cout << "Variable Y: " << *y << endl;
cout << "Swap variables ..." << endl;
swap( x, y );
cout << "Variable X: " << *x << endl;
cout << "Variable Y: " << *y << endl;
cout << endl;
}
delete x;
delete y;
system("PAUSE");
return EXIT_SUCCESS;
}
// STOP
Compilation log from Dev-cpp:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Projects\test\Makefile.win"
Executing make clean
rm -f main.o test.exe
g++.exe -D__DEBUG__ -c main.cpp -o main.o
-I"C:/Dev-Cpp/Projects/mss121" -DMSS
g++.exe -D__DEBUG__ main.o -o "test.exe" ../mss121/libmss.a
Execution terminated
Compilation successful
Regards,
Fibre Optic
|
|
From: Vale G. <val...@at...> - 2005-07-17 17:44:57
|
Mr. Optic - > does anyone tried to use MSS (http://hem.passagen.se/blizzar/mss/mssdoc.html) with Dev-cpp ??? I have both compiled it and used the library to analyze other programs. First of all, make sure that you have the latest version now hosted by SourceForge. (https://sourceforge.net/projects/libmss/) I even downloaded the source files from the CVS there to get some recent bug fixes. > I tried to compile this library but without success :-( I checked OpenWatcom & Digital Mars IDEs/compilers and I did not found any problem. Maybe someone from you knows how to use it with Dev-cpp ? Which compiler are you using with Dev-C++? I used Cygwin but I think MinGW also works. I've had some trouble with Borland version 5.6.4 and have submitted some bug reports for that. When compiling MSS, be sure to add -DMSS to the project C++ compiler command line. When using MSS in your own programs, add #include "c:\mss121\mss.h" to each source code .c or .cpp file. Chuck |
|
From: Josh M. <mrl...@gm...> - 2005-07-17 13:24:18
|
About the memory tool, this is my favourite. It's simple, easy, and all you need to do is include the header to use it. The output is extremely helpful as well. From the website: "Memory Manager (a.k.a. "MMGR") MMGR is an industrial-strength memory manager for almost any project. Not only will MMGR probably point out some bugs you never knew you had, but it is also a great development tool. Among other standard tracking tools (overruns/underruns, deallocation mismatches, etc.), MMGR also provides a rich featureset of developer tools. For example, it allows you to set a breakpoint on an arbitrary allocation, generate a snapshot report of memory currently in use, etc. You can even ask MMGR to track how much of your allocated RAM is actually in use (nothing worse than allocating 64MB of memory just to find that you only needed 2K. :)" http://www.fluidstudios.com/pub/FluidStudios/MemoryManagers/Fluid_Studios_M= emory_Manager.zip Josh On 7/17/05, Fibre Optic <fib...@go...> wrote: > Hi, >=20 > does anyone tried to use MSS > (http://hem.passagen.se/blizzar/mss/mssdoc.html) with Dev-cpp ??? I > tried to compile this library but without success :-( I checked > OpenWatcom & Digital Mars IDEs/compilers and I did not found any > problem. Maybe someone from you knows how to use it with Dev-cpp ? >=20 > BTW >=20 > I am looking for good library to detect memory management problems i.e. > memory leaks. Could someone of you you suggest good tool ??? >=20 >=20 > Regards, > Fibre Optic >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dclic= k > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Per W. <pw...@ia...> - 2005-07-17 09:29:20
|
Note that it is easier to do direct bit manipulations using the shift
operator.
unsigned char val = 0x25; // number to print
mask = 0x80; // start from most significant bit
while (mask) {
printf("%d",(val & mask) != 0);
mask >>= 1;
}
Also don't forget that checking a specific bit in a number is just:
if (num & (1 << bitpos)) {
...
}
Setting the bit is:
num |= 1 << bitpos;
Clearing it is:
num &= ~(1 << bitpos);
/Per W
On Sat, 16 Jul 2005, Roger Furer wrote:
> Aloha from Honolulu,
> I have a little c program for studying bit operators. I'm trying to
> print out a byte in binary form. My first 'for' loop increments the
> index 'i' and works fine, but the number reads backwards. I tried the
> same thing but with an index that is decremented 'x--', but the loop
> never executes. Can anyone help?
> Here is the program:
|
|
From: Fibre O. <fib...@go...> - 2005-07-17 04:03:31
|
Hi, does anyone tried to use MSS (http://hem.passagen.se/blizzar/mss/mssdoc.html) with Dev-cpp ??? I tried to compile this library but without success :-( I checked OpenWatcom & Digital Mars IDEs/compilers and I did not found any problem. Maybe someone from you knows how to use it with Dev-cpp ? BTW I am looking for good library to detect memory management problems i.e. memory leaks. Could someone of you you suggest good tool ??? Regards, Fibre Optic |
|
From: Roger F. <ra...@ha...> - 2005-07-17 01:30:03
|
Aloha from Honolulu,
Nevermind.
I figured it out. The 'for ( x = 8;' is Ok, but the 'x < 1' is
false, so the loop never executes.
I changed it to 'x > 0' and used 'bits[x-1]', now everything works.
Mahalo,
Roger
|
|
From: Roger F. <ra...@ha...> - 2005-07-17 01:22:03
|
Aloha from Honolulu,
I have a little c program for studying bit operators. I'm trying to
print out a byte in binary form. My first 'for' loop increments the
index 'i' and works fine, but the number reads backwards. I tried the
same thing but with an index that is decremented 'x--', but the loop
never executes. Can anyone help?
Here is the program:
#include <stdio.h> // for std::cout
struct bit_def {
char b0:1;
char b1:1;
char b2:1;
char b3:1;
char b4:1;
char b5:1;
char b6:1;
char b7:1;
};
union byte_def{
struct bit_def bit;
char byte;
};
union byte_def test;
char bits[8];
void init01(char ch);
int main()
{
int i,x;
init01(0x25); // Enter a byte size number to use.
printf("test.byte & test.bit. b0 to b7:\n");
printf("test.byte = 0x%X ",test.byte);
printf("\n");
for(i=0;i<8;i++)
printf("%c",bits[i]);
printf("\n");
printf("Here we are entering the decrement loop...\n");
for ( x = 8; x < 1; x-- ) // Why doesn't anything in the loop execute?
printf("%c",bits[x-1]);
printf("Here we are after the decrement loop.\n");
printf("\n");
system("PAUSE");
return 0;
}
void init01(char ch)
{
test.byte = ch;
if(test.byte & test.bit.b0) bits[0]='1';
else bits[0]='0';
if(test.byte & test.bit.b1) bits[1]='1';
else bits[1]='0';
if(test.byte & test.bit.b2) bits[2]='1';
else bits[2]='0';
if(test.byte & test.bit.b3) bits[3]='1';
else bits[3]='0';
if(test.byte & test.bit.b4) bits[4]='1';
else bits[4]='0';
if(test.byte & test.bit.b5) bits[5]='1';
else bits[5]='0';
if(test.byte & test.bit.b6) bits[6]='1';
else bits[6]='0';
if(test.byte & test.bit.b7) bits[7]='1';
else bits[7]='0';
}
Mahalo (Thank You),
Roger
|
|
From: <and...@su...> - 2005-07-16 22:46:40
|
Dear Users, Sorry about the off-devC++ topic, but I would like to know if there is anybody here that works with Borland C++ Builder 5 or 6. More one question: anybody of you gentlemen, know where there is a moderated, serious and good Borland C++ Builder forum? Regards Andre -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.16/50 - Release Date: 15/7/2005 |
|
From: Scott S. <ssi...@sp...> - 2005-07-16 22:43:16
|
yakir arbib wrote: > Hi to all > > I have been speaking to a lot of friends consirning programming and stuf > > And I have come to the conklution that I should swich to a .net > langwij,like c#.net or visual basic.net > > That's because my interests for now are to develop audio games [games > that are accessible to blind and vi gamers] > > There are a lot of little commpanys that develop this kind of > games,and now that "audio gaming market" has become a very big and > succesfull one [considering the number of blind or vi gamers] that > there's around. > > Now,this games use highly complikated 3d sound technics , moast of > that is dun using microsoft direct X technology,I've bin told that > c++ is an old langwij considering what there is out there now > > Like the new jeneration of .net langwijs[c#.net and visual > basic.net],now,I think it'll be better I start learning this kind of > things now,sinss this is what I wanna do > > And the problem is this: > > Firstly ,I nead someone familyar with visual basic 6 or vb.net,to tell > me a bit about it > > And another thing is that moast audio game developers I spoke to,say > it's better I'll learn vb.net other than c#.net, I'd like to know what > you think about it > > And wether you think c++ and c#.net are stronger than vb6 and vb.net > > Thanks a lot > > Regards > > yakir > C++ will still work fine for audio game development. It supports DirectX, as well as many other popular libraries, such as SDL. VB may be a little easier to learn though. If you want a site with lots of game development resources, check out www.gamedev.net. Someone there will know a lot more about audio games than I do, and should be able to help you. -- ~~Scott Simontis~~ ssi...@sp... |
|
From: yakir a. <ya...@za...> - 2005-07-16 22:09:56
|
Hi to all I have been speaking to a lot of friends consirning programming and stuf And I have come to the conklution that I should swich to a .net langwij,like c#.net or visual basic.net That's because my interests for now are to develop audio games [games that are accessible to blind and vi gamers] There are a lot of little commpanys that develop this kind of games,and now that "audio gaming market" has become a very big and succesfull one [considering the number of blind or vi gamers] that there's around. Now,this games use highly complikated 3d sound technics , moast of that is dun using microsoft direct X technology,I've bin told that c++ is an old langwij considering what there is out there now Like the new jeneration of .net langwijs[c#.net and visual basic.net],now,I think it'll be better I start learning this kind of things now,sinss this is what I wanna do And the problem is this: Firstly ,I nead someone familyar with visual basic 6 or vb.net,to tell me a bit about it And another thing is that moast audio game developers I spoke to,say it's better I'll learn vb.net other than c#.net, I'd like to know what you think about it And wether you think c++ and c#.net are stronger than vb6 and vb.net Thanks a lot Regards yakir |
|
From: yakir a. <ya...@za...> - 2005-07-16 19:37:35
|
Hi dude Thanks for that But I didn't quite get ya man You sed to open dev-c++,when I do that I get to all the things that are in the folder like"bin" and "include" I guess I should hit enter on devc.exe? And what do you mean by "hit ctlu", should I open devc.exe and just press ctlu? And isn't the command for compile control+f9, and the control to run control+f10? That is what I use when I write my codes in notepad,and later open the .cpp files in dev-c++ P.s I'm sorry for calling you jorj all the time[smile] Thanks george yakir |
|
From: Per W. <pw...@ia...> - 2005-07-16 19:21:16
|
You must make sure that the file Prototypes.cpp (strange file name by the
way since it doesn't contain function prototypes but actual
implementations...) has been added to the project. If not, the compiler
will not compile it (no Prototypes.o generated) and the linker will not
link it.
/Per W
On Sat, 16 Jul 2005, Fred J. wrote:
> Hello
> I have this linker error which makes me think that the
> definition file is not being seen by the linker, this
> code is taken from "Thinking in C++, 2nd Edition,
> Volume 1, Annotated Solutions Guide"
> Using Dev-C++ 4.9.9.2, The error is:
> [Linker error] undefined reference to =91f(int)=92
> all the following files are in the same dir.
>
> thanks
>
> //: S03:Prototypes.h
> void f(int);
> ///:~
>
> //: S03:Prototypes.cpp {O}
> // Implements functions declared in Prototypes.h
> #include <iostream>
> using namespace std;
>
> void f(int i) {
> cout << "f(" << i << ") returning void\n";
> }
> ///:~
>
> //: S03:ProtoTest.cpp
> //{L} Prototypes
> #include <iostream>
> #include "Prototypes.h"
>
> int main() {
> f(1);
>
> getchar();
> return 0;
> }
|
|
From: Per W. <pw...@ia...> - 2005-07-16 19:17:03
|
You - or the tool you used - capitalized the cout symbol. Except for that, the line is correct. For now, you can program as if '\n' and endl where identical. The '\n' is more efficient, but if you mix output to multiple file streams and they are all directed to the console then you must use endl to force the output of all text of one stream before switching to output using the next stream. As have already been said in an earlier answer, the runtime library caches data and outputs it in larger blocks instead of processing each individual character. This greatly reduces the amount of work needed to send characters to the display or writing them to a file. However, because characters are cached, it is possible that an error message (output to stderr) might intermix incorrectly with normal output sent to the stdout stream. If no flush command is used, the runtime library only emit data when having "enough" characters or when file stream is closed. /Per W On Sat, 16 Jul 2005, yakir arbib wrote: > Hi > Although my screen reader uses audio to give the info about data on the > screen,I can read the pungtuation and every other simble by pressing > "home" > To get to the start of the line,and by pressing the right erro > repeetedly I can read every leter,simble and pungtuation > I really thank you for wanting to help me,and would ask you to try and > right a simple code in dev-c++ with out using the mous,I mean > Try to opperate from your desktop on til the point you compile the > code,just with the keybord,that way,you'll help me with knowing if you > can use dev-c++ only with the keybord,currently now if I wanna write a > program is: > Write the code in notepad,save the file in to my hard-drive,and open it > with dev-c++,then I press "control+f9"to compile,and "control+f10"to run > my program > But I'd be very happy if you can save me that time by giving me a > solution of using the keybord in d-c++ from the begeening of the code > writing. > Thanks > P.s can you describe me the diferens between \n"; > And <<endl; > And is this line right?: > Cout << "hi"<< "I think I'll understand it!" << "bye"<<endl; > Thanks again > yakir > |
|
From: Fred J. <ph...@ya...> - 2005-07-16 18:48:18
|
Hello
I have this linker error which makes me think that the
definition file is not being seen by the linker, this
code is taken from "Thinking in C++, 2nd Edition,
Volume 1, Annotated Solutions Guide"
Using Dev-C++ 4.9.9.2, The error is:
[Linker error] undefined reference to f(int)
all the following files are in the same dir.
thanks
//: S03:Prototypes.h
void f(int);
///:~
//: S03:Prototypes.cpp {O}
// Implements functions declared in Prototypes.h
#include <iostream>
using namespace std;
void f(int i) {
cout << "f(" << i << ") returning void\n";
}
///:~
//: S03:ProtoTest.cpp
//{L} Prototypes
#include <iostream>
#include "Prototypes.h"
int main() {
f(1);
getchar();
return 0;
}
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|
|
From: yakir a. <ya...@za...> - 2005-07-16 18:16:47
|
Hi Although my screen reader uses audio to give the info about data on the screen,I can read the pungtuation and every other simble by pressing "home" To get to the start of the line,and by pressing the right erro repeetedly I can read every leter,simble and pungtuation I really thank you for wanting to help me,and would ask you to try and right a simple code in dev-c++ with out using the mous,I mean Try to opperate from your desktop on til the point you compile the code,just with the keybord,that way,you'll help me with knowing if you can use dev-c++ only with the keybord,currently now if I wanna write a program is: Write the code in notepad,save the file in to my hard-drive,and open it with dev-c++,then I press "control+f9"to compile,and "control+f10"to run my program But I'd be very happy if you can save me that time by giving me a solution of using the keybord in d-c++ from the begeening of the code writing. Thanks P.s can you describe me the diferens between \n"; And <<endl; And is this line right?: Cout << "hi"<< "I think I'll understand it!" << "bye"<<endl; Thanks again yakir |
|
From: William Mc C. <wil...@ms...> - 2005-07-16 02:34:50
|
Hi:
Does anyone know of any Tutorial's or C/C++ examples using TAPI.
Thanks.
Sincerely,
William McCoy
P.S. It was real simple to use under IBM's REXX. |
|
From: lordSauron <lor...@gm...> - 2005-07-16 01:58:45
|
a variable is a metaphor to express a location in memory, from which you can get (pop) the value, or change (push) the value. However, push and pop are stack-memory specific, last time I checked. Feel free to correct me. Variables are usually of class DataType, which simply means that they're of a certain type of caste. |