Skip to main content

Product: OpenFusion TAO
Version: ALL

 

Description:

Problems with template instantiation

 

Solution:

The template techniques used in TAO in conjunction with later gcc 3.4 compiler features require that headers be included in a specific order. If this is not done then there may be problems with template instantiation.

The recommended order of includes in application code is as follows:

// 1) Your application generated skeletons

#include "your_skeletonS.h"

// 2) COS service stubs and skels

#include "CosNamingC.h"

// 3) ORB optional subcomponents- i.e. sub directories of 'tao'. e.g.:

#include "tao/PortableServer/PortableServer_includeC.h"
#include "tao/Messaging/MessagingC.h"

// 4) ORB core headers - i.e. headers from the 'tao' directory

#include "tao/corba.h"

// 5) ACE headers - i.e. headers from the 'ace' directory

#include "ace/OS_NS_String.h"

// 6) System headers

#include <iostream>


#KnowledgeDocs
#OpenFusion