LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-27-2004, 07:24 AM   #1
BorisB
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
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.
 
Old 07-27-2004, 07:30 AM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
IIRC, the gcc 3.4 is more strict with correct template syntax than previous versions.
 
Old 07-27-2004, 07:43 AM   #3
BorisB
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Original Poster
Rep: Reputation: 0
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?
 
Old 07-27-2004, 06:53 PM   #4
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
compile C++ with GCC phongnh0211k Linux - Software 3 01-13-2005 01:40 AM
Compile with GCC occ Solaris / OpenSolaris 6 10-29-2004 10:19 AM
gcc can't compile zionz Linux - Newbie 2 09-02-2004 11:34 PM
How to compile GCC if you don't have GCC? khermans Linux - Software 13 05-12-2004 06:42 PM
Can't compile GCC Mikessu Linux - Software 2 05-05-2004 03:59 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration