List Info

Thread: Segmentation fault (core dumped)




Segmentation fault (core dumped)
user name
2006-06-06 12:09:24
Hi
 
I tried to run a program which uses ublas library and when I run it I got:
 
";Segmentation fault (core dumped)"
 ;
I used ddd to debug it and I saw that the program failes when trying to do:
 
"ublas::vector.resize(3)"
 
Can you tell me what am I doing wrong?
I'm using Cygwin g++  3.4.4
 
Thanks for your help.
Dvir
 
Segmentation fault (core dumped)
user name
2006-06-06 13:36:09
hi,
 try 
ublas::vector a;
a.resize(3);

greetings
Riccardo

On Tue, 2006-06-06 at 15:09 +0300, dvir schirman wrote:
> Hi 
>  
> I tried to run a program which uses ublas library and
when I run it I
> got:
>  
> "Segmentation fault (core dumped)"
>  
> I used ddd to debug it and I saw that the program
failes when trying
> to do:
>  
> "ublas::vector.resize(3)"
>  
> Can you tell me what am I doing wrong?
> I'm using Cygwin g++  3.4.4
>  
> Thanks for your help.
> Dvir
>  
> _______________________________________________
> ublas mailing list
> ublaslists.boost.org
> htt
p://lists.boost.org/mailman/listinfo.cgi/ublas

_______________________________________________
ublas mailing list
ublaslists.boost.org
htt
p://lists.boost.org/mailman/listinfo.cgi/ublas
Segmentation fault (core dumped)
user name
2006-06-06 14:01:57
I see I didnt make myself clear.
 
I wrote:
boost::numeric::ublas::vector a;
 ;
at my header file.
 
and wrote:
a.resize(3);
 
at my implementation file.
So, as I see it, it should work this way.


On 6/6/06, Riccardo Rossi <cimne.upc.edu">rrossicimne.upc.edu> wrote:
hi,
try
ublas::vector a;
a.resize(3);

greetings
Riccardo

On Tue, 2006-06-06 at 15:09 +0300, dvir schirman wrote:
&gt; Hi
>
&gt; I tried to run a program which uses ublas library and when I run it I
> got:
>
> "Segmentation fault (core dumped)&quot;
>
&gt; I used ddd to debug it and I saw that the program failes when trying
&gt; to do:
>
&gt; "ublas::vector.resize(3)&quot;
>
&gt; Can you tell me what am I doing wrong?
>; I'm using Cygwin g++ &nbsp;3.4.4
>
> Thanks for your help.
> Dvir
>
> _______________________________________________
> ublas mailing list
> lists.boost.org">ublaslists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/ublas

_______________________________________________
ublas mailing list
lists.boost.org">ublaslists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/ublas

Segmentation fault (core dumped)
user name
2006-06-06 13:59:16
I see I didnt make myself clear.
&nbsp;
I wrote:
boost::numeric::ublas::vector a;
 ;
at my header file.
&nbsp;
and wrote:
a.resize(3);
 
at my implementation file.
So, as I see it, it should work this way.
&nbsp;
Dvir

 
On 6/6/06, Riccardo Rossi <cimne.upc.edu">rrossicimne.upc.edu> wrote:
hi,
try
ublas::vector a;
a.resize(3);

greetings
Riccardo

On Tue, 2006-06-06 at 15:09 +0300, dvir schirman wrote:
&gt; Hi
>
&gt; I tried to run a program which uses ublas library and when I run it I
> got:
>
> "Segmentation fault (core dumped)&quot;
>
&gt; I used ddd to debug it and I saw that the program failes when trying
&gt; to do:
>
&gt; "ublas::vector.resize(3)&quot;
>
&gt; Can you tell me what am I doing wrong?
>; I'm using Cygwin g++ &nbsp;3.4.4
>
> Thanks for your help.
> Dvir
>
> _______________________________________________
> ublas mailing list
> lists.boost.org">ublaslists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/ublas

_______________________________________________
ublas mailing list
lists.boost.org">ublaslists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/ublas

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )