one header file defines a struct and the other uses it.
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: one header file defines a struct and the other uses it.

Threaded View

  1. #1
    Join Date
    Dec 2010
    Posts
    589

    one header file defines a struct and the other uses it.

    Code:
    // mesh.h
    struct D3DXMESHCONTAINER_DERIVED
    {
    };
    
    
    //  allocmeshhierarchy.h
    #include "mesh.h"
    void GenerateSkinnedMesh (LPDIRECT3DDEVICE9 pDevice, D3DXMESHCONTAINER_DERIVED* pMeshContainer);

    [translated]
    error C2011: D3DXFRAME_DERIVED repeated definition of d: \ users \ documents \ visual studio 2010 \ projects \ perfectsim v5.0 \ perfectsim v5.0 \ mesh \ mesh.h the 11 1 PerfectSim V5.0
    What is correct linkage method?
    Thanks
    Jack
    Last edited by lucky6969b; September 19th, 2012 at 02:16 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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center