Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualBrentChua

Posted 01 August 2013 - 06:22 AM

Just an addition to what SiCrane said, the error you're having about missing symbols is because the compiler cannot find the function definitions when places in the .cpp. So move all your code in the .cpp in the header file. But if all you're after is just a physical file separation, you could create a separate file call it something like dxman_cbuffer.hpp. Put all your function definitions there then include that .hpp file at the bottom of the header file of your dxman_cbuffer.h.


#2BrentChua

Posted 01 August 2013 - 06:22 AM

Just an addition to what SiCrane said, the error you're having about missing symbols is because the compiler cannot find the function definitions when places in the .cpp. So move all your code in the .cpp in the header file. But if all you're after is just a physical file separation, you could create a separate file call it something like dxman_cbuffer.hpp. Put all your function definitions there then include that .hpp file at the bottom of the header file of your dxman_cbuffer.h.


#1BrentChua

Posted 01 August 2013 - 06:21 AM

Just an addition to what SiCrane said, the error you're having about missing symbols is because the compiler cannot find the function definitions when places in the .cpp. So move all your code in the .cpp in the header file. But if all you're after is just a physical file separation, you could create a separate file call it something like .hpp. Put all your function definitions there then include that .hpp file at the bottom of the header file of your dxman_cbuffer.h.


PARTNERS