discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] #include "vector.hpp"


From: Michael Berman
Subject: Re: [Discuss-gnuradio] #include "vector.hpp"
Date: Mon, 22 Jun 2015 16:40:03 -0700

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?


On Mon, Jun 22, 2015 at 3:35 PM, dcardona <address@hidden> 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.



--
View this message in context: http://gnuradio.4.n7.nabble.com/include-vector-hpp-tp54344p54350.html
Sent from the GnuRadio mailing list archive at Nabble.com.

_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

[Prev in Thread] Current Thread [Next in Thread]