c++ - Reference to STL Vector Type -
I am using an ELS function which moves:
optimization (Std :: vector
This edits the input.
How should I cross a vector on this, I've tried:
std :: vector> double> input> Input.push_back ('multiple points'); optimize (input); There is a linker The error is:
Undefined reference to undefined (standard :: vector & lt; double; standard :: allot R > If I try this:
std :: vector Then there is a compile error:
'Input; Input.push_back (' multiple points'); 'Is declared as a reference but is not initial How do I start a context of vector or do I am doing something wrong? Edit:
I did not add the library correctly to my CMakeLists Was ha. Thanks for everyone's help, I want you to mark all of them as correct.
Your first way to pass is correct. The compiler accepts that the function is passed by reference from the signature in the vector header, makes reference to your vector, and passes it in the function. The fact is that you see linker errors, tells you that the compiling phase is successfully completed. The linker error is because you are unable to include the library where the customization function is implemented
Comments
Post a Comment