Oh, interesting. Somehow I don't get this error, even though the headers declare mkdir() to only take one argument. I'll need to look again more closely next time I'm in Windows.
The correct fix is probably to use g_mkdir() instead of mkdir() (It's a wrapper that does exactly what you think: discard the second argument on Windows systems. It might also do some character encoding conversions with non-English path names). Denis On 06/09/2014 08:53 PM, D M German wrote: > > Hi Denis, > > under mingw I get the following compilation error: > > w64-mingw32/include/poppler -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo > -c -o main.o main.c > main.c: In function ‘init_stuff’: > main.c:60:3: error: too many arguments to function ‘mkdir’ > mkdir(tmppath, 0700); // safer (MRU data may be confidential) > ^ > > do you get it too? In the past what I have done is simply remove the > second parameter (via an #ifdef) > > --dmg > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > Xournal-devel mailing list > Xournal-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xournal-devel > -- Denis Auroux aur...@math.berkeley.edu University of California, Berkeley Tel: 510-642-4367 Department of Mathematics Fax: 510-642-8204 817 Evans Hall # 3840 Berkeley, CA 94720-3840 ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems _______________________________________________ Xournal-devel mailing list Xournal-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xournal-devel