CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Threaded View

  1. #1
    Join Date
    Dec 2010
    Posts
    907

    [boost] When including <boost/property_tree/ptree.hpp>, I receive these errors..

    Code:
    #include "kwxport.h"
    
    #include "resource.h"
    
    #ifndef __TCONVERT_H__
    #define __TCONVERT_H__
    #endif
    #ifndef _INC_TCHAR
    # include <tchar.h>
    #endif
    #ifndef _INC_CRTDBG
    # include <crtdbg.h>
    #endif
    #ifndef _WINDOWS_
    # include <windows.h>
    #endif
    
    #include <d3dx9xof.h>
    #include "rmxftmpl.h"
    #include "rmxfguid.h"
    #include <d3dx9mesh.h>
    
    #include <dbghelp.h>
    #include <plugapi.h>
    #include <hold.h>
    #include <quat.h>
    #include <IDxMaterial.h>
    #include <IPathConfigMgr.h>
    #include <crtdbg.h>
    #include <maxapi.h>
    #include <interval.h>
    
    #include <set>
    #include <algorithm>
    #include <sstream>
    
    //#include "kwlog.h"
    #include "exportmain.h"
    
    
    #define USE_FILE_RESOLUTION 0
    #define IGAME_BUG 0
    #if defined(MAX_RELEASE)
    #if defined(MAX_RELEASE_R12_ALPHA) && MAX_RELEASE >= MAX_RELEASE_R12_ALPHA
    #undef USE_FILE_RESOLUTION
    #define USE_FILE_RESOLUTION 1
    #include <AssetManagement/AssetUser.h>
    #include <IFileResolutionManager.h>
    #pragma comment(lib, "assetmanagement.lib")
    #if defined(_M_X64)
    #undef IGAME_BUG
    #if !defined(MAX_RELEASE_R13) || MAX_RELEASE < MAX_RELEASE_R13
    #define IGAME_BUG 1
    #else
    #define IGAME_BUG 0
    #endif
    #endif
    #endif
    #else
    #error "MAX_RELEASE must be defined!"
    #endif
    
    //TODO: for 1.5, support sorting transparent material triangles and splitting 2-sided triangles
    //TODO: for 1.5, convert textures to DDS when "rename to dds" and "copy textures" are on
    //TODO: for 1.5, convert the settings interface to use real ParamBlk2, and expose a Utility 
    //        that allows editing it.
    
    //BUG:  There appears to be a pivot center offset problem
    //FIXED:  There appears to be some problem with non-contiguous texture map channels
    
    #if 0 //  todo: remember to set to 0 before ship!
    #define OPTIMIZED 0
    #else
    #define OPTIMIZED 1
    #endif
    
    #if !OPTIMIZED
    #pragma optimize("", off)
    #endif
    
    #include <boost/property_tree/ptree.hpp>
    #include <boost/property_tree/xml_parser.hpp>
    
    // Create an empty property tree object
    using boost::property_tree::ptree;
    ptree exportedData;
    
    
    #pragma comment(lib, "bmm.lib")
    //#pragma warning(disable: 4312) // cast int/pointer
    
    #define MAX_UV_SETS 4
    Code:
    Warning	1	warning C4003: not enough actual parameters for macro 'base_type'	E:\Programming\Libraries\boost_1_54_0\boost\serialization\collection_size_type.hpp	41	1	kwxport
    Error	2	error C2544: expected ')' for operator '()'	E:\Programming\Libraries\boost_1_54_0\boost\serialization\collection_size_type.hpp	41	1	kwxport
    Error	3	error C2059: syntax error : '('	E:\Programming\Libraries\boost_1_54_0\boost\serialization\collection_size_type.hpp	41	1	kwxport
    Error	4	error C2091: function returns function	E:\Programming\Libraries\boost_1_54_0\boost\serialization\collection_size_type.hpp	41	1	kwxport
    Error	5	error C2143: syntax error : missing ',' before '&'	E:\Programming\Libraries\boost_1_54_0\boost\serialization\collection_size_type.hpp	41	1	kwxport
    Error	6	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	E:\Programming\Libraries\boost_1_54_0\boost\serialization\collection_size_type.hpp	41	1	kwxport
    Error	7	error C2059: syntax error : '('	E:\Programming\Libraries\boost_1_54_0\boost\serialization\collection_size_type.hpp	41	1	kwxport
    Any help would be greatly appreciated!

    I know the answer of my problem, I find maxsdk and boost's method name base_type() clash
    Both have it.
    How can I resolve it?


    Thanks in advance
    Jack
    Last edited by lucky6969b; November 7th, 2013 at 03:20 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured