Tuesday, April 13, 2004 - Posts

Notes to Migration of CorbaFreeDynaMIT (2)

2.1 Deprecated headers

Table 1 shows some of the headers that may need to make changes. Although it is still possible to include those deprecated headers in g++ 3, it is strongly recommended that we use the new ones. Hence we switch to the new versions.

Deprecated headers are all located at the path /usr/include/c++/3.3.2/backward (at guitar).

Note that some headers listed in Table reftable:t1 do not belong to that path. This means that both versions should work fine at least in gcc 3.3.2, but still we prefer the new naming convention.

Where does it occur? Almost every header file (*.h) in CorbaFreeDynaMIT; many source files (*.cc and *.y).

Table 1: Deprecated headers and their recommended replacements

How to fix: Replace with the corresponding new headers.

posted by wenyang with 0 Comments

Notes to Migration of CorbaFreeDynaMIT (1)

Critical Changes of GCC (g++) from 2.96 to 3.3.2

Because of the following changes during the upgrade of gcc (from 2.x to 3.x), many source codes need modification:

  • The standard library is much more conformant. Codes or usages that do not follow the latest c++ standard may be unsupported in the new version of g++.
  • The std:: namespace is now a real namespace, not an alias for ::.
  • The standard header files for the c library don't end with .h, but begin with c (i.e. <CSTDLIB>rather than <STDLIB.H>). The .h names are still available, but are deprecated.
  • For ostream formatting, use the std::ios::fmtflags. The Integers are no longer valid.
  • <STRSTREAM>is deprecated, use <SSTREAM> instead. The strstream class is replaced by stringstream, which is more powerful and safer.
posted by wenyang with 0 Comments