File: README.gcc.2.7

package info (click to toggle)
ftpgrab 0.1.2r-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 376 kB
  • ctags: 335
  • sloc: cpp: 2,790; makefile: 26
file content (21 lines) | stat: -rw-r--r-- 794 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
I have a report that g++ version 2.7 fails to compile ftpgrab. AFAIK,
exception support in gcc 2.7 was shall we say "suboptimal" :-) The error
given is

In file included from main.cc:10:
fglogger.h:58: warning: `class FGLogger' only defines private constructors
and has no friends
main.cc: In function `int main()':
main.cc:46: warning: `catch', `throw', and `try' are all C++ reserved
words
main.cc:46: exception handling disabled, use -fhandle-exceptions to
enable.
main.cc:62: `e' undeclared (first use this function)
main.cc:62: (Each undeclared identifier is reported only once
main.cc:62: for each function it appears in.)

There is currently some confusion as to whether adding
"-fhandle-exceptions" actually works.

Thanks to Urivan Saaib <saaib@c-ber.net> for reporting this problem!