dev-cpp-users Mailing List for Dev-C++ (Page 624)
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: Devin C. <dcc...@ya...> - 2002-02-10 17:19:26
|
> Hey Listers: > > I am trying to learn cpp and I am trying to do a simple application with a database ( just to hold some notes, comments, etc ). I'm learning C++ too, but have the advantage of a good-but-rusty knowledge of C. There are some decentish resources on the Web for this; most importantly, http://www.mindview.com/Books has two free books on C++. I've just started vol. 1 and it goes into more depth than the many online tutorials. > I have seen around some .dat files, and they seem to be a txt file. I know that cpp can create binary file as well. '.dat' just means 'data.' It could be in either format, theoretically. > Actually, I do not know how to start, then I got a few questions: > > 1) Which one is better txt or binary? (In my application all the data is just text ) Binaries are usually smaller, since the file doesn't have to hold all the messy spaces and such. However, text files have the advantage that they can be loaded into a text editor like NotePad and examined. This is helpful while debugging, or if you want the data file to be human-readable (e.g., a payroll listing.) If you -don't- want the data to be easily human-readable (say, for a game that keeps the data for the villains in a file), then binary is the way to go. > 2) How do I create a database with txt files or binary files? Any suggestions or a good tutorial in the web? I haven't played with file I/O streams yet. There are good tutorials on the web but it takes some time to find them. The complete Coronado tutorial at http://www.swcp.com/~dodrill/controlled/cppdoc/cpptutor.html is my favourite tutorial; I don't like the format it's stored in, but it's fairly thorough. Go through the text and examples carefully. The Coronado tutorial's main strength is that it anticipates questions very well - more than once, I was scratching my head about some detail or another in an example and the tutorial text said something like 'You may be wondering about...' or 'Observant students will notice...' Your mileage will, of course, vary. Another good tutorial is http://www.zib.de/Visual/people/mueller/Course/Tutorial/tutorial.html. I don't like it as much as the Coronado tutorial, because it isn't as thorough - there's a lot that's skimped over. But it does talk about what object-oriented and modular programming are, and explains inheritance, is-a, has-a, and is-a-kind-of relationships very well. It's more geared towards theory than practice. > 3) Once it was created, how do I perform a search in database? Do I need an index table? (I don't even know how to do this) That isn't a C++ question; that's a computer science question. There are entire courses on this subject. (I've taken only half of one, but then again, I read my old computer science texts for fun every now and then.) For a first project I'd recommend just making the simplest stupidest linear searching algorithm possible, something like function data search( string SearchTarget) { while (!END_OF_DATA_FILE) { fileread name, data; if name = SearchTarget return data; } return SEARCH_FAILED; } If you write your search function 'modularly', then you can replace it later with something more sophisticated without changing any other part of the program. That's one of the main benefits of object-oriented programming. If you keep things simple, you'll have a working (if inefficient) prototype that you can change later. > I got other questions, but I think I'll start with the basic ones. > > I'd appreciate some help with this. I have been studying cpp and I have passed through all those boring tutorials about language basics. Now I want to do a real > application, simple, but real ! That's the stage I'm at. I was playing a game a few weeks ago and thought, 'You know, this game is so algorithmic and object-oriented it'd make a wonderful first C++ project.' Right now, I'm a module and a half from completing my prototype. > > Thanks in advance.... People have helped me, so I feel I ought to return the favour. :) All I can give, though, is advice from One Newbie To Another. --Devin Carless _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |
|
From: Flavio de S. <fla...@ne...> - 2002-02-10 17:03:23
|
Thank you Danny. I'd appreciate if you could send me the examples, even if they are not up= dated. I think they can give me an idea on how to start. Flavio. 10/02/02 10:59:46, Dan...@ao... wrote: > > > From: Dan...@ao... > Date: Sun, 10 Feb 2002 08:59:46 EST > > Subject:Re: [Dev-C++] Database program (how do i do that?) > To: fla...@ne... > > > > I've used both text and binary files when creating databases. The deci= ding > factors are:=20 > > 1. Data Security, if the programmer wants to make sure that the progra= m he/ > > she created can only be viewed by the App they created then use a bina= ry > file.=20 > > 2. If the programmer doesn't care if the data can be read using any te= xt > > reading App then use the text format.=20 > > 3. I prefer binary data for the reason that it's more powerful than te= xt > Apps I.E. it can be manipulated better by the program when sorting, ed= iting, > > or adding new data.=20 > > Try searching on the web for a C++ function help file. That should con= tain > information concerning both types of data files, their creation, and r= ead > > write uses.=20 > > I would send you an example but it seems the standard of C/C++ I use i= s out > of date and I won't be giving examples to others until I've brought it= up to > > date.=20 > > Good Luck,=20 > Danny Flavio de Souza fla...@ne... ICQ:78458203 Sert=E3ozinho - SP - Brasil |
|
From: Flavio de S. <fla...@ne...> - 2002-02-10 13:09:48
|
Hey Listers: I am trying to learn cpp and I am trying to do a simple application with = a database ( just to hold some notes, comments, etc ). I have seen around some .dat files, and they seem to be a txt file. I kn= ow that cpp can create binary file as well.=20 Actually, I do not know how to start, then I got a few questions: 1) Which one is better txt or binary? (In my application all the data is = just text ) 2) How do I create a database with txt files or binary files? Any sugges= tions or a good tutorial in the web? 3) Once it was created, how do I perform a search in database? Do I need= an index table? (I don't even know how to do this) I got other questions, but I think I'll start with the basic ones. I'd appreciate some help with this. I have been studying cpp and I have p= assed through all those boring tutorials about language basics. Now I wan= t to do a real=20 application, simple, but real ! Thanks in advance.... Flavio de Souza fla...@ne... ICQ:78458203 Sert=E3ozinho - SP - Brasil |
|
From: David M. <ci...@ya...> - 2002-02-10 10:46:36
|
Undefined reference means that the linker cannot find the function you are talking about a compiler does not have to worry about stuff like that the only time I get a error like that is when I forget to link with whatever library I am using(for now that is Allegro most of the time) make sure the function is visible from wherever you are calling it you may have to use an extern keyword (sorry but I don't know how to use it, my projects have not gotten that big) I have not gotten as far as the STL but I am told not to use Dev-C++'s makefiles >Message: 6 >From: "Devin Carless" <dcc...@ya...> >To: <dev...@li...> >Date: Sat, 9 Feb 2002 14:47:28 -0500 >Subject: [Dev-C++] Newbie linking errors: 'undefined reference' > > > Generally, I like to lurk and listen a bit before I post, but this >time I'm really at wit's end. > > My project, a simple game based on the old Lost Worlds >booklets, keeps generating undefined reference errors in the >linking stage. They look like this: > >d:/devin/projects/lostworlds/womanqsprototype.o(.data$_vt$11WomanQSBook+0x5c >):womanqsprototy: undefined reference to `BaseBook::Lookup(unsigned short, >unsigned short) const' > > The compiler had no problems with just such a function, but >the linker does. (I'm using Dev-C++ 4 with MinGW 2.95.2, >with the -v -H flags for the linker.) I don't know what >'undefined reference' means, and nowhere on the Net (that Google >can find) is there a document that tells me, either. > Sometimes I can temporarily make them go away with cosmetic >changes to the code: moving a function definition from the .cpp to >the .h, moving a function declaration in the .h, etc., seems to work >for individual errors. But whenever I add a new module they >come back again, twice as plentiful. > > I thought it might be STL and vectors, but changing my >container implementation to use arrays didn't help. So it's not, as >I thought, STL's fault. It might be a link order problem, so I >used the Make Makefile function and tried to do things from the >command line. However, I can't get make to work with the >Dev-C++'s makefiles: it gives me errors like '**18: Multiple >targets.' And Dev-C++'s Project Options only asks for >-additional- arguments to pass to the linker. > So I'm really getting demoralized. This problem has held me >up for three days now. I'd very much appreciate some assistance. > > It has been suggested I provide a code fragment, but since the >errors seem to be independent of legality of the code, and only >crop up when the projects gets big, I don't see how it would help. >However, I will provide such a thing if asked, though I really have >no idea what could be relevant to the problem. > >--Devin Carless |
|
From: A. E. H. <ze...@ze...> - 2002-02-10 05:59:01
|
Your mail received. Thank You, A. Erdogan Horzum www.zetamuhendislik.com |
|
From: Ioannis V. <no...@ya...> - 2002-02-10 05:45:08
|
asm("command");
Ioannis
* Ioannis Vranos
* Programming pages: <http://www.noicys.d2g.com/>
http://www.noicys.d2g.com
* Alternative URL: <http://run.to/noicys> http://run.to/noicys
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Nick J
Sent: Sunday, February 10, 2002 5:32 AM
To: dev...@li...
Subject: [Dev-C++] "asm"...is it possible?
Hiyoo! I don't know if this has been asked yet, but...how is the asm
keyword used in Dev-C++? Is it usable at all? Just wondering...
BTW, I've only tried it in 4...updating to 4.01 now!
|
|
From: Nick J <Jam...@wo...> - 2002-02-10 03:39:05
|
Hiyoo! I don't know if this has been asked yet, but...how is the asm = keyword used in Dev-C++? Is it usable at all? Just wondering... BTW, I've only tried it in 4...updating to 4.01 now! |
|
From: Brian C. B. <bcb...@ya...> - 2002-02-10 02:14:06
|
Hi, > Does anyone know any progress of Dev-C++ 5? From the Dev-C++ website at www.bloodshed.net: February 5 2002 : there has been more than 1 000 000 visitors to bloodshed.net !!! Thank you for your support during those years :) News : a Dev-C++ 5 beta should be released at the end of February/start of March. Sincerely, Brian Becker Shall we accept good from God, and not trouble? --- Outgoing mail is certified Virus Free by AVG Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.320 / Virus Database: 179 - Release Date: 1/30/2002 |
|
From: Alvin C G. <vin...@ed...> - 2002-02-10 00:50:48
|
>The program Dev-C++, is currently only aviable in English. >I think it is a good idea, when you programme a multi-language patch. >For example in the folling important's languages: > >German, French. I think its already under works... The next version, Dev-C++ 5 promises multilingual support (I think) and is under works. The last time I looked at the CVS Repository of Dev-C++, the version was 4.9 and that was last year. I don't know when they're going to release or finish it. But you may download versions from the Dev-C++ CVS repository. Although I'm having trouble downloading them. Bear in mind that if you are going to try out the versions from the CVS Repository, you will have to download two files - the DevCpp.exe and the language file (I don't know the file name). I also don't know if there are already language files for French and German. But it would be better to wait for the next release of Dev-C++ Does anyone know any progress of Dev-C++ 5? __________________________________ www.edsamail.com |
|
From: Alvin C G. <vin...@ed...> - 2002-02-10 00:50:47
|
I'm having trouble creating transparent windows... I create the window with WS_EX_TRANSPARENT style and CreateWindowEx returns a valid handle. Now, that the window is created, while the application is running, the desktop doesn't update(it doest draw itself). The code might rather be long and slightly unreadable but I'll send it to anyone's request. Does anyone have any idea why this is happening? Basically, What I wanted to do was to hide a window from the sight of the user as well as from the taskbar. I don't want the user know it is running. And would still receive window messages, waiting until I Log off the computer or Shutdown the computer (in this case, it would recieve a WM_QUIT Message, and the program should exit). If I tried to loop the program (not using any window), the system would consider it not responding. Also the program would'nt know when to stop. Does anyone know any alternative to do this. __________________________________ www.edsamail.com |
|
From: Werner L. <wer...@ho...> - 2002-02-09 23:42:48
|
To compares the running time of merge sort to the running time of insertion sort. What is the Asymptotic behavior of merge sort and insertion sort? _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx |
|
From: Devin C. <dcc...@ya...> - 2002-02-09 23:22:37
|
> It may be for 1000 reasons, e.g. wrong or absense of definition of > ManVec, wrong operator[] definition for ManVec e.t.c.. > > Had you included the .cpp file in the project? Also if you have the > definition of a class in a .cpp file you must include a declaration of > the class in the scope you use it. For example: I managed to solve the problem. Three problems, actually, and all within an hour - this has been holding me up several days. Two were not subtle; one was. The first I noticed was that I'd fogotten to give an important destructor its due and had simply declared it as ~BaseBook();. I'd forgotten Destructors Need Definitions Too. Whoops one. The second was when I investigated a called function, rather than the calling function. I thought the calling functions were the problem, since they were all in the same place. But it turns out one function really was undefined. Whoops two. The third was more confusing. Apparently 'inline' isn't as benign as I've been told. Removing the 'inline' keyword from functions removed the corresponding undefined reference errors. But it's working now, and I'm happy as a programmer in a room with no lights sources other than a CRT. > Yes i am sure it is noy error from the compiler... May i suggest a great > C++ book? "The C++ Programming Language" 3rd Edition or Special Edition > by Bjarne Stroustrup, the creator of C++. And he doesn't teaches only > C++ but very useful techniques and software engineering. Definitely a > great book! I have a problem in that area. The university I live near has a wonderful math faculty/CS department. The library isn't good, but there are still 200+ titles dealing with C++. But...they're all out. The C++ section in the library is half a shelf. Cobol has two whole shelves. /Every/ primer or introduction to C++ is out, with a few second-rate exceptions (e.g., compiler-specific books, ones that are years out of date, etc.) I think I'll recall them all. Right before exams. --Devin _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |
|
From: Ioannis V. <no...@ya...> - 2002-02-09 22:50:16
|
> -----Original Message-----
> From: Ioannis Vranos [mailto:no...@ya...]
> Sent: Sunday, February 10, 2002 12:10 AM
> To: Dev-C++ (dev...@li...)
> Subject: RE: [Dev-C++] Newbie linking errors: 'undefined reference'
>
>
> Had you included the .cpp file in the project? Also if you
> have the definition of a class in a .cpp file you must
> include a declaration of the class in the scope you use it.
> For example:
>
>
> in the a.cpp file:
>
> class A
> {
> // definition
> };
>
>
> in the file you use it:
>
>
> class A;
>
> A a;
> //..
This is a mistake. You must provide the class definition in every
compilation unit (file) before its use. So better put the class
definition in a header file.
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.d2g.com
* Alternative URL: http://run.to/noicys
|
|
From: Ioannis V. <no...@ya...> - 2002-02-09 22:10:00
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Devin Carless
> Sent: Saturday, February 09, 2002 11:55 PM
> To: Ioannis Vranos
> Cc: dev...@li...
> Subject: Re: [Dev-C++] Newbie linking errors: 'undefined reference'
>
> That's roughly what I thought. The function is, indeed,
> mine; I'm not using a graphics library. (The game is that
> simple.) I do have a definition in BaseBook.cpp. The
> definition refers to an object contained in the private
> section of BaseBook, MoveParch, which has its own Lookup
> function (I do it this way because subclasses of BaseBook may
> want to redefine BaseBook::Lookup... WomanQSPrototype.cpp is
> one of these subclasses.)
> So plainly the linker isn't /reaching/ the definition. The
> method I use does require a few daisy-chained functions
> (BaseBook::Lookup calling MoveParch::Lookup, and there are
> other, three-step ones.) I don't know if this could make a
> difference. It does not seem to depend upon the legality of the code.
>
> Ah. Genius lightbulb. Here's an example of something
> similar from a few days back:
>
> bool ManeuverList::SetManeuver( short int ManI, char* NameA, short int
> BaseModA)
> // Inlining this gives linker error 'Undefined reference
> // to ManeuverList::Setmaneuver'. Gotcha!
> // Same with the Index typedefl.
> {
> // Maneuver::Set checks to see if we can
> // set this maneuver.
> bool b;
> b = ManVec[ManI].Set( NameA, BaseModA );
> return b;
> }
>
> Index was typedefed as 'unsigned short int.' It worked
> perfectly well elsewhere. That, and making this function
> inline caused the undefined reference linker errors.
It may be for 1000 reasons, e.g. wrong or absense of definition of
ManVec, wrong operator[] definition for ManVec e.t.c..
> Previously, I was having trouble with size(): a while loop
> explicitly told me both A and B were false (where B included
> a size() function,) and A && B was false, /but while(A && B)
> would still run through./
> I don't know if that's related. But it does show the level
> of black-voodoo nbugs I'm running into. Two functions
> stopped giving errors when the definitions were moved from
> the .cpp to the .h.
Had you included the .cpp file in the project? Also if you have the
definition of a class in a .cpp file you must include a declaration of
the class in the scope you use it. For example:
in the a.cpp file:
class A
{
// definition
};
in the file you use it:
class A;
A a;
//..
An undefined reference to the
> deconstructor went away when I moved the deconstructor up a
> few lines! So whatever is wrong, it's subtle - too subtle for me.
Yes i am sure it is noy error from the compiler... May i suggest a great
C++ book? "The C++ Programming Language" 3rd Edition or Special Edition
by Bjarne Stroustrup, the creator of C++. And he doesn't teaches only
C++ but very useful techniques and software engineering. Definitely a
great book!
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.d2g.com
* Alternative URL: http://run.to/noicys
|
|
From: Devin C. <dcc...@ya...> - 2002-02-09 21:51:23
|
> BaseBook::Lookup(unsigned short, unsigned short) const
>
> Probably it has to do with the graphics library you use.
>
> Either there is no such thing in the library you use or if the construct
> is yours you have not provided a definition.
That's roughly what I thought. The function is, indeed, mine; I'm not
using a graphics library. (The game is that simple.) I do have a
definition in BaseBook.cpp. The definition refers to an object
contained in the private section of BaseBook, MoveParch, which has
its own Lookup function (I do it this way because subclasses of
BaseBook may want to redefine BaseBook::Lookup...
WomanQSPrototype.cpp is one of these subclasses.)
So plainly the linker isn't /reaching/ the definition. The method I
use does require a few daisy-chained functions (BaseBook::Lookup
calling MoveParch::Lookup, and there are other, three-step ones.)
I don't know if this could make a difference. It does not seem to
depend upon the legality of the code.
Ah. Genius lightbulb. Here's an example of something similar
from a few days back:
bool ManeuverList::SetManeuver( short int ManI, char* NameA, short int
BaseModA)
// Inlining this gives linker error 'Undefined reference
// to ManeuverList::Setmaneuver'. Gotcha!
// Same with the Index typedefl.
{
// Maneuver::Set checks to see if we can
// set this maneuver.
bool b;
b = ManVec[ManI].Set( NameA, BaseModA );
return b;
}
Index was typedefed as 'unsigned short int.' It worked perfectly
well elsewhere. That, and making this function inline caused the
undefined reference linker errors. Previously, I was having trouble
with size(): a while loop explicitly told me both A and B were false
(where B included a size() function,) and A && B was false, /but
while(A && B) would still run through./
I don't know if that's related. But it does show the level of
black-voodoo nbugs I'm running into. Two functions stopped giving
errors when the definitions were moved from the .cpp to the .h. An
undefined reference to the deconstructor went away when I moved
the deconstructor up a few lines! So whatever is wrong, it's subtle -
too subtle for me.
--Devin
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
|
|
From: Ioannis V. <no...@ya...> - 2002-02-09 20:54:23
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Devin Carless > Sent: Saturday, February 09, 2002 9:47 PM > To: dev...@li... > Subject: [Dev-C++] Newbie linking errors: 'undefined reference' > > > > Generally, I like to lurk and listen a bit before I post, > but this time I'm really at wit's end. > > My project, a simple game based on the old Lost Worlds > booklets, keeps generating undefined reference errors in the > linking stage. They look like this: > > d:/devin/projects/lostworlds/womanqsprototype.o(.data$_vt$11Wo > manQSBook+0x5c > ):womanqsprototy: undefined reference to > `BaseBook::Lookup(unsigned short, unsigned short) const' > > The compiler had no problems with just such a function, but > the linker does. (I'm using Dev-C++ 4 with MinGW 2.95.2, > with the -v -H flags for the linker.) I don't know what > 'undefined reference' means, and nowhere on the Net (that Generally "undefined reference" means there is no definition for such thing. In your case BaseBook::Lookup(unsigned short, unsigned short) const Probably it has to do with the graphics library you use. > Google can find) is there a document that tells me, either. > Sometimes I can temporarily make them go away with cosmetic > changes to the code: moving a function definition from the > .cpp to the .h, moving a function declaration in the .h, > etc., seems to work for individual errors. But whenever I > add a new module they come back again, twice as plentiful. > > I thought it might be STL and vectors, but changing my > container implementation to use arrays didn't help. So it's > not, as I thought, STL's fault. It might be a link order No relation to STL. > problem, so I used the Make Makefile function and tried to do > things from the command line. However, I can't get make to > work with the > Dev-C++'s makefiles: it gives me errors like '**18: Multiple > targets.' And Dev-C++'s Project Options only asks for > -additional- arguments to pass to the linker. > So I'm really getting demoralized. This problem has held > me up for three days now. I'd very much appreciate some assistance. > > It has been suggested I provide a code fragment, but since > the errors seem to be independent of legality of the code, > and only crop up when the projects gets big, I don't see how > it would help. However, I will provide such a thing if asked, > though I really have no idea what could be relevant to the problem. > > --Devin Carless Either there is no such thing in the library you use or if the construct is yours you have not provided a definition. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.d2g.com * Alternative URL: http://run.to/noicys |
|
From: A. E. H. <ze...@ze...> - 2002-02-09 20:10:30
|
Your mail received. Thank You, A. Erdogan Horzum www.zetamuhendislik.com |
|
From: Devin C. <dcc...@ya...> - 2002-02-09 19:44:17
|
Generally, I like to lurk and listen a bit before I post, but this time I'm really at wit's end. My project, a simple game based on the old Lost Worlds booklets, keeps generating undefined reference errors in the linking stage. They look like this: d:/devin/projects/lostworlds/womanqsprototype.o(.data$_vt$11WomanQSBook+0x5c ):womanqsprototy: undefined reference to `BaseBook::Lookup(unsigned short, unsigned short) const' The compiler had no problems with just such a function, but the linker does. (I'm using Dev-C++ 4 with MinGW 2.95.2, with the -v -H flags for the linker.) I don't know what 'undefined reference' means, and nowhere on the Net (that Google can find) is there a document that tells me, either. Sometimes I can temporarily make them go away with cosmetic changes to the code: moving a function definition from the .cpp to the .h, moving a function declaration in the .h, etc., seems to work for individual errors. But whenever I add a new module they come back again, twice as plentiful. I thought it might be STL and vectors, but changing my container implementation to use arrays didn't help. So it's not, as I thought, STL's fault. It might be a link order problem, so I used the Make Makefile function and tried to do things from the command line. However, I can't get make to work with the Dev-C++'s makefiles: it gives me errors like '**18: Multiple targets.' And Dev-C++'s Project Options only asks for -additional- arguments to pass to the linker. So I'm really getting demoralized. This problem has held me up for three days now. I'd very much appreciate some assistance. It has been suggested I provide a code fragment, but since the errors seem to be independent of legality of the code, and only crop up when the projects gets big, I don't see how it would help. However, I will provide such a thing if asked, though I really have no idea what could be relevant to the problem. --Devin Carless _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |
|
From: <a-...@t-...> - 2002-02-09 13:09:12
|
Hallo. I've got a Question, or better a suggest for you. I'm sorry for my bad English!! The program Dev-C++, is currently only aviable in English. I think it is a good idea, when you programme a multi-language patch. For example in the folling important's languages: German, French. What do you think about this suggest?? Best gerating from Germany. Alrik Adam |
|
From: Ioannis V. <no...@ya...> - 2002-02-09 06:49:25
|
I have not depthen extremely on the subject, but CLR is more efficient than JVM, at least the time it was designed (JVM may have adopted CLR features since then). For example a program when run the first time on CLR gets many of its parts compiled permanently to win32 code so at the end the .exe is something like an hybrid between binary code and bytecode. Also it is not restricted to one language but all languages share a common hierarchy and can interoperate with each other. So you pick e.g. C and another person Javascript and you can build a program using both languages. The good in C/C++ case is that by default VC++ 7 does not produce bytecode but pure 32-bit exe (it is the only language that can produce binary code in VS). When you produce pure binary code it is called unmanaged code and when you produce bytecode your source code is called managed. The other great thing with C/C++ in .NET world is that you can create pure binary code (that is it runs outside the virtual machine) so as to have the maximum efficiency and create a .NET interface for the other languages to interoperate with your code. The bad news is that VC++ 7 will not be so ANSI/ISO C++ compliant (probably they do not care/want standard compliance a lot) but will be more than VC++ 6. I had heared rumors during VS 7 development that VC++ 7 will not support iterators thus entering useless almost all the STL and template mechanism. But things may have changed since then (but i do not think so). They had stated that "100% ANSI/ISO conformance is not a goal". Anyway the important thing here is .NET and language interoperation, what IDE one should use VC++, C++ Builder, e.t.c. is personal choice. VC++ 7 is now in reality visual since it provides ala VB IDE (ready buttons e.t.c.) but it lacks a lot even from C++ Builder 5 which has anything as a component (http connections e.t.c.). That means that you will have to type a lot again to use the system extensions in VC++ 7. This month is also to be released C++ Builder 6 from Borland which i consider extremelly better for Windows C/C++ development. Also there is going to be C++ Builder for Linux. In C++ Builder 6 you can create win applications that compile both in Windows and X-Windows world using CLX library. It is the same as it happens now in Delphi 6 and Kylix (Delphi for Linux) and Collin has started creating the new Dev-C++ for both X-Windows and Windows. in C++ Builder 6 you can create even X-Windows looking applications running in Windows and in C++ Builder for Linux Windows looking applications running in X-Windows. In a few words, you create an application dragging components like buttons e.t.c. on a form and the program compiles both in windows and x-windows and looks the same. You can download a trial version of C++ Builder at: <http://www.borland.com/downloads/> http://www.borland.com/downloads/ If you have any questions, ask. :) Ioannis * Ioannis Vranos * Programming pages: <http://www.noicys.d2g.com/> http://www.noicys.d2g.com * Alternative URL: <http://run.to/noicys> http://run.to/noicys -----Original Message----- From: Yeoh HS [mailto:ye...@ya...] Sent: Saturday, February 09, 2002 8:36 AM To: Ioannis Vranos Subject: Re: [Dev-C++] infos on NET This sounds familiar. Another virtual machine and auto garbage collector! :-) Sorry if this is off-topic, just a thought: how different is this CLR from JVM? Regards, Yeoh |
|
From: David M. <ci...@ya...> - 2002-02-09 06:21:34
|
ok the commands work but now I get the following error
35 c:\windows\temp\ccgxswab.s Error: too many memory references for `mov'
36 c:\windows\temp\ccu8twab.s Error: junk `h' after expression
36 c:\windows\temp\ccu8twab.s Error: suffix or operands invalid for `int'
37 c:\windows\temp\ccu8twab.s Error: too many memory references for `mov'
#include <iostream.h>
#include <stdlib.h>
int main()
{
char x, password[50];
cout << "Please enter your password" << endl;
do{
asm("mov AH,8");
asm("int 21h");
asm("mov x,AL");
cout << "*";
} while (x != '\n');
cout << endl;
system("PAUSE");
return 0;
}
the new problem I can see is how can I have errors on lines I don't even have
(the program is 17 lines long)
|
|
From: Karin E. H. <em...@sh...> - 2002-02-08 23:15:49
|
Just out of curiosity, is any one out there working on trying to use Dev-C++ as a front end for the gcc/Cygwin tools? Live long and prosper, Karin E. Hacker Percussionist Extraordinaire ==================== (band) em...@sh... <http://www.shillelaghlaw.com> (retirement) ka...@ha... <http://www.hackergrafix.com> (hobby) ka...@us... <http://www.sourceforge.net> (work) kh...@co... <http://www.computereng.com> ==================== Give a hobbit a ghoti and he eats for a day. Give a hobbit a Ring and he eats for an Age. ==================== |
|
From: A. E. H. <ze...@ze...> - 2002-02-08 20:18:02
|
Your mail received. Thank You, A. Erdogan Horzum www.zetamuhendislik.com |
|
From: Ioannis V. <no...@ya...> - 2002-02-08 18:50:04
|
Visual Studio 7 .NET is a radical change in comparison to 6. If one is to purchase VS i strongly recommend to buy 7. This applies to its languages too. Instead of VC++ 6 i strongly recommend VC++ 7. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.d2g.com * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Benjamin Wheeless > Sent: Friday, February 08, 2002 3:43 PM > To: sp...@ho...; jsc...@gm...; > dev...@li... > Subject: Re: [Dev-C++] infos on NET > > > I would agree. From what I have read/heard, .NET is > Microsoft's newest > development platform. > > If you are looking to purchase Visual Studio 6.0, then I > would say go for > it. You get many great tools and I have been using Visual > C++ 6.0 for > several years now and really do enjoy it. > > The .NET package includes the latest Visual C++ ".NET" > environment and > incorporates the new C# (which is Microsoft's way of getting > back into the > JAVA market since they had their hands slapped on their > Visual J++ project). > > Sorry I cannot provide more information on it, but it has > been more of a > mystery and something I have stayed away from thus far. I > like my "old" > tools too much. > > Ben > > >From: "Daniel Glenfield" <sp...@ho...> > >To: jsc...@gm..., dev...@li... > >Subject: Re: [Dev-C++] infos on NET > >Date: Thu, 07 Feb 2002 16:05:27 +0000 > > > > > _________________________________________________________________ > Join the world's largest e-mail service with MSN Hotmail. > http://www.hotmail.com > |
|
From: <mr...@c2...> - 2002-02-08 13:44:43
|
> We can run programs by using CreateProcess. I get the Process' handle > from that call. And that handle I pass to GetExitCodeProcess. I then > get the exit code of the Process. If the process has not yet > terminated its termination status is STILL_ACTIVE. > > Question: If I was to run a process from my application and monitor > it(detect if it is still running), how would I do it? > > Would it be that I'll have to create loop, checking the > GetExitCodeProcess if ExitCode is STILL_ACTIVE or another value? Would > this method imply performance issues (slower system run)? or is there > another way to check if the process is still running? If you really need to know exactly when the process exits, you could set a hook to intercept the message queue of the process and look for the WM_DESTROY or WM_QUIT messages. This requires that these messages are actually used in the process, though. If it's a process without a window proc it is not a good way... If you take the hook route, it is also possible to send yourself a message when the hook DLL is detached from the process, but this is probably a bit cumbersome. If your app will be doing nothing while the other process is running, I'd just sit in a loop, waiting for the process to exit. If you are going to do other stuff concurrently, and need to know exactly when the process exits, I think maybe the hook route is the best way. If you try any operations on the process handle, they will fail if the process has terminated, so that is also a way to test if the process is still running. -=D8yvind --------------------------------- mr...@c2... @ work |