[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AC_C_CONST and AC_C_INLINE with g++ 2.95
From: |
Predrag Miocinovic |
Subject: |
AC_C_CONST and AC_C_INLINE with g++ 2.95 |
Date: |
Wed, 8 Nov 2000 11:25:58 -0800 (PST) |
Hi,
AC_C_CONST and AC_C_INLINE fail with gcc-2.95 if AC_LANG_CPLUSPLUS is
turned on.
Const check seems to fail on following;
---------------------
/* Ultrix mips cc rejects this. */
typedef int charset[2]; const charset x;
--------------------- with
c++ -c -g -O2 conftest.C 1>&5
configure: In function `int main()':
configure:2346: uninitialized const `x'
----------------------
Inline fails with;
------------------
configure:2411: checking for inline
configure:2425: c++ -c -g -O2 conftest.C 1>&5
configure:2421: ANSI C++ forbids declaration `foo' with no type
configure: failed program was:
#line 2418 "configure"
#include "confdefs.h"
int main() {
} inline foo() {
; return 0; }
configure:2425: c++ -c -g -O2 conftest.C 1>&5
configure:2421: ANSI C++ forbids declaration `foo' with no type
configure: failed program was:
#line 2418 "configure"
#include "confdefs.h"
int main() {
} __inline__ foo() {
; return 0; }
configure:2425: c++ -c -g -O2 conftest.C 1>&5
configure:2421: ANSI C++ forbids declaration `foo' with no type
configure: failed program was:
#line 2418 "configure"
#include "confdefs.h"
int main() {
} __inline foo() {
; return 0; }
----------------------------
This is not critical since it's ok if AC_LANG_C is set before these tests.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Predrag Miocinovic
UC Berkeley, Physics Department
address@hidden
(510)643-7809
- AC_C_CONST and AC_C_INLINE with g++ 2.95,
Predrag Miocinovic <=