From: Scott C. <ced...@gm...> - 2007-01-12 18:07:21
|
Rather than running gcc on associate.c directly, try re-running ./configure and make from the top-level directory of the Infomap source distribution. Scott On 1/12/07, Catherine Canevet <cca...@in...> wrote: > Hi, > > Happy new year everyone. I'm a PhD student working on biomedial > literature mining at the University of Edinburgh. I'd like to run > Infomap and retreive about 500 documents. I tried "associate -d -n 500 > -t -c model/ query" and I got the following message: > ********************************************* > Number of neighbors can be at most 200; printing 200. > (Edit associate.h and recompile to change.) > ********************************************* > > I then modified associate.h accordingly and tried to compile gcc > associate.c, I got: > ********************************************* > In file included from associate.h:37, > from associate.c:34: > list.h:45:17: error: env.h: No such file or directory > In file included from associate.h:39, > from associate.c:34: > search_types.h:40: error: expected specifier-qualifier-list before > 'MATRIX_TYPE' > In file included from query.h:46, > from associate.h:40, > from associate.c:34: > files.h:49: error: expected specifier-qualifier-list before 'FILE' > In file included from associate.h:40, > from associate.c:34: > query.h:54: error: expected declaration specifiers or '...' before > 'MATRIX_TYPE' > query.h:55: error: expected declaration specifiers or '...' before > 'MATRIX_TYPE' > In file included from associate.c:34: > associate.h:58: error: expected ')' before '*' token > associate.c:37:23: error: filenames.h: No such file or directory > associate.c:38:26: error: model_params.h: No such file or directory > associate.c:58: error: expected ')' before 'query_vector' > associate.c:61: error: expected '=', ',', ';', 'asm' or '__attribute__' > before 'model_params' > associate.c: In function 'main': > associate.c:64: error: 'DBM' undeclared (first use in this function) > associate.c:64: error: (Each undeclared identifier is reported only once > associate.c:64: error: for each function it appears in.) > associate.c:64: error: 'nu2na' undeclared (first use in this function) > associate.c:66: error: 'MATRIX_TYPE' undeclared (first use in this function) > associate.c:66: error: 'queryvector' undeclared (first use in this function) > associate.c:72: error: 'datum' undeclared (first use in this function) > associate.c:72: error: expected ';' before 'key' > associate.c:73: error: 'BUFSIZ' undeclared (first use in this function) > associate.c:96: error: 'FILE' undeclared (first use in this function) > associate.c:96: error: 'vectorfile' undeclared (first use in this function) > associate.c:119: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:119: error: 'stderr' undeclared (first use in this function) > associate.c:134: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:142: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:149: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:157: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:166: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:180: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:194: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:217: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:230: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:238: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:247: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:263: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:278: warning: incompatible implicit declaration of built-in > function 'sprintf' > associate.c:290: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:294: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:301: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:304: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:315: warning: incompatible implicit declaration of built-in > function 'sprintf' > associate.c:315: error: 'MODEL_PARAMS_BIN_FILE' undeclared (first use in > this function) > associate.c:316: error: 'model_params' undeclared (first use in this > function) > associate.c:317: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:323: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:330: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:334: error: 'MANY_FILES' undeclared (first use in this function) > associate.c:335: error: 'NUMBER2NAME_FILE' undeclared (first use in this > function) > associate.c:336: error: 'O_RDONLY' undeclared (first use in this function) > associate.c:344: error: too many arguments to function 'build_query_vector' > associate.c:345: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:352: error: 'FILES' has no member named 'wordvecbin' > associate.c:355: error: 'FILES' has no member named 'artvecbin' > associate.c:362: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:368: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:380: error: 'key' undeclared (first use in this function) > associate.c:380: error: 'NEIGHBOR_ITEM' has no member named 'offset' > associate.c:381: error: 'NEIGHBOR_ITEM' has no member named 'offset' > associate.c:382: error: 'content' undeclared (first use in this function) > associate.c:382: error: 'FILES' has no member named 'o2w' > associate.c:383: error: 'NEIGHBOR_ITEM' has no member named 'string' > associate.c:385: error: 'NEIGHBOR_ITEM' has no member named 'string' > associate.c:389: error: 'NEIGHBOR_ITEM' has no member named 'offset' > associate.c:390: error: 'NEIGHBOR_ITEM' has no member named 'offset' > associate.c:391: error: 'FILES' has no member named 'o2a' > associate.c:394: error: 'ONE_FILE' undeclared (first use in this function) > associate.c:395: error: 'NEIGHBOR_ITEM' has no member named 'string' > associate.c:400: error: 'content2' undeclared (first use in this function) > associate.c:401: error: 'NEIGHBOR_ITEM' has no member named 'string' > associate.c:403: error: 'NEIGHBOR_ITEM' has no member named 'string' > associate.c:408: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:419: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:427: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:433: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c: In function 'usage': > associate.c:458: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:458: error: 'stderr' undeclared (first use in this function) > associate.c: In function 'check_args': > associate.c:481: warning: incompatible implicit declaration of built-in > function 'fprintf' > associate.c:481: error: 'stderr' undeclared (first use in this function) > associate.c: At top level: > associate.c:495: error: expected ')' before '*' token > associate.c:512: error: expected ')' before 'query_vector' > ********************************************* > > Has anyone ever tried to augment the number of neighbors before? Could > anyone help me? > With many thanks, > Catherine. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > infomap-nlp-users mailing list > inf...@li... > https://lists.sourceforge.net/lists/listinfo/infomap-nlp-users > |