[Top][All Lists]

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

Re: [igraph] about globle variables

From: Gábor Csárdi
Subject: Re: [igraph] about globle variables
Date: Sat, 11 Jul 2009 08:50:09 +0200

I cannot reproduce the error. Your program works fine (=no segfault)
for me, even with the *time and *count variables. Please give some
more information about your platform and double check that this
program (after removing the ... lines) really segfaults. Isn't it
possible that something in the ... part causes the error?

On Sat, Jul 11, 2009 at 5:23 AM, qingchuan sun<address@hidden> wrote:
> i know it is not a good idea to use names such as time and count for
> globle variables. But i use it, and a strange thing happend. The code
> is list here
> #include <stdio.h>
> #include <igraph.h>
> FILE *time, *count;
> igraph_t G;
> main()
> {
>    ...
>    igraph_watts_strogatz_game(&G,1,10000,3,0.4);
>    ...
> }
> It can be compiled well. But when run it, the problem of segment fault
> occure. If we delete the line "FILE ..." , and compile it, then it can
> work well.
> i want to know, what is the problem with it.
> the version of the igraph i use is 0.5.2
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help

Gabor Csardi <address@hidden>     UNIL DGM

reply via email to

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