On Mon, Jun 22, 2015 at 7:40 PM, Michael Berman <mrberma...@gmail.com>
wrote:

> It looks like you are trying to create your own vector class named Vector
> (keeping notice of the capitalized 'V').
>
> These Vector method definitions need a definition for the Vector class,
> which is presumably in your Vector.hpp.  I would like to note that the .hpp
> extension indicates a template header library, and all of the method
> definitions should be inline in the template class definition, or in an
> include file; not in a compiled object file.
>
> It appears (at least from this lone file) that you are not using
> std::vector at all, and you may wish to remove the '#include <vector>' line
> to keep things clean in your code and not include not used pieces of code.
>
> Back to your example not working, your #include "Vector.hpp" must point to
> the file that presumably contains the class definition.  for this include
> to work as stated, the Vector.hpp file will have to be in the same
> directory as the file that you posted; otherwise you will have to give a
> relative (or absolute) path to this file in the include statement.
>
>
> I hope this helps you some!
>
> Michael
>
>
> P.S. Why are you not using std::vector?
>


David,
While I'm kind of curious about you making your own vector class, too, this
is not about GNU Radio but generally C++ coding issues. Please move this
conversation to a more appropriate forum about programming.

Thanks,
Tom




> On Mon, Jun 22, 2015 at 3:35 PM, dcardona <davidjcg2...@gmail.com> wrote:
>
>> Hi
>>
>> Yes, I tried to use only #include <vector>, but it gives me an error for
>> each vector a I use.
>>
>> Vector f (at the beginning the following code) is one of the vectors which
>> needs the #include "vector.hpp".
>>
>> intentooptimizar.cpp
>> <http://gnuradio.4.n7.nabble.com/file/n54350/intentooptimizar.cpp>
>>
>> Thank you.
>>
>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to