Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. struct arch32 {};
  2. struct arch64 {};
  3.  
  4. namespace PE {
  5. namespace Section {
  6. class Detail
  7. {
  8. public:
  9. template<typename Arch>
  10. Detail(const ImgSectionHeader& header, const Image<Arch>& image);
  11. double entropy() const;
  12.  
  13. template Detail::Detail(const ImgSectionHeader& header, const Image<arch32>& image);
  14. template Detail::Detail(const ImgSectionHeader& header, const Image<arch64>& image);
  15.  
  16. implementation.obj : error LNK2019: unresolved external symbol "public: double __thiscall PE::Section::Detail::entropy(void)const " (?entropy@Detail@Section@PE@@QBENXZ) referenced in function "private: void __thiscall readpe::OutputFormatter<struct PE::arch32>::formatSectionsDetails(void)" (?formatSectionsDetails@?$OutputFormatter@Uarch32@PE@@@readpe@@AAEXXZ)
  17.  
  18. template Detail::Detail<arch32>(const ImgSectionHeader& header, const Image<arch32>& image);
  19. template Detail::Detail<arch64>(const ImgSectionHeader& header, const Image<arch64>& image);
  20.  
  21. c:projectscpp-workspacereadpesrcpeimplementationsectionsection.hpp(114): error C2143: syntax error : missing ';' before '<'
  22. c:projectscpp-workspacereadpesrcpeimplementationsectionsection.hpp(114): error C2059: syntax error : '<'
  23. c:projectscpp-workspacereadpesrcpeimplementationsectionsection.hpp(115): error C2143: syntax error : missing ';' before '<'
  24. c:projectscpp-workspacereadpesrcpeimplementationsectionsection.hpp(115): error C2059: syntax error : '<'
  25.  
  26. template Detail::Detail(const ImgSectionHeader& header, const Image<arch32>& image);
  27. template Detail::Detail(const ImgSectionHeader& header, const Image<arch64>& image);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement