Re: gcc doesn't work (was:(no subject))

2006-05-03 Thread Fabian Keil
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

   My version of  gcc  doesn't work (reports errors in code that
 compiles elsewhere).  Where can I go to download a later version of
 GNU  code for  gccgdb  suitable for a  FreeBSD  system?  I went to
 the  GNU  site but all I found there was source code ( .c.h ),
 useless without a working compiler.  Also, even if I had found a
 working binary, how would I know if it is for  FreeBSD ,  LINUX ,
 Solaris , or some other system? Are there inexpensive but good working
 commercial compilers suitable for a  FreeBSD  system?  If so, what are
 they and how can their distributors be contacted?  What about shareware
 or freeware?

I can't believe that FreeBSD's gcc version doesn't work.
It's more likely that your code needs libraries you don't have,
or your system's memory is corrupt. Hard to tell without knowing
the error message.

Switching the compiler wouldn't solve these problems. 

Anyway you can find different gcc versions in the ports collection.
If your compiler really is broken, you could install them as package.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: gcc doesn't work (was:(no subject))

2006-05-03 Thread [EMAIL PROTECTED]
The unames are:
FreeBSD  4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001 
[EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC  i386
FreeBSD  4.7-RELEASE FreeBSD 4.7-RELEASE #0: Wed Oct  9 15:08:34 GMT 2002 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386
When I first encountered a problem with  gcc  in  4.3 , I copied the  
gcc  from  4.7  into  4.3  and tried it.  The program and  .h  file are 
attached, as is a file containing the first 4 lines of error messages (once the 
compiler discovers errors, you can't believe those after the first, they may be 
accurate, and maybe not).


buffer.h
Description: buffer.h


buffer.c
Description: buffer.c


buffer.e
Description: buffer.e
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: gcc doesn't work (was:(no subject))

2006-05-03 Thread Garrett Cooper

[EMAIL PROTECTED] wrote:


The unames are:
FreeBSD  4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001 
[EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC  i386
FreeBSD  4.7-RELEASE FreeBSD 4.7-RELEASE #0: Wed Oct  9 15:08:34 GMT 2002 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386
When I first encountered a problem with  gcc  in  4.3 , I copied the  
gcc  from  4.7  into  4.3  and tried it.  The program and  .h  file are 
attached, as is a file containing the first 4 lines of error messages (once the 
compiler discovers errors, you can't believe those after the first, they may be 
accurate, and maybe not).
 




That is strange syntax for a struct declaration in an arguments list; 
usually it seems like just the identifier name is sufficient, and I 
think I see why gcc errored out and bailed.

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]