dev-cpp-users Mailing List for Dev-C++ (Page 259)
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: Oleksandr Y. <erm...@ma...> - 2004-01-30 18:26:29
|
Hello Miguel,
Thursday, January 29, 2004, 3:18:56 AM, you wrote:
MRJ> On Wed, 2004-01-28 at 09:04, Oleksandr Yermolenko wrote:
>> Hi all,
>> Little question about delete operator.
>> Can i fall into trouble when making a call "delete this" in the
>> class member function ?
>> =20
MRJ> What do you mean exactly by "falling into trouble"? Obviously, the f=
irst
MRJ> think one thinks at seeing that is the risk of dangling references.
Initially i saw this "delete this" technique in some OO library.
The purpose of using this techinque was to implement
self-deleting of object if there are no references left.
Something like that:
inline CGObject::AddRef()
{
return ++m_iRefCount;
}
inline CGObject::Release()
{
m_iRefCount--;
if (m_iRefCount=3D=3D0) //destroy object
{
delete this;
return 0;
}
return m_iRefCount;
} =20
MRJ> Any
MRJ> reference to that struct instance will be invalid.
Yes, of course. But there is some another problem.
This technique works well on objects contructed with "new"
operator.
But objects can have also "auto" and "static" memory class.
So, this technique must set restriction to construct objects of
such class only dynamically(using "new").
So, may be you can use "delete this" if you know exactly what you
are doing. But is this allowed in ISO/ANSI C++ ?
MRJ> And second, valgrind
MRJ> prompts the following when executing the snippet of code you sent:
MRJ> [...]
MRJ> The most important part is the 'Invalid free' line. I am unsure abou=
t
MRJ> this, but I would assume that it is a synonym of "heap corruption".
Very interesting. I haven't use valgrind at this problem.
I will try it soon.
MRJ> Seems that gcc guys care about people not shooting on their feet ;)
MRJ> Miguel.
MRJ> PS: Quite offtopic, but does anybody know if valgrind is available a=
s a
MRJ> cygwin package?
I don't know. But does valgrind group plan to produce some
*STABLE* release even for linux ? As far as i know it is available
only by CVS.
P.S.: Sorry for my english.
--=20
Best regards,
Oleksandr mailto:erm...@ma...
|
|
From: Per W. <pw...@ia...> - 2004-01-30 18:12:44
|
If you make changes to header files - changing declaration of structs for example - you might get into problems, since Dev-C++ depending on dependency settings sometimes doesn't recompile all affected source files. The result then will most of the time be a spectacular failure of the program. A complete rebuild later and everything is back to normal. By the way, please enlighten me what 'well-spaced code' is, and how that affects the hehaviour of the program. /Per W On Wed, 28 Jan 2004, Nicholas O. Rawlings wrote: > Hey there! > > I'm writing a string class as part of a school project. Sometimes when I > compile the class in a test program and run it, I get an error message > saying "NSTRING.EXE has generated errors and will be closed by Windows. You > will need to restart the program. An error log is being created." If I > re-compile with the exact same source code, the problem goes away and the > test program runs perfectly. I'm using version 4.9.8.5 on Windows 2000. I > have about 1300 lines of well-spaced code, but it seems unlikely to me that > this could be too much for mingw or for my computer to handle. Any ideas? > > Nicholas > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > 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: Reid T. <rei...@at...> - 2004-01-30 17:29:42
|
http://www.linuxgazette.com/issue74/tougher.html http://linuxgazette.net/issue79/tougher.html http://www.cuj.com/documents/s=8019/cuj0112pee/ http://codeguru.earthweb.com/network/index.shtml http://www.linuxsocket.org/ http://www.cs.cf.ac.uk/Dave/C/CE.html http://www.cs.cf.ac.uk/Dave/C/node28.html#SECTION002800000000000000000 http://www.lowtek.com/sockets/ OROSZI Balázs wrote: > Sami Barakat wrote: > >> I have been learning C++ for about 4 months now from online free >> resources and i feel that i would like to gain a better understanding >> of the language and become more advanced at it. I know 4 months isn't >> much time but I have done programming in PHP before and grasped the >> basics of C++ pretty easily. >> I am simply asking people from the list if they could recommend any >> GOOD C++ programming books that are not Visual Studio, because i would >> like to program on Linux as well as Windows without having to do major >> changes to the code, so will be using the gcc compiler all the time. >> It would also be nice if the book could explain how to program using >> sockets ( I know they are different for Windows and Linux ). I am >> doing this more as a hobby at the moment and maybe later on take a >> course at uni in it. Im not too bothered about how much the book may >> cost, all i am really interested in is the clarity of the book and how >> far i can go with it ( I want to go far :) ). > > > Well, the de facto standard book is Bjarne Stroustrup: The C++ > Programming Language. It has everything about C++, but it can be a bit > too techy sometimes. But I think that's not a problem for you, as you > already learned C++, so I recommend that book. It describes OO > programming in general with C++, exceptions, classes, etc. - all aspects > of C++ in general, and quite well. Also, it describes the STL, and all > what it has plus how to use it efficiently. As it discusses C++ and STL > generally (presents the C++ standard), it can be considered platform > independent. > > As you told you learned programming, AND also C++, I think this book > will be the best for you. You'll find everything inside what you might > ever need. > > -- > Greetings, > Balázs > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > 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: Daniel W. <dan...@ta...> - 2004-01-30 16:39:34
|
I am trying to compile a basic example from the openGL site, alpha3d.c. (http://www.opengl.org/resources/code/basics/redbook/index.html) =20 At first I was getting a number of undefined references. =20 =20 After going through a number of postings on bloodshed for including links, then not including some links but try this link, I am down to two linker errors...=20 =20 g++: Compilation of header file requested g++: file path prefix `C:\DEV-C_~1\Bin\' never used Here are the two files I have linked in...=20 C:\Dev-C++\Include\Gl\glut.h=20 C:\Dev-C++\Lib\glut32.lib =20 I have also set the comppiler option to support All ANSI C.=20 =20 And here are the include lines at the opening of the script...=20 =20 #include <Gl/glut.h> #include <stdlib.h> #include <stdio.h> =20 Is there a certain order the includes should be in?=20 I am using glut 3.7.6=20 =20 Thanks in advance,=20 DWW =20 |
|
From: Maya <Esc...@ne...> - 2004-01-30 15:03:46
|
Hi! Is there as DevPpac for gtkmm? Where can I get from? TIA -- FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: Jay B. <jay...@ni...> - 2004-01-30 14:35:18
|
PLEASE QUIT YELLING! ITS RUDE! Have you STFW? Googled? Amazoned? |
|
From: Juan J. C. L. <jua...@ya...> - 2004-01-30 06:41:42
|
Hello, I looked in the Output Debugger message, and says simply: "Executable file could not be loaded in the debugger" I changed the Project Options to reference "main.exe" as the output... = but nothing happens, the error continues... I already put the -g3 parameter = in compiler options. Juan |
|
From: <onw...@ya...> - 2004-01-29 16:51:50
|
HI ALL, PLEASE CAN ONE TELL ME WHERE TO GET A GOOD BOOK ON HOW TO WRITE GRAPHICAL PROGRAMS FOR MS DOS .ANY EBOOK OR WESITE IS APPRECIATED . OMEGA7 ________________________________________________________________________ BT Yahoo! Broadband - Free modem offer, sign up online today and save £80 http://btyahoo.yahoo.co.uk |
|
From: Scott S. <age...@co...> - 2004-01-29 14:13:09
|
I find C++ from the Ground Up to be a great reference. I know professionals who use it as a reference guide, and I am learning for it. Make sure you type in all the examples, though. Other than that, Bruce Eckel has very good books .Bjarne Stroustup's book is good for college professors and little more I have heard, but haven't read enough of it. Miguel Ramírez Jávega wrote: >>Well, the de facto standard book is Bjarne Stroustrup: The C++ >>Programming Language. It has everything about C++, but it can be a bit >>too techy sometimes. But I think that's not a problem for you, as you >>already learned C++, so I recommend that book. It describes OO >>programming in general with C++, exceptions, classes, etc. - all aspects >>of C++ in general, and quite well. Also, it describes the STL, and all >>what it has plus how to use it efficiently. As it discusses C++ and STL >>generally (presents the C++ standard), it can be considered platform >>independent. >> >> >> > >You might also find interesting the two volumes by Bruce Eckel ( if you >don't know them already ): > >http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html > >the first volume could be the least interesting for you, but the second >one contains a lot of wisdom. Also the Effective C++, More Effective C++ >and Effective STL books by the "Man with a Dog" (Scott Meyers), contain >also substantial wisdom. > >To round-up your STL knowledge, the doxygenated gnu's libstdc++ >documentation is, in my opinion, the most practical STL reference >around. You can find it here: >http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-3.3/index.html > >And when you reach the "trascending" state you might want to peek >Andrei Alexandrescu's "Modern C++ Design". You won't believe your eyes >when you see the code snippets. > >Miguel. > > > >------------------------------------------------------- >The SF.Net email is sponsored by EclipseCon 2004 >Premiere Conference on Open Tools Development and Integration >See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. >http://www.eclipsecon.org/osdn >_______________________________________________ >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: Reid T. <rei...@at...> - 2004-01-29 12:04:16
|
http://www.deitel.com/books http://www.deitel.com/books/downloads.html#cppHTP4 Nothing specific to sockets here, but you should be able to find that easily enough via google. Check these books out the next time you go into a bookstore. I have the first edition C++ book and it does a good job of explaining C++ programming. I've seen/looked through a co-workers java version of their book, and would say the same about it. You may also be able to view/utilize these books from one of the 'online libraries' via a subscription. If you can't find the socket info you're looking for, email me back. yanked and put from the second link above: Book Information * Table of Contents * Preface * Tour of the Book * Errata * Installing the Apache 2.0 Web Server for Microsoft Windows Downloads Examples (377K ZIP) Updated Fig. 22.5: Fig22_05.cpp Deitel® Deitel® Dive-Into™ Series Publications: * Dive Into GNU C++ on Linux (460K, DRAFT PDF in ZIP file) * Dive Into GNU C++ with CygWin on Windows (578K, DRAFT, PDF in ZIP file) * Dive Into Microsoft Visual C++ .NET (1.2MB, DRAFT PDF in ZIP file) * Dive Into Microsoft Visual C++ 6 (360K PDF) (Formerly Getting Started With Microsoft Visual C++) Example used to introduce the debugger * Dive Into Borland C++ 5.5 (123K PDF) (Formerly Getting Started with Borland C++ 5.5) PowerPoint Lecture Slides reid OROSZI Balázs wrote: > Sami Barakat wrote: > >> I have been learning C++ for about 4 months now from online free >> resources and i feel that i would like to gain a better understanding >> of the language and become more advanced at it. I know 4 months isn't >> much time but I have done programming in PHP before and grasped the >> basics of C++ pretty easily. >> I am simply asking people from the list if they could recommend any >> GOOD C++ programming books that are not Visual Studio, because i would >> like to program on Linux as well as Windows without having to do major >> changes to the code, so will be using the gcc compiler all the time. >> It would also be nice if the book could explain how to program using >> sockets ( I know they are different for Windows and Linux ). I am >> doing this more as a hobby at the moment and maybe later on take a >> course at uni in it. Im not too bothered about how much the book may >> cost, all i am really interested in is the clarity of the book and how >> far i can go with it ( I want to go far :) ). > > > Well, the de facto standard book is Bjarne Stroustrup: The C++ > Programming Language. It has everything about C++, but it can be a bit > too techy sometimes. But I think that's not a problem for you, as you > already learned C++, so I recommend that book. It describes OO > programming in general with C++, exceptions, classes, etc. - all aspects > of C++ in general, and quite well. Also, it describes the STL, and all > what it has plus how to use it efficiently. As it discusses C++ and STL > generally (presents the C++ standard), it can be considered platform > independent. > > As you told you learned programming, AND also C++, I think this book > will be the best for you. You'll find everything inside what you might > ever need. > > -- > Greetings, > Balázs > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > 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: John D A. L. S. I. <joh...@le...> - 2004-01-29 11:43:19
|
We're in desperate need of contract help for c++/ linux or Unix based application. 6 month need .. we have budget for a serious coder.. so the high dollars are there for the right person. We have a new office in San Jose. anyways.. may be of help to a group member or a friend cheers John John D Allen. CEO & President. Leveridge Systems INC. |
|
From: Watson D. <wa...@wa...> - 2004-01-29 04:43:59
|
Sunday, January 25, 2004, 9:00:20 AM, you wrote: SB> Hi, I have been learning C++ for about 4 months now from online free SB> resources and i feel that i would like to gain a better understanding SB> of the language and become more advanced at it. I know 4 months isn't SB> much time but I have done programming in PHP before and grasped the SB> basics of C++ pretty easily. I am simply asking people from the list if SB> they could recommend any GOOD C++ programming books that are not Visual SB> Studio, because i would like to program on Linux as well as Windows SB> without having to do major changes to the code, so will be using the SB> gcc compiler all the time. It would also be nice if the book could SB> explain how to program using sockets ( I know they are different for SB> Windows and Linux ). I am doing this more as a hobby at the moment and SB> maybe later on take a course at uni in it. Im not too bothered about SB> how much the book may cost, all i am really interested in is the SB> clarity of the book and how far i can go with it ( I want to go far :) SB> ). I'm just picking up C++ myself (after years of C, Pascal, Basic, Fortran, Tal, PL/SQL, Cobol, Scobol, Clips, Clipper and... uh... others) and here are the books I've read and liked so far: The C++ Programming Language by Stroustrup It's kinda like the Bible of C++. Thinking in C++ by Eckel. You can either buy this or you can read it online for free. Effective C++ by Meyers. This one cleared up a lot of questions I didn't even know I had. I was making all sorts of mistakes with my objects (like not creating copy constructors and things like that) until I read this book. HTH. Watson (the pencil neck) Davis |
|
From: Miguel <mra...@iu...> - 2004-01-29 01:53:25
|
> Well, the de facto standard book is Bjarne Stroustrup: The C++ > Programming Language. It has everything about C++, but it can be a bit > too techy sometimes. But I think that's not a problem for you, as you > already learned C++, so I recommend that book. It describes OO > programming in general with C++, exceptions, classes, etc. - all aspects > of C++ in general, and quite well. Also, it describes the STL, and all > what it has plus how to use it efficiently. As it discusses C++ and STL > generally (presents the C++ standard), it can be considered platform > independent. > You might also find interesting the two volumes by Bruce Eckel ( if you don't know them already ): http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html the first volume could be the least interesting for you, but the second one contains a lot of wisdom. Also the Effective C++, More Effective C++ and Effective STL books by the "Man with a Dog" (Scott Meyers), contain also substantial wisdom. To round-up your STL knowledge, the doxygenated gnu's libstdc++ documentation is, in my opinion, the most practical STL reference around. You can find it here: http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-3.3/index.html And when you reach the "trascending" state you might want to peek Andrei Alexandrescu's "Modern C++ Design". You won't believe your eyes when you see the code snippets. Miguel. |
|
From: Miguel <mra...@iu...> - 2004-01-29 00:28:52
|
On Wed, 2004-01-28 at 09:04, Oleksandr Yermolenko wrote: > Hi all, > Little question about delete operator. > Can i fall into trouble when making a call "delete this" in the > class member function ? > What do you mean exactly by "falling into trouble"? Obviously, the first think one thinks at seeing that is the risk of dangling references. Any reference to that struct instance will be invalid. And second, valgrind prompts the following when executing the snippet of code you sent: ==1912== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux. ==1912== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward. ==1912== Using valgrind-2.0.0, a program supervision framework for x86-linux. ==1912== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward. ==1912== Estimated CPU clock rate is 1610 MHz ==1912== For more details, rerun with: -v ==1912== ==1912== Invalid free() / delete / delete[] ==1912== at 0x40029DF1: __builtin_delete (in /usr/lib/valgrind/vgskin_memcheck.so) ==1912== by 0x40029E1C: operator delete(void*) (in /usr/lib/valgrind/vgskin_memcheck.so) ==1912== by 0x804846A: foo::func() (in /home/bowman/Sandboxes/Experiments/delete_myself) ==1912== by 0x8048452: main (in /home/bowman/Sandboxes/Experiments/delete_myself) ==1912== Address 0xBFFFF517 is on thread 1's stack ==1912== ==1912== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) ==1912== malloc/free: in use at exit: 0 bytes in 0 blocks. ==1912== malloc/free: 1 allocs, 2 frees, 2 bytes allocated. ==1912== For a detailed leak analysis, rerun with: --leak-check=yes ==1912== For counts of detected errors, rerun with: -v The most important part is the 'Invalid free' line. I am unsure about this, but I would assume that it is a synonym of "heap corruption". Seems that gcc guys care about people not shooting on their feet ;) Miguel. PS: Quite offtopic, but does anybody know if valgrind is available as a cygwin package? |
|
From: <or...@vp...> - 2004-01-28 23:19:18
|
THE OMEGA7 wrote: > i am actually sorry . i did not know that using > capitals means shouting at some one. i was ignorant of > this fact . i hope that u all have forgiven me . > actually , its not a force to be a christian but > actually , u do have to make peope to realize the > existence of the supernatural being (GOD) in > everything we are doing okay .=20 >=20 > this msg is not to hurt any one . plz .=20 It is okay, no hurt was done, it's simply... does not belong here,=20 really. This is a programming list after all :) So lets say all is forgiven, and end this case, okay? -- Greetings, Bal=E1zs |
|
From: <or...@vp...> - 2004-01-28 21:59:51
|
Sami Barakat wrote: > I have been learning C++ for about 4 months now from online free=20 > resources and i feel that i would like to gain a better understanding o= f=20 > the language and become more advanced at it. I know 4 months isn't much= =20 > time but I have done programming in PHP before and grasped the basics o= f=20 > C++ pretty easily. > I am simply asking people from the list if they could recommend any GOO= D=20 > C++ programming books that are not Visual Studio, because i would like=20 > to program on Linux as well as Windows without having to do major=20 > changes to the code, so will be using the gcc compiler all the time. It= =20 > would also be nice if the book could explain how to program using=20 > sockets ( I know they are different for Windows and Linux ). I am doing= =20 > this more as a hobby at the moment and maybe later on take a course at=20 > uni in it. Im not too bothered about how much the book may cost, all i=20 > am really interested in is the clarity of the book and how far i can go= =20 > with it ( I want to go far :) ). Well, the de facto standard book is Bjarne Stroustrup: The C++=20 Programming Language. It has everything about C++, but it can be a bit=20 too techy sometimes. But I think that's not a problem for you, as you=20 already learned C++, so I recommend that book. It describes OO=20 programming in general with C++, exceptions, classes, etc. - all aspects=20 of C++ in general, and quite well. Also, it describes the STL, and all=20 what it has plus how to use it efficiently. As it discusses C++ and STL=20 generally (presents the C++ standard), it can be considered platform=20 independent. As you told you learned programming, AND also C++, I think this book=20 will be the best for you. You'll find everything inside what you might=20 ever need. -- Greetings, Bal=E1zs |
|
From: Steve K. <dr_...@ho...> - 2004-01-28 21:17:18
|
Is it possible for a Dev-CPP application to link a .lib file produced by MSVC++ or Digital Visual Fortran? If not, could Dev-CPP link with DLL created by g77? I sent a note to comp.lang.fortran (see bottom of message) and got the suggestion below by Jugoslav Dujic to check whether Dev-CPP and DVF could be made binary-compatible. Thanks for your help! - Steve Kramer From Jugoslav: __________________________________________ It seems you followed a correct procedure... for linking with Visual C++. I suspect the problem is that you're using Dev-C++, and I don't know if it's link-compatible with MSVC++/CVF. Based on the info from web site you provided, it seems not (it says that its compiler is Mingw port of gcc). You'd be probably better off asking this in a Devcpp/mingw/gcc specific group. The issue is the same as how to call a dll written in VC++ from that environment (as CVF .dlls and .libs are the same as VC++ looking from outside). -- Jugoslav ___________________________________________________ ----Original Message Follows---- From: pos...@go... Reply-To: pos...@go... To: dr_...@ho... Subject: Trouble linking FORTRAN DLL with C++ application (undefined reference) Date: Tue, 27 Jan 2004 17:16:07 -0800 From: dr_...@ho... (Steve Kramer) Newsgroups: comp.lang.fortran Subject: Trouble linking FORTRAN DLL with C++ application (undefined reference) NNTP-Posting-Host: 24.206.121.222 Message-ID: <538...@po...> I created a FORTRAN DLL with Digital Visual Fortran 6.0 and have been able to access that DLL successfully from a calling application in FORTRAN. I'm now trying to call the same FORTRAN DLL from C++ and am having trouble with the getting the calling conventions right. I have reviewed some relevant articles in comp.lang.fortran and in the Intel developer forum, including these: http://groups.google.com/groups?selm=68rm8a%249ej%40usenet.pa.dec.com&oe=UTF-8&output=gplain http://groups.google.com/groups?selm=9prq7m%24kef4q%241%40ID-106075.news.dfncis.de&oe=UTF-8&output=gplain http://softwareforums.intel.com/ids/board/message?board.id=15&message.id=739 Based on those and other articles, here's how I set things up. (1) FORTRAN DLL source code: Subroutine FORTRANINIT(int1,int2) ! ! !DEC$ ATTRIBUTES DLLEXPORT::FORTRANINIT !DEC$ ATTRIBUTES ALIAS : "_FORTRANINIT@8" :: FORTRANINIT INTEGER*4 int1, int2 (2) Calling C++ program source code: extern "C" { __declspec(dllimport) void __stdcall FORTRANINIT(int* int1, int* int2); } void main() { int int1, int2; <snip> FORTRANINIT(&int1, &int1); } (3) Building/compiling: (a) I built FORTRANINIT.dll first (in DVF 6.0) and copied it to the C++ application's directory. (b) I added the FORTRANINIT.lib file to the C++ project in Bloodshed Dev-C++ 4.0 (from www.bloodshed.net/devcpp.html) and compiled the calling C++ application. (c) There were no compilation errors, but there was a linker error: undefined reference to `_imp__FORTRANINIT@8' Any ideas as to what I'm missing here? I would like to be able to call the same FORTRAN DLL from FORTRAN and C++. I have tried omitting both the FORTRAN ALIAS as well as the __declspec(dllimport) in C++ without any luck. Thanks in advance for the help! - Steve Kramer _________________________________________________________________ Find high-speed net deals comparison-shop your local providers here. https://broadband.msn.com |
|
From: Michael C U. <mu...@cb...> - 2004-01-28 21:10:01
|
On Wed, 28 Jan 2004, [ISO-8859-1] OROSZI Bal=E1zs wrote: > If you think science is the privilege of anti-christians, I should point > out that a good majority of great scientists was, and even today are > religious (at least in Europe). Religion doesn't have a problem with many sciences. But Animal Behavior is not one of them. It has been my experience, and the experience of many other animal behavior scientists, that religion often has huge problems with our work. My response to those people would be to quote an article that came out shortly after Darwin published his theory. "If Darwin's theory should be true, it will not degrade man. Rather, it will simply elevate the rest of the animal kingdom into dignity." Mike |
|
From: Nicholas O. R. <exc...@mi...> - 2004-01-28 20:13:58
|
Hey there! I'm writing a string class as part of a school project. Sometimes when I compile the class in a test program and run it, I get an error message saying "NSTRING.EXE has generated errors and will be closed by Windows. You will need to restart the program. An error log is being created." If I re-compile with the exact same source code, the problem goes away and the test program runs perfectly. I'm using version 4.9.8.5 on Windows 2000. I have about 1300 lines of well-spaced code, but it seems unlikely to me that this could be too much for mingw or for my computer to handle. Any ideas? Nicholas |
|
From: <or...@vp...> - 2004-01-28 17:29:36
|
Hi all! Michael C Urban wrote: > I didn't say you did. I was simply responding to the thing about > prejudice. You can call it prejudice if you want. But I call it reasone= d > anti-christianity, and I have a lot of reasons for being against > christianity. As a biologist who has leared from experience that humans > and other animals are really not different from each other except in > certain evolutonarily developed traits, I find christianity's idea that > humans are above all the other animals to be morally repulsive. I also = am > not very fond of the fact that christians are always sticking their nos= e > in places where it doesn't belong, so that we have to fight tooth and n= ail > just to get anything done or accepted in science because christians who > don't know what they are talking about, and don't understand even basic > biological concepts, have powerful lobbying groups that try to undermin= e > science. (Did you know that as late as the 1960s, it was still illegal = in > some areas for teachers to teach Darwin's concepts of evolution in > classrooms?) >=20 > So call it whatever you want. But I don't call it prejudice when I can > historically document my reasons for being opposed to christianity. I don't think this is the right list to express your hatred against=20 christianity. If you think science is the privilege of anti-christians, I should point=20 out that a good majority of great scientists was, and even today are=20 religious (at least in Europe). Even I study on a religious University,=20 where we learn molecular and neural biology, and computer science (or IT=20 for short). You might take a look at the site of my University and read some of it's=20 papers to understand how Fides et Ratio can work together: http://www.itk.ppke.hu/index_e.html -- Greetings, Bal=E1zs John 3:15 |
|
From: Michael C U. <mu...@cb...> - 2004-01-28 16:41:59
|
On Wed, 28 Jan 2004, [ISO-8859-1] OROSZI Bal=E1zs wrote: > As I said before, I *didn't* write that mail, so I'm not trying to > "convert" you to anything. I didn't say you did. I was simply responding to the thing about prejudice. You can call it prejudice if you want. But I call it reasoned anti-christianity, and I have a lot of reasons for being against christianity. As a biologist who has leared from experience that humans and other animals are really not different from each other except in certain evolutonarily developed traits, I find christianity's idea that humans are above all the other animals to be morally repulsive. I also am not very fond of the fact that christians are always sticking their nose in places where it doesn't belong, so that we have to fight tooth and nail just to get anything done or accepted in science because christians who don't know what they are talking about, and don't understand even basic biological concepts, have powerful lobbying groups that try to undermine science. (Did you know that as late as the 1960s, it was still illegal in some areas for teachers to teach Darwin's concepts of evolution in classrooms?) So call it whatever you want. But I don't call it prejudice when I can historically document my reasons for being opposed to christianity. Mike |
|
From: <onw...@ya...> - 2004-01-28 12:44:43
|
hi all , i am actually sorry . i did not know that using capitals means shouting at some one. i was ignorant of this fact . i hope that u all have forgiven me . actually , its not a force to be a christian but actually , u do have to make peope to realize the existence of the supernatural being (GOD) in everything we are doing okay . this msg is not to hurt any one . plz . ________________________________________________________________________ BT Yahoo! Broadband - Free modem offer, sign up online today and save £80 http://btyahoo.yahoo.co.uk |
|
From: Sami B. <in...@ba...> - 2004-01-28 11:03:13
|
Hi, I have been learning C++ for about 4 months now from online free resources and i feel that i would like to gain a better understanding of the language and become more advanced at it. I know 4 months isn't much time but I have done programming in PHP before and grasped the basics of C++ pretty easily. I am simply asking people from the list if they could recommend any GOOD C++ programming books that are not Visual Studio, because i would like to program on Linux as well as Windows without having to do major changes to the code, so will be using the gcc compiler all the time. It would also be nice if the book could explain how to program using sockets ( I know they are different for Windows and Linux ). I am doing this more as a hobby at the moment and maybe later on take a course at uni in it. Im not too bothered about how much the book may cost, all i am really interested in is the clarity of the book and how far i can go with it ( I want to go far :) ). Thanks in advance for the suggestions. |
|
From: Oleksandr Y. <erm...@ma...> - 2004-01-28 10:05:09
|
Hi all,
Little question about delete operator.
Can i fall into trouble when making a call "delete this" in the
class member function ?
Example:
struct C1
{
func()
{
/* some other calls */
delete this;
}
};
Of course, "delete this" call is the LAST operator in the function.
If there are no pitfalls, then is it compatible with ISO/ANSI C++?
Thank in advance,
Oleksandr mailto:erm...@ma...
|
|
From: Watson D. <wa...@wa...> - 2004-01-28 08:40:08
|
Tuesday, January 27, 2004, 9:27:30 AM, you wrote: MCU> Although people like that probably aren't trolls. He probably actually MCU> thinks he is accomplishing something by sending that to the list. My wife's family can be like that. I'm not sure there's any thinking involved at all. Watson (the pencil neck) Davis |