Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. undefined reference to Class::Class(std::vector<double, std::allocator<double> >)
  2.  
  3. std::vector<double>
  4.  
  5. std::vector<double, std::allocator<double> >
  6.  
  7. std::vector<double> x1;
  8. std::vector<double> x2;
  9. std::vector<double> myvec;
  10. double thisX;
  11.  
  12. for (int i=0; i<x1.size(); i++ {
  13. thisX = x1[i];
  14. myvec.push_back(thisX);
  15. }
  16. for (int i=0; i<x2.size(); i++ {
  17. thisX = x2[i];
  18. myvec.push_back(thisX);
  19. }
  20.  
  21. Class MyClass( myvec );
  22. // has a constructor for std::vector<double>
  23. // compiler throws the undefined reference to
  24. // Class::Class(std::vector<double, std::allocator<double> >)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement