Hi Vince, not sure if this is the cause, but you may need to change the order of the libraries. Put -plplotd after -lplplotf77cd. And link with gfortran, not gcc!
Regards, Arjen On 2010-04-02 12:26, Vincenzo Urso Miano wrote: > Hello, > > I am trying to compile my first fortran source and link it with plplot. > Bear in mind that I managed to compile the examples running > ------ > cmake -G "MinGW Makefiles" > make > ----- > in the C:\plplot\share\plplot5.9.5\examples folder. That means that > plplot is built correctly and it works. > > To compile I type: > ---------------------- > path=%PATH%;c:\plplot\bin;C:\plplot\lib\plplot5.9.5 > cd E:\Workspace\temp\plplot > e: > gcc -o test.exe x01f.f -IC:/plplot/include/plplot -LC:/plplot/lib > -lplplotd -lplplotf77d -lplplotf77cd -lcsirocsa -lqsastime > --------------------- > > Note that E:\Workspace\temp\plplot contains the source x01f.f. > here's the result: > > -------------------- > C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccQUTbzm.o:x01f.f:(.text+0xe): > undefined reference to `plparseopts_' > C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccQUTbzm.o:x01f.f:(.text+0x2d): > undefined reference to `s_wsfe' > C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccQUTbzm.o:x01f.f:(.text+0x49): > undefined reference to `do_fio' > C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccQUTbzm.o:x01f.f:(.text+0x5c): > undefined reference to `G77_lnblnk_0' > C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccQUTbzm.o:x01f.f:(.text+0x73): > undefined reference to `do_fio' > C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccQUTbzm.o:x01f.f:(.text+0x78): > undefined reference to `e_wsfe' > C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccQUTbzm.o:x01f.f:(.text+0x117): > undefined reference to `s_stop' > C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../libmingw32.a(main.o):main.c:(.tex > t+0xd2): undefined reference to `winm...@16' > collect2: ld returned 1 exit status > -------------------- > > I don't know what's missing. Could you help me? > Thanks > Vince > > ------------------------------------------------------------------------------ > 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 > ------------------------------------------------------------------------------ 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
