Dave, I tried with win-bash: cd c:"\Program Files\plplot\share\plplot5.9.5\examples\f77" C:\Program Files\plplot\share\plplot5.9.5\examples\f77>c:\Win-bash\win-bash.exe bash$ gcc -o test x01f.f `pkg-config --libs --cflags glib-2.0` Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccARvpml.o:x01f.f:(.text+0xe):undefined refe rence to `plparseopts_' C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccARvpml.o:x01f.f:(.text+0x21):undefined ref erence to `plgver_' Followed by many undefined reference errors.
Please note that C:\GTK\Glib\bin is in my PATH. It seems it is not finding glib. I read somewhere that glib needs to be in the PKG_CONFIG_PATH. But I am not sure how to do it. i tried with this in bash: PKG_CONFIG_PATH=C:\GTK\Glib\bin But it does not seem to work. Any ideas? Thanks, Vince 2010/3/22 David MacMahon <[email protected]>: > > On Mar 22, 2010, at 9:58 , Vincenzo Urso Miano wrote: > >> C:\Program Files\plplot\share\plplot5.9.5\examples\f77>gcc -o test x01f.f >> `pkg-c >> onfig --libs --cflags glib-2.0` >> gcc: `pkg-config: No such file or directory >> gcc: glib-2.0`: No such file or directory >> f771.exe: error: unrecognized command line option "-flibs" >> f771.exe: error: unrecognized command line option "-fcflags" >> __________________________________________________ >> >> Could you help me with that? > > It looks like you are trying to use bash's backtick substitution with > Windows command prompt (e.g. cmd.exe). I don't think Windows command prompt > supports backtick substitution, so it passes "`pkg-config" and "--libs" and > "--cflags" and "glib-2.0`" as arguments to gcc and gcc treats "`pkg-config" > and "glib-2.0`" as filenames and "--libs" "--cflags" as other gcc options. > > Try running the above command gcc command in a bash shell. > > Hope this helps, > Dave > > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Plplot-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-general
