Re: [Dev-C++] Dev-cpp-users Digest, Vol 10, Issue 1
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Michael M. <mma...@in...> - 2007-03-15 20:44:55
|
Wanted to subscribe. Still do. ----- Original Message ----- From: <dev...@li...> To: <dev...@li...> Sent: Thursday, March 15, 2007 11:29 AM Subject: Dev-cpp-users Digest, Vol 10, Issue 1 > Send Dev-cpp-users mailing list submissions to > dev...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body 'help' to > dev...@li... > > You can reach the person managing the list at > dev...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dev-cpp-users digest..." > > > Today's Topics: > > 1. ECCOMAS VipIMAGE 2007 - Abstracts Submission ENDS in ONE WEEK > ( Jo?o Manuel R. S. Tavares ) > 2. function name conflict (DC A) > 3. Re: function name conflict (DC A) > 4. Re: function name conflict (Per Westermark) > 5. Re: function name conflict (DC A) > 6. Re: function name conflict (DC A) > 7. Duplicate name and header problem. (DC A) > 8. Re: function name conflict (DC A) > 9. A question (Philip Bennefall) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 7 Mar 2007 18:23:34 -0000 > From: " Jo?o Manuel R. S. Tavares " <ta...@fe...> > Subject: [Dev-C++] ECCOMAS VipIMAGE 2007 - Abstracts Submission ENDS > in ONE WEEK > To: <dev...@li...> > Message-ID: <011101c760e5$c69b6b00$91781eac@torgh> > Content-Type: text/plain; charset="iso-8859-1" > > > ---------------------------------------------------------------------------- > ------------------- > > (Apologies for cross-posting) > > International ECCOMAS Thematic Conference VipIMAGE 2007 - I ECCOMAS > THEMATIC > CONFERENCE ON COMPUTATIONAL VISION AND MEDICAL IMAGE PROCESSING 17-19th > October 2007, FEUP, Porto, Portugal http://www.fe.up.pt/VIPIMAGE > > We would appreciate if you could distribute this information by your > colleagues and co-workers. > > ---------------------------------------------------------------------------- > ------------------- > > > Dear Colleague, > > This is just a briefly reminder that the extended abstracts submission for > VipIMAGE ENDS in ONE WEEK (March 15, 2007). > > More details regarding VipIMAGE can be found in the conference website: > http://www.fe.up.pt/VIPIMAGE > > We are looking forward to see you in Porto next October. > > Important dates > > Submission of extended abstracts: March 15, 2007; Authors Notification: > April 15, 2007; Lectures and Final Papers: May 15, 2007; Early > registration > fee: May 31, 2007. > > Invited Lectures > > - Automatic Generation of Computer Models from Multi-modal Bio-medical > Imaging - Chandrajit Bajaj, USA > - Computational Bioimaging and Visualization - Chris Johnson, USA > - From Geometrical Models to Physiological Models of the Human Body - > Herv? > Delingette, France > - Latest advances in Cardiovascular Informatics - Ioannis A. Kakadiaris, > USA > - Robust Algorithms for Deformable Contours - Jorge S. Marques, Portugal > - Image Sequence Evaluation - Juan J. Villanueva, Spain > - Fast Surface Segmentation and remeshing by finding geodesics - Laurent > Cohen, France > - Processing of Simultaneous acquisition of EEG and fMRI - Mario Forjaz > Secca, Portugal > - Automatic Construction of Statistical Shape Models using Non-Rigid > Registration - Tim Cootes, UK > > Kind regards, > > Jo?o Manuel R. S. Tavares > Renato Natal Jorge > (conference co-chairs) > > > > > ------------------------------ > > Message: 2 > Date: Thu, 08 Mar 2007 12:57:06 +0000 > From: "DC A" <ad...@ho...> > Subject: [Dev-C++] function name conflict > To: dev...@li... > Message-ID: <BAY...@ph...> > Content-Type: text/plain; format=flowed > > If you look at the code below you can't compile this code(gnu c++). > > #include <iostream> > #include <string> > using std::cout; > using std::endl; > using std::string; > > string plus(string x, string y) > { > string a(x); > string b(y); > > string c = a + b; > > return c; > } > > int main() > { > string s1 = "aaa"; > string s2 = "bbb"; > string s3 = plus(s1, s2); > > cout << s3 << endl; > > return 0; > } > > > It gives an error: > > > /usr/include/c++/3.3/bits/stl_function.h: In function `int main()': > /usr/include/c++/3.3/bits/stl_function.h:128: error: `template<class _Tp> > struct std:plus' is not a function, > test2.cc:8: error: conflict with `std::string plus(std::basic_string<char, > std::char_traits<char>, std::allocator<char> >, std::basic_string<char, > std::char_traits<char>, std::allocator<char> >)' > test2.cc:21: error: in call to `plus' > > > Here plus is a function outside of any namespace. Also plus is a structure > defined inside std namespace. so why can't compiler compile the above > code? > What's wrong? > > Thanks. > > _________________________________________________________________ > Your Space. Your Friends. Your Stories. Share your world with Windows Live > Spaces. http://spaces.live.com/?mkt=en-ca > > > > > ------------------------------ > > Message: 3 > Date: Thu, 08 Mar 2007 13:24:17 +0000 > From: "DC A" <ad...@ho...> > Subject: Re: [Dev-C++] function name conflict > To: Mat...@t-..., dev...@li... > Message-ID: <BAY...@ph...> > Content-Type: text/plain; format=flowed > > Britsch, Matthias wrote: >>I have never seen such a use of the string constructor. >>Try string a = x; and string b = y; instead. (You have declared x and y >>already in the function header). >> >> > > Thanks for your reply. okay I changed the plus function Now it looks like > this: > > string plus(string x, string y) > { > string a = x; > string b = y; > > string c = a + b; > > return c; > } > > But still getting the error: > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_function.h: > In function 'int main()': > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_function.h:134: > error: 'template<class _Tp> struct std::plus' is not a function, > test.cc:7: error: conflict with 'std::string plus(std::string, > std::string)' > test.cc:21: error: in call to 'plus' > > _________________________________________________________________ > Your Space. Your Friends. Your Stories. Share your world with Windows Live > Spaces. http://spaces.live.com/?mkt=en-ca > > > > > ------------------------------ > > Message: 4 > Date: Thu, 8 Mar 2007 14:37:54 +0100 (CET) > From: Per Westermark <pw...@ia...> > Subject: Re: [Dev-C++] function name conflict > To: DC A <ad...@ho...> > Cc: dev...@li..., Mat...@t-... > Message-ID: > <Pin...@ia...> > Content-Type: TEXT/PLAIN; charset=ISO-8859-1 > > Nothing wrong with using constructors as in: > string a(x); > string b(y); > > Your code will build correctly, if you write: > > string s3 = ::plus(s1,s2); > > You problems is that you got into troubles with the backwards-compatible > work-around: > using std::plus; > in the gcc header files, and needed to specify that you wanted to use your > implementation of plus, and not the implementation already available in > the std namespace. > > /pwm > > On Thu, 8 Mar 2007, DC A wrote: > >> Britsch, Matthias wrote: >> >I have never seen such a use of the string constructor. >> >Try string a = x; and string b = y; instead. (You have declared x and y >> >already in the function header). >> > >> > >> >> Thanks for your reply. okay I changed the plus function Now it looks like >> this: >> >> string plus(string x, string y) >> { >> string a = x; >> string b = y; >> >> string c = a + b; >> >> return c; >> } >> >> But still getting the error: >> >> /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_function.h: >> In function ?int main()?: >> /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_function.h:134: >> error: ?template<class _Tp> struct std::plus? is not a function, >> test.cc:7: error: conflict with ?std::string plus(std::string, >> std::string)? >> test.cc:21: error: in call to ?plus? >> >> _________________________________________________________________ >> Your Space. Your Friends. Your Stories. Share your world with Windows >> Live >> Spaces. http://spaces.live.com/?mkt=en-ca >> >> >> > > > > > ------------------------------ > > Message: 5 > Date: Thu, 08 Mar 2007 13:48:41 +0000 > From: "DC A" <ad...@ho...> > Subject: Re: [Dev-C++] function name conflict > To: dev...@li... > Message-ID: <BAY...@ph...> > Content-Type: text/plain; format=flowed > > Per Westermark wrote: >>Nothing wrong with using constructors as in: >> string a(x); >> string b(y); >> >>Your code will build correctly, if you write: >> >> string s3 = ::plus(s1,s2); >> >>You problems is that you got into troubles with the backwards-compatible >>work-around: >> using std::plus; >>in the gcc header files, and needed to specify that you wanted to use your >>implementation of plus, and not the implementation already available in >>the std namespace. >> > > > Thank you very much for solving this problem. That is all I wanted to > know. > > _________________________________________________________________ > Your Space. Your Friends. Your Stories. Share your world with Windows Live > Spaces. http://spaces.live.com/?mkt=en-ca > > > > > ------------------------------ > > Message: 6 > Date: Thu, 08 Mar 2007 17:31:08 +0000 > From: "DC A" <ad...@ho...> > Subject: Re: [Dev-C++] function name conflict > To: dev...@li... > Message-ID: <BAY...@ph...> > Content-Type: text/plain; format=flowed > > Per Westermark wrote: >>Nothing wrong with using constructors as in: >> string a(x); >> string b(y); >> >>Your code will build correctly, if you write: >> >> string s3 = ::plus(s1,s2); >> >>You problems is that you got into troubles with the backwards-compatible >>work-around: >> using std::plus; >>in the gcc header files, and needed to specify that you wanted to use your >>implementation of plus, and not the implementation already available in >>the std namespace. > > Just a curiousity. Where exactly <string> includes the header file > <backward/function.h>? the following line is included in function.h file: > > using std::plus; > > I searched the libstdc++ directory with the following command: > > grep -re "function.h" * > > But I can't seem to find the connection between function.h and <string> > header > file. Is it possible to find out the location where function.h is > included? > > _________________________________________________________________ > Win a trip for four to a concert anywhere in the world! > http://www.mobilelivetour.ca/ > > > > > ------------------------------ > > Message: 7 > Date: Thu, 08 Mar 2007 22:04:26 +0000 > From: "DC A" <ad...@ho...> > Subject: [Dev-C++] Duplicate name and header problem. > To: dev...@li... > Message-ID: <BAY...@ph...> > Content-Type: text/plain; format=flowed > > I've defined a function named plus outside of all namespace and when i use > that function > in my source code and compile, compiler spews an error because plus is > already defined in > libstdc++ and backward/function.h has a line like below: > > using std::plus; > > So plus is already defined in gnu c++ library. In my source file i > included > <iostream> and > <string> headers at the beginning. So i was thinking somehow > <backward/function.h> is > getting attached to my source file. my question is: When i include > <iostream> and > <string> header files at the beginning of my source code, where exactly in > the source code > of libstdc++ <backward/function.h> gets included? As a newbie i'm a bit > confused. can > anyone kindly clarify this matter? Thanks. > > _________________________________________________________________ > RealLiveMoms: Share your experience with Real Live Moms just like you > http://www.reallivemoms.ca/ > > > > > ------------------------------ > > Message: 8 > Date: Fri, 09 Mar 2007 14:27:38 +0000 > From: "DC A" <ad...@ho...> > Subject: Re: [Dev-C++] function name conflict > To: pw...@ia... > Cc: dev...@li... > Message-ID: <BAY...@ph...> > Content-Type: text/plain; format=flowed > > Per Westermark wrote: >>Your code will build correctly, if you write: >> >> string s3 = ::plus(s1,s2); >> >>You problems is that you got into troubles with the backwards-compatible >>work-around: >> using std::plus; >>in the gcc header files, and needed to specify that you wanted to use your >>implementation of plus, and not the implementation already available in >>the std namespace. > > what is the name of this header file? And also i didn't include this > header > file so > can you kindly tell me where exactly in source code it is added? > > _________________________________________________________________ > Your Space. Your Friends. Your Stories. Share your world with Windows Live > Spaces. http://spaces.live.com/?mkt=en-ca > > > > > ------------------------------ > > Message: 9 > Date: Thu, 15 Mar 2007 19:29:50 +0100 > From: "Philip Bennefall" <phi...@pb...> > Subject: [Dev-C++] A question > To: <dev...@li...> > Message-ID: <001901c7672f$eb2e4370$4800a8c0@Pbgames> > Content-Type: text/plain; charset="iso-8859-1" > > Hi people, > > I have a quick question. I'm just learning about resource scripts, so that > I can add my own custom icons etc to my executables which is a pretty > handy feature. > There is something that I'm wondering though. I have set GCC to strip my > executable as that seems to make it a whole lot smaller. Now my question > is, will > that remove my resources as well? Or is it just removing junk that doesn't > need to be there anyway? Also, I sett the further optimisation feature to > the > highest value, but I can't really tell any difference in the execution > speed/performance. What does it actually do when that option is set? > Obvious things > are to remove loops with no instructions in them and stuff like that, but > what else does it do? > > Regards > Philip Bennefall > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ------------------------------ > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > End of Dev-cpp-users Digest, Vol 10, Issue 1 > ******************************************** > |