From: Jack W. (jofny) <xa...@vi...> - 2003-09-14 18:59:23
|
And are you using the latest tarball? ----- Original Message ----- From: "Jorge J. Moratilla Porras" <jmo...@e-...> To: <Bai...@li...> Sent: Sunday, September 14, 2003 12:23 PM Subject: [Baitnswitch-users] I got a problem while compiling switchcore.c > I got several errors about pthreads library. I'm adding the output. What > is wrong? > > I changed line start = time(0); > > from its original position to the line after the #ifdef statement and i > was successful with compiling, but when i run it i got a segmentation > fault. Now i'm trying to understand the code to see if i can debug more > errors, but i'd appreciate any kind of help in this task. I'm not a C > programmer. > > Thanks In Advance > > > > bait@baitnswitch:~/soft/bns/switching$ gcc -lpthreads -o switchcore > switchcore.c > switchcore.c: In function `main': > switchcore.c:686: parse error before `unmark_t' > switchcore.c:701: `pid' undeclared (first use in this function) > switchcore.c:701: (Each undeclared identifier is reported only once > switchcore.c:701: for each function it appears in.) > switchcore.c:715: `sid' undeclared (first use in this function) > switchcore.c:740: `ret' undeclared (first use in this function) > switchcore.c:740: `unmark_t' undeclared (first use in this function) > switchcore.c:751: `lock' undeclared (first use in this function) > switchcore.c:753: `cv' undeclared (first use in this function) > switchcore.c:759: `ret2' undeclared (first use in this function) > switchcore.c:759: `log_alert_t' undeclared (first use in this function) > bait@baitnswitch:~/soft/bns/switching$ > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Baitnswitch-users mailing list > Bai...@li... > https://lists.sourceforge.net/lists/listinfo/baitnswitch-users > |