Re: what does g++ want from my code

2010-08-25 Thread Elazar Leibovich
e: >>> 7: b defaultVal; >>> 8: public: >>> 9: std::map mymap; >>> 10: const b &func(a idx) >>> 11: { >>> 12: std::map::iterator it=mymap.find(a); >>> 13: if (it!=mymap

Re: what does g++ want from my code

2010-08-25 Thread Erez D
On Wed, Aug 25, 2010 at 1:53 PM, Oleg Goldshmidt wrote: > 2010/8/25 Erez D : > > > > > > On Wed, Aug 25, 2010 at 12:08 PM, Elazar Leibovich > > wrote: > >> > >> template > >> > >> class c > >> > >> { > >> > >> private: > >> > >> b defaultVal; > >> > >> public: > >> > >

Re: what does g++ want from my code

2010-08-25 Thread Oleg Goldshmidt
2010/8/25 Erez D : > > > On Wed, Aug 25, 2010 at 12:08 PM, Elazar Leibovich > wrote: >> >> template >> >> class c >> >> { >> >> private: >> >> b defaultVal; >> >> public: >> >> std::map mymap; >> >> >> const b &func(a idx) >> >> { >> >>

Re: what does g++ want from my code

2010-08-25 Thread Dov Grobgeld
The following works at least in g++ 4.4.4: #include template class c { private: b defaultVal; public: std::map mymap; const b &func(a idx) { *auto* it=mymap.find(idx); if (it!=mymap.end()) return it->second;

Re: what does g++ want from my code

2010-08-25 Thread Erez D
std::map::iterator it=mymap.find(a); >> 13: if (it!=mymap.end()) >> 14: return it->second; >> 15: else >> 16: return defaultVal; >> 17: } >>

Re: what does g++ want from my code

2010-08-25 Thread Elazar Leibovich
ind(a); > 13: if (it!=mymap.end()) > 14: return it->second; > 15: else > 16: return defaultVal; > 17: } > 18:}; > ... > ... > > compiling it (under cygwin) , i get the f

what does g++ want from my code

2010-08-25 Thread Erez D
; 13: if (it!=mymap.end()) 14: return it->second; 15: else 16: return defaultVal; 17: } 18:}; ... ... compiling it (under cygwin) , i get the following: $ g++ -c -o kaka.o kaka.cpp kaka.

Re: [YBA] g++ newbie: No warn on missing method implementation?

2010-07-13 Thread Jonathan Ben Avraham
Avraham Cc: ILUG Subject: Re: [YBA] g++ newbie: No warn on missing method implementation? Jonathan Ben Avraham wrote: Hi Shachar, Right, right. I also think that the VS2008 is doing something "extra". My problem is that I have a class with 70+ methods and the cust

Re: [YBA] g++ newbie: No warn on missing method implementation?

2010-07-13 Thread Shachar Shemesh
Jonathan Ben Avraham wrote: Hi Shachar, Right, right. I also think that the VS2008 is doing something "extra". My problem is that I have a class with 70+ methods and the customer keeps changing the specs. I need some way to verify that all of the methods declared in the class have implementati

Re: [YBA] g++ newbie: No warn on missing method implementation?

2010-07-13 Thread Oleg Goldshmidt
2010/7/13 Jonathan Ben Avraham : > Hi Shachar, > Right, right. > I also think that the VS2008 is doing something "extra". > > My problem is that I have a class with 70+ methods and the customer keeps > changing the specs. I need some way to verify that all of the methods > declared in the class hav

Re: [YBA] g++ newbie: No warn on missing method implementation?

2010-07-13 Thread Oleg Goldshmidt
On Tue, Jul 13, 2010 at 11:31 AM, Jonathan Ben Avraham wrote: > Dear linux-il list, > g++ seems to be quite happy to compile and link a program that has a class > that includes method declarations that are not implemented, as log as those > methods are not called explicitly in the

Re: [YBA] g++ newbie: No warn on missing method implementation?

2010-07-13 Thread Jonathan Ben Avraham
ue, 13 Jul 2010, Shachar Shemesh wrote: Date: Tue, 13 Jul 2010 11:59:43 +0300 From: Shachar Shemesh To: Jonathan Ben Avraham Cc: ILUG Subject: Re: [YBA] g++ newbie: No warn on missing method implementation? Jonathan Ben Avraham wrote: Dear linux-il list, g++ seems to be quite happy

Re: [YBA] g++ newbie: No warn on missing method implementation?

2010-07-13 Thread Shachar Shemesh
Jonathan Ben Avraham wrote: Dear linux-il list, g++ seems to be quite happy to compile and link a program that has a class that includes method declarations that are not implemented, as log as those methods are not called explicitly in the code. VS2008 seems to be able to discover this

[YBA] g++ newbie: No warn on missing method implementation?

2010-07-13 Thread Jonathan Ben Avraham
Dear linux-il list, g++ seems to be quite happy to compile and link a program that has a class that includes method declarations that are not implemented, as log as those methods are not called explicitly in the code. VS2008 seems to be able to discover this, either at compile or link time

Re: g++ compilation problem

2007-02-26 Thread Peter
On Mon, 26 Feb 2007, Baruch Even wrote: These days on Debian it's as simple as apt-get install g++-4.1 As you were told already, you can have multiple versions of gcc/g++ installed with ease. You are (wrongly) assuming that this can be done from woody -> etch. Not so. There are othe

Re: g++ compilation problem

2007-02-26 Thread Baruch Even
* Peter <[EMAIL PROTECTED]> [070226 16:14]: > > On Mon, 26 Feb 2007, Vassilii Khachaturov wrote: > > >>I have a compilation problem: when compiling opal-2.2.5 , g++ reports: > >>'g++: Internal error: Killed (program cc1plus)'. g++ is 'g++ (GCC

Re: g++ compilation problem

2007-02-26 Thread Orna Agmon Ben-Yehuda
On Mon, 26 Feb 2007, Peter wrote: Date: Mon, 26 Feb 2007 16:03:10 +0200 (IST) From: Peter <[EMAIL PROTECTED]> To: Vassilii Khachaturov <[EMAIL PROTECTED]> Cc: IGLU <[EMAIL PROTECTED]> Subject: Re: g++ compilation problem On Mon, 26 Feb 2007, Vassilii Khachaturov wrote: I

Re: g++ compilation problem

2007-02-26 Thread Vassilii Khachaturov
gt; only use 4.x.x as a non-default one by setting CC=... accordingly in the > > env. > > The last time I updated the compiler alone it was like being reborn aout > 3 times. I would PREFER not to do that. And g++ says to file a bug > report, not upgrade. BTW, have you read through the g

Re: g++ compilation problem

2007-02-26 Thread Peter
On Mon, 26 Feb 2007, Vassilii Khachaturov wrote: I have a compilation problem: when compiling opal-2.2.5 , g++ reports: 'g++: Internal error: Killed (program cc1plus)'. g++ is 'g++ (GCC) 3.3.6 (Debian 1:3.3.6-8)'. I would like to solve this without updating g++. I su

Re: g++ compilation problem

2007-02-26 Thread Vassilii Khachaturov
On Mon, 26 Feb 2007, Peter wrote: > > Hi all, > > I have a compilation problem: when compiling opal-2.2.5 , g++ reports: > 'g++: Internal error: Killed (program cc1plus)'. g++ is 'g++ (GCC) 3.3.6 > (Debian 1:3.3.6-8)'. I would like to solve this without u

g++ compilation problem

2007-02-26 Thread Peter
Hi all, I have a compilation problem: when compiling opal-2.2.5 , g++ reports: 'g++: Internal error: Killed (program cc1plus)'. g++ is 'g++ (GCC) 3.3.6 (Debian 1:3.3.6-8)'. I would like to solve this without updating g

Re: g.729 audio player

2006-07-15 Thread Tzafrir Cohen
On Thu, Jul 13, 2006 at 01:20:00PM +0300, Rafi Gordon wrote: > Hello, > - g.729 ia an audio codec which is used a lot in telephony apps. > > Maybe somebody knows a free player for g.729 files in linux ? > googling did not helped me to find. If you happen to have an Asteris

Re: g.729 audio player

2006-07-13 Thread Ilya Konstantinov
Rafi Gordon wrote: Hello, - g.729 ia an audio codec which is used a lot in telephony apps. Maybe somebody knows a free player for g.729 files in linux ? G.729 is not a royalty-free codec and most free applications would therefore avoid supporting it. That's why there are no free

Re: g.729 audio player

2006-07-13 Thread Hetz Ben Hamo
Most of the G.729 codecs implementations are on hardware, and it's realy rare to find a software implementaion, specially on Linux. Thanks, Hetz On 7/13/06, Rafi Gordon <[EMAIL PROTECTED]> wrote: Hello, - g.729 ia an audio codec which is used a lot in telephony apps. Maybe someb

g.729 audio player

2006-07-13 Thread Rafi Gordon
Hello, - g.729 ia an audio codec which is used a lot in telephony apps. Maybe somebody knows a free player for g.729 files in linux ? googling did not helped me to find. TIA, RG = To unsubscribe, send mail to [EMAIL PROTECTED

Re: gcc (g++ v3.2.2) trouble

2004-03-24 Thread Avraham [EMAIL PROTECTED]
On Tue, 23 Mar 2004, Mark Veltzer wrote: > Date: Tue, 23 Mar 2004 18:13:04 +0200 > From: Mark Veltzer <[EMAIL PROTECTED]> > To: Alexander V. Karelin <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > Subject: Re: gcc (g++ v3.2.2) trouble > > On Tuesday 23 March 2004 18:06, yo

Re: gcc (g++ v3.2.2) trouble

2004-03-23 Thread Muli Ben-Yehuda
On Tue, Mar 23, 2004 at 06:06:28PM +0200, Alexander V. Karelin wrote: > when linking code compiled with g++ 3.2.2 with a library that has been > compiled with gcc 2.x.x, the linker fails finding references. There is no C++ binary ABI between gcc 2.xx releases and gcc 3.xx releases. In

Re: gcc (g++ v3.2.2) trouble

2004-03-23 Thread Mark Veltzer
On Tuesday 23 March 2004 18:06, you wrote: > Dear List! > > I've encountered a rather unpleasant problem. In a nutshell it is like > this: > > when linking code compiled with g++ 3.2.2 with a library that has been > compiled with gcc 2.x.x, the linker fails finding

gcc (g++ v3.2.2) trouble

2004-03-23 Thread Alexander V. Karelin
Dear List! I've encountered a rather unpleasant problem. In a nutshell it is like this: when linking code compiled with g++ 3.2.2 with a library that has been compiled with gcc 2.x.x, the linker fails finding references. Now... The problem is that the library in question, if compiled

From g++ To a Big cgi File

2001-02-24 Thread Avi Boots
Hi, I compile some small c++ file with mysql library. the file works great, but the cgi is BIG over 200K How can i make it a little small like 10-20K ? (gcc make a smaller cgi files with mysql library) The compile line is: g++ file_name.cpp -o file_name.cgi -I/usr/include/mysql -L/usr/lib

Re: g++ install

2001-02-21 Thread Ilya Konstantinov
On Sat, Feb 24, 2001 at 03:19:46AM +0200, Avi Boots wrote: > Hi, > > Aftert installing cpp & gcc-c++ 2.95.1 (on RH 6.1) > i have some install problems (i think). > > I try to compile something simple and the compiler say: > -can't find /usr/include/typws.h:29:stddef.h: No such file or director >

g++ install

2001-02-20 Thread Avi Boots
Hi, Aftert installing cpp & gcc-c++ 2.95.1 (on RH 6.1) i have some install problems (i think). I try to compile something simple and the compiler say: -can't find /usr/include/typws.h:29:stddef.h: No such file or director -/usr/include/_G_config.h:14:stddef.h No such file or director -/usr/inclu

Re: g++

2001-02-20 Thread Gilad Ben-Yossef
Avi Boots wrote: > Hi, > > 1. Which RPM include the g++ cpp compiler ? [gby@specialk gby]$ rpm -qf /usr/bin/g++ egcs-c++-1.1.2-24 [gby@specialk gby]$ cat /etc/redhat-release Red Hat Linux release 6.1 (Cartman) > 2. Is it better to use c++ instead of c for cgi programming ? I

Re: g++

2001-02-20 Thread Nadav Har'El
On Tue, Feb 20, 2001, Hetz Ben Hamo wrote about "Re: g++": > Hi, > > > 1. Which RPM include the g++ cpp compiler ? > > [kde21@moomoo kde21]$ rpm -q --whatprovides /usr/bin/g++ > gcc-c++-2.96-69 > > (this is the GCC updated on my RH 7) You'll usually

Re: g++

2001-02-19 Thread Hetz Ben Hamo
Hi, > 1. Which RPM include the g++ cpp compiler ? [kde21@moomoo kde21]$ rpm -q --whatprovides /usr/bin/g++ gcc-c++-2.96-69 (this is the GCC updated on my RH 7) > 2. Is it better to use c++ instead of c for cgi programming ? It all depends on your taste of programming. You can do it wit

g++

2001-02-19 Thread Avi Boots
Hi, 1. Which RPM include the g++ cpp compiler ? 2. Is it better to use c++ instead of c for cgi programming ? Thank You Avi. = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message

Re: Printing the x/g/k-term contents

2000-11-09 Thread Ilya Konstantinov
On Thu, Nov 09, 2000 at 10:51:09AM +0200, Ishai Parasol wrote: > Is there a way to print the contents of the xterm (and its similair > terminas), including the command lines, the prompts, the commands / file > names and ofcourse the output ? Try left-clicking inside the xterm window while holdin

Re: Printing the x/g/k-term contents

2000-11-09 Thread Shaul Karl
Can the script command be of any use? It does have its drawbacks: One has to run and exit it before he can have the logs, get all the escape characters with their attached actions. > > Hi > > Is there a way to print the contents of the xterm (and its similair > terminas), including the comman

Re: Printing the x/g/k-term contents

2000-11-09 Thread Tzafrir Cohen
Hi On Thu, 9 Nov 2000, Ishai Parasol wrote: > Is there a way to print the contents of the xterm (and its similair > terminas), including the command lines, the prompts, the commands / file > names and ofcourse the output ? I can't think of a better way than marking the text you want to print, p

Printing the x/g/k-term contents

2000-11-08 Thread Ishai Parasol
Hi Is there a way to print the contents of the xterm (and its similair terminas), including the command lines, the prompts, the commands / file names and ofcourse the output ? TIA, Ishai. = To unsubscribe, send mail to [EMAIL P

Please s/June 3/June 2/g

2000-05-13 Thread Shaul Karl
Regarding my last message: June 3 has to be substituted with June 2. (June 3 is Saturday.) -- -- Shaul Karl <[EMAIL PROTECTED]> = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the

Re: Problem with g++ compiled program

1999-05-28 Thread naftali
%Hello all % %After compiling some simple c program linking it and getting the %executable file, I tried to execute the program. It was not possible to %run it , no matter which combinations or names did I tried. %(The same files exactliy ran perfectly on the technions t2 Unix.) Any %Ideas? % %

Problem with g++ compiled program

1999-05-27 Thread David Carmeli
Hello all After compiling some simple c program linking it and getting the executable file, I tried to execute the program. It was not possible to run it , no matter which combinations or names did I tried. (The same files exactliy ran perfectly on the technions t2 Unix.) Any Ideas? Thanks Dedy