File: README.gcc.2.7

package info (click to toggle)
ftpgrab 0.1.5-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 444 kB
  • sloc: cpp: 2,906; makefile: 103
file content (21 lines) | stat: -rw-r--r-- 794 bytes parent folder | download | duplicates (10)
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!