LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   gcc 3.4.1 want not to compile, but 3.2.2 does (https://www.linuxquestions.org/questions/linux-software-2/gcc-3-4-1-want-not-to-compile-but-3-2-2-does-210181/)

BorisB 07-27-2004 07:24 AM

gcc 3.4.1 want not to compile, but 3.2.2 does
 
Hello. I'm trying to compile FireBird 1.5.1 with gcc 3.4.1 but it fails. But gcc 3.2.2 compiles fine. What is the problem? Here is a fragment of output:
Quote:

make -C src firebird
make[1]: Entering directory `/install/.unpacked/firebird-1.5.1.4481/src'
(cd ..; ./src/misc/writeBuildNum.sh rebuildHeader)
files are identical
make boot_phase1_build
make[2]: Entering directory `/install/.unpacked/firebird-1.5.1.4481/src'
make -f ../gen/Makefile.libfbcommon libfbcommon
make[3]: Entering directory `/install/.unpacked/firebird-1.5.1.4481/src'
g++ -I../src/include/gen -I../src/include -ggdb -O3 -march=i686 -fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -pipe -MMD -fPIC -DPROD_BUILD -c ../src/common/classes/alloc.cpp -o ../temp/libfbcommon/common/classes/alloc.o
In file included from ../src/common/classes/../../include/../common/classes/tree.h:35,
from ../src/common/classes/../../include/../common/classes/alloc.h:36,
from ../src/common/classes/../../include/firebird.h:75,
from ../src/common/classes/alloc.cpp:26:
../src/common/classes/../../include/../common/classes/vector.h: In member function `bool Firebird::SortedVector<Value, Capacity, Key, KeyOfValue, Cmp>::find(const Key&, int&)':
../src/common/classes/../../include/../common/classes/vector.h:103: error: `count' undeclared (first use this function)
Thanks.

ToniT 07-27-2004 07:30 AM

IIRC, the gcc 3.4 is more strict with correct template syntax than previous versions.

BorisB 07-27-2004 07:43 AM

Quote:

Originally posted by ToniT
IIRC, the gcc 3.4 is more strict with correct template syntax than previous versions.
Is there an option to make compiler less strictier? Or the only way is to modify sources?

ToniT 07-27-2004 06:53 PM

I think there is no easy way.

According to the changelog, there are plenty of source level incompatibilities and a binary incompatibility with c++ libraries.


All times are GMT -5. The time now is 02:17 PM.