Re: C++ compiler

2008-07-30 Thread Chris Hill
On Wed, 30 Jul 2008, [EMAIL PROTECTED] wrote: What is the URL where I can get gcc42 and is it easy to get or do I have to do devious things to eventually find it? # cd /usr/ports/lang/gcc42 # make install clean -- Chris Hill [EMAIL PROTECTED] ** [ Busy

Re: C++ compiler

2008-07-30 Thread Kris Kennaway
Chris Hill wrote: On Wed, 30 Jul 2008, [EMAIL PROTECTED] wrote: What is the URL where I can get gcc42 and is it easy to get or do I have to do devious things to eventually find it? # cd /usr/ports/lang/gcc42 # make install clean Or install FreeBSD 7.0 and do nothing else. # g++ -v

Re: C compiler issue perhaps?

2008-03-17 Thread Derek Ragona
At 12:29 AM 3/17/2008, Doug Hardie wrote: On Mar 15, 2008, at 05:59, Derek Ragona wrote: At 09:49 PM 3/14/2008, Doug Hardie wrote: On Mar 14, 2008, at 18:31, Derek Ragona wrote: At 06:56 PM 3/14/2008, Doug Hardie wrote: There is no code running at that point. Its just sitting there

Re: C compiler issue perhaps?

2008-03-16 Thread Doug Hardie
On Mar 15, 2008, at 05:59, Derek Ragona wrote: At 09:49 PM 3/14/2008, Doug Hardie wrote: On Mar 14, 2008, at 18:31, Derek Ragona wrote: At 06:56 PM 3/14/2008, Doug Hardie wrote: There is no code running at that point. Its just sitting there waiting for me to enter a gdb command. On Mar

Re: C compiler issue perhaps?

2008-03-15 Thread Derek Ragona
At 09:49 PM 3/14/2008, Doug Hardie wrote: On Mar 14, 2008, at 18:31, Derek Ragona wrote: At 06:56 PM 3/14/2008, Doug Hardie wrote: There is no code running at that point. Its just sitting there waiting for me to enter a gdb command. On Mar 14, 2008, at 15:16, Derek Ragona wrote: At

Re: C compiler issue perhaps?

2008-03-15 Thread Chuck Robey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Derek Ragona wrote: At 05:10 PM 3/14/2008, Doug Hardie wrote: I have a program I was testing with gdb. I was trying to figure out why c.rmonths was always zero when it should have been 6. Stepped through using the gdb n command. Here is the

Re: C compiler issue perhaps?

2008-03-15 Thread Derek Ragona
At 12:02 PM 3/15/2008, Chuck Robey wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Derek Ragona wrote: At 05:10 PM 3/14/2008, Doug Hardie wrote: I have a program I was testing with gdb. I was trying to figure out why c.rmonths was always zero when it should have been 6. Stepped

Re: C compiler issue perhaps?

2008-03-14 Thread Derek Ragona
At 05:10 PM 3/14/2008, Doug Hardie wrote: I have a program I was testing with gdb. I was trying to figure out why c.rmonths was always zero when it should have been 6. Stepped through using the gdb n command. Here is the output: (gdb) 215 c.rmonths = (edate -

Re: C compiler issue perhaps?

2008-03-14 Thread Doug Hardie
There is no code running at that point. Its just sitting there waiting for me to enter a gdb command. On Mar 14, 2008, at 15:16, Derek Ragona wrote: At 05:10 PM 3/14/2008, Doug Hardie wrote: I have a program I was testing with gdb. I was trying to figure out why c.rmonths was always zero

Re: C compiler issue perhaps?

2008-03-14 Thread Derek Ragona
At 06:56 PM 3/14/2008, Doug Hardie wrote: There is no code running at that point. Its just sitting there waiting for me to enter a gdb command. On Mar 14, 2008, at 15:16, Derek Ragona wrote: At 05:10 PM 3/14/2008, Doug Hardie wrote: I have a program I was testing with gdb. I was trying to

Re: C compiler issue perhaps?

2008-03-14 Thread Doug Hardie
On Mar 14, 2008, at 18:31, Derek Ragona wrote: At 06:56 PM 3/14/2008, Doug Hardie wrote: There is no code running at that point. Its just sitting there waiting for me to enter a gdb command. On Mar 14, 2008, at 15:16, Derek Ragona wrote: At 05:10 PM 3/14/2008, Doug Hardie wrote: I have a

Re: C compiler cannot create executables

2007-11-07 Thread Rod Person
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 06 Nov 2007 22:19:28 -0500 Philip M. Gollucci [EMAIL PROTECTED] wrote: Rod Person wrote: /usr/bin/ld cannot find -lgcc_s ls /lib/gcc* You should have: ls libgcc* -r--r--r-- 1 root wheel - 43K Nov 4 01:23:20 2007 libgcc_s.so.1

Re: C compiler cannot create executables

2007-11-06 Thread Rod Person
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 06 Nov 2007 20:01:26 -0500 Steve Bertrand [EMAIL PROTECTED] wrote: Rod Person wrote: I seem to have really hosed up my system somehow and I'm not sure what I did. I'm running FreeBSD 7 Beta 1 i386. I was going to upgrade to Beta 2,

Re: C compiler cannot create executables

2007-11-06 Thread Steve Bertrand
Rod Person wrote: I seem to have really hosed up my system somehow and I'm not sure what I did. I'm running FreeBSD 7 Beta 1 i386. I was going to upgrade to Beta 2, but when ever I compile anything it fails and the last line is always: configure: error: C compiler cannot create

Re: C compiler cannot create executables

2007-11-06 Thread Josh Carroll
configure: error: C compiler cannot create executables I googled for awhile and found the suggestion to reinstall libtool, but that also fails with the same error. Can you paste the config.log from the port's work source directory (where configure is located)? Can you try the following and

Re: C compiler cannot create executables

2007-11-06 Thread Garrett Cooper
Josh Carroll wrote: configure: error: C compiler cannot create executables I googled for awhile and found the suggestion to reinstall libtool, but that also fails with the same error. Can you paste the config.log from the port's work source directory (where configure is located)? Can

Re: C compiler cannot create executables

2007-11-06 Thread Rod Person
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 06 Nov 2007 17:31:39 -0800 Josh Carroll [EMAIL PROTECTED] wrote: configure: error: C compiler cannot create executables I googled for awhile and found the suggestion to reinstall libtool, but that also fails with the same error.

Re: C++ Compiler On FreeBSD

2007-10-07 Thread Wojciech Puchar
i complete my software engineering degree. PHP isn't really a programming language. It's more a fancy templating for me it's just funny thing that needs several megs of RAM to display the current date ;) but as being treated as technology instead of just tool, it's used everythere without

Re: C++ Compiler On FreeBSD

2007-10-07 Thread cpghost
On Sat, 6 Oct 2007 20:53:00 +0100 James Jeffery [EMAIL PROTECTED] wrote: Also if anyone wants to recommend any other books on C++ feel free. For beginners, I'd highly recommend C++ Primer / Fourth Ed. by Stanley B. Lippman et. al. But if you're starting to learn programming from scratch, it's

Re: C++ Compiler On FreeBSD

2007-10-07 Thread Wojciech Puchar
a lot of pitfalls and gotchas that you won't experience elsewhere (not so much with C itself, but with C++). And that's why it's good to start with C ___ freebsd-questions@freebsd.org mailing list

Re: C++ Compiler On FreeBSD

2007-10-07 Thread Christer Hermansson
James Jeffery wrote: Evening to you all (or morning in some parts of the world). Im learning C++ from Sams Teach Yourself C++, now many will call this a dumb method, and the books pointless and stupid, but i have no knowledge of any lower level languages, so i do need to be spoon fed the

Re: C++ Compiler On FreeBSD

2007-10-07 Thread Chad Perrin
On Sat, Oct 06, 2007 at 10:13:56PM +0200, Roland Smith wrote: On Sat, Oct 06, 2007 at 08:53:00PM +0100, James Jeffery wrote: Evening to you all (or morning in some parts of the world). Im learning C++ from Sams Teach Yourself C++, now many will call this a dumb method, and the books

Re: C++ Compiler On FreeBSD

2007-10-07 Thread Chad Perrin
On Sun, Oct 07, 2007 at 12:07:59AM +, Aryeh Friedman wrote: PHP isn't really a programming language. It's more a fancy templating system that happens to be able to use extensions that can provide C style linkage. That said, I laude you for your desire to learn a real programming

Re: C++ Compiler On FreeBSD

2007-10-07 Thread Chad Perrin
On Sun, Oct 07, 2007 at 10:08:58AM +0200, Wojciech Puchar wrote: i complete my software engineering degree. PHP isn't really a programming language. It's more a fancy templating for me it's just funny thing that needs several megs of RAM to display the current date ;) but as being

Re: C++ Compiler On FreeBSD

2007-10-07 Thread Roland Smith
On Sat, Oct 06, 2007 at 10:33:12AM -0600, Chad Perrin wrote: In the Unix world (such as with FreeBSD), I'd recommend C before C++, too -- though probably long after Ruby or Perl. Too right. But it should be noted that both C and C++ give you enough rope to hang yourself with. My preference

Re: C++ Compiler On FreeBSD

2007-10-07 Thread cpghost
On Sun, 7 Oct 2007 17:08:30 +0200 Roland Smith [EMAIL PROTECTED] wrote: My preference for doing things is; 1) Can it be done with a shell-script? (esp. one-time hacks) 2) Else use Perl, Octave, Ruby, but 3) If speed is key, use C. :-) Yup, exactly. In Python, that's what extension modules

Re: C++ Compiler On FreeBSD

2007-10-06 Thread RW
On Sat, 6 Oct 2007 20:53:00 +0100 James Jeffery [EMAIL PROTECTED] wrote: Im using Borland C++ compiler on XP and was wondering what compilers there are for FreeBSD that would allow me to compile and execute some of the examples i will practise from the book. gcc, the system C compiler, is a

Re: C++ Compiler On FreeBSD

2007-10-06 Thread Manolis Kiagias
James Jeffery wrote: Evening to you all (or morning in some parts of the world). Im learning C++ from Sams Teach Yourself C++, now many will call this a dumb method, and the books pointless and stupid, but i have no knowledge of any lower level languages, so i do need to be spoon fed the

Re: C++ Compiler On FreeBSD

2007-10-06 Thread Roland Smith
On Sat, Oct 06, 2007 at 08:53:00PM +0100, James Jeffery wrote: Evening to you all (or morning in some parts of the world). Im learning C++ from Sams Teach Yourself C++, now many will call this a dumb method, and the books pointless and stupid, but i have no knowledge of any lower level

Re: C++ Compiler On FreeBSD

2007-10-06 Thread James Jeffery
Hi all, thanks for the fast replys, much appreciated. Manolis: Yep, its the book by Jesse, i never believe them when they say in 24 hours, its a snag for them to sell the book, they just split it up into 24 sections to make it look like its possible. Roland: Ive been working with PHP over the

Re: C++ Compiler On FreeBSD

2007-10-06 Thread Wojciech Puchar
Im learning C++ from Sams Teach Yourself C++, now many will call this a dumb method, and the books pointless and stupid, but i have no knowledge of any lower level languages, so i do need to be spoon fed the basics. so you should start from lower level first - learn C first :) C is easy. it's

Re: C++ Compiler On FreeBSD

2007-10-06 Thread Giorgos Keramidas
On 2007-10-06 20:53, James Jeffery [EMAIL PROTECTED] wrote: Evening to you all (or morning in some parts of the world). Im learning C++ from Sams Teach Yourself C++, now many will call this a dumb method, and the books pointless and stupid, but i have no knowledge of any lower level

Re: C++ Compiler On FreeBSD

2007-10-06 Thread Christopher Nehren
On 2007-10-06, James Jeffery top-posted. [ please don't do that, it makes it very difficult to format responses correctly and makes it just about as hard to read and understand them ] Hi all, thanks for the fast replys, much appreciated. Manolis: Yep, its the book by Jesse, i never believe them

Re: C++ Compiler On FreeBSD

2007-10-06 Thread Aryeh Friedman
PHP isn't really a programming language. It's more a fancy templating system that happens to be able to use extensions that can provide C style linkage. That said, I laude you for your desire to learn a real programming language, and agree with the recommendation that you start with something

Re: C compiler

2004-10-04 Thread Kenneth Culver
Quoting [EMAIL PROTECTED]: Hello, I´ve installed FreeBSD 5.2.1 in my PC machine. I compiled my own programs and started to running them. For my surprise, I checked that FreeBSD programs spent almost 50% more time than the same program compiled to linux. I checked several compile options, but it

Re: C compiler

2004-10-04 Thread Bill Moran
[EMAIL PROTECTED] wrote: Hello, I´ve installed FreeBSD 5.2.1 in my PC machine. I compiled my own programs and started to running them. For my surprise, I checked that FreeBSD programs spent almost 50% more time than the same program compiled to linux. I checked several compile options,

Re: C compiler

2004-10-04 Thread Josh Hansen
Bill Moran wrote: [EMAIL PROTECTED] wrote: Hello, I´ve installed FreeBSD 5.2.1 in my PC machine. I compiled my own programs and started to running them. For my surprise, I checked that FreeBSD programs spent almost 50% more time than the same program compiled to linux. I checked several compile

Re: C compiler

2004-10-04 Thread Charles Swiger
On Oct 4, 2004, at 3:18 PM, Josh Hansen wrote: [ ...5.2.1 being slower than Linux... ] I really don't think the problem is that simple. How about either giving him a real answer or none at all? Sigh. The malloc debugging options in 5.2.1 really will slow down userland programs which heavily

Re: C compiler

2004-10-04 Thread Kris Kennaway
On Mon, Oct 04, 2004 at 01:18:48PM -0600, Josh Hansen wrote: Bill Moran wrote: [EMAIL PROTECTED] wrote: Hello, I?ve installed FreeBSD 5.2.1 in my PC machine. I compiled my own programs and started to running them. For my surprise, I checked that FreeBSD programs spent almost 50%

Re: C compiler

2004-10-04 Thread Kenneth Culver
Quoting Josh Hansen [EMAIL PROTECTED]: Bill Moran wrote: [EMAIL PROTECTED] wrote: Hello, I´ve installed FreeBSD 5.2.1 in my PC machine. I compiled my own programs and started to running them. For my surprise, I checked that FreeBSD programs spent almost 50% more time than the same program

Re: C compiler

2004-10-04 Thread Josh Hansen
Kris Kennaway wrote: On Mon, Oct 04, 2004 at 01:18:48PM -0600, Josh Hansen wrote: Bill Moran wrote: [EMAIL PROTECTED] wrote: Hello, I?ve installed FreeBSD 5.2.1 in my PC machine. I compiled my own programs and started to running them. For my surprise, I checked that FreeBSD

Re: c compiler

2004-05-20 Thread Lowell Gilbert
Jon [EMAIL PROTECTED] writes: I'm looking for some quick help with the 5.2.1 C compiler. In FBSD 4.x I could write multi-line printf() statements with embedded new-lines such as: printf( hello, this is a