<div dir="ltr"><div class="gmail_default" style="font-size:small">1) The undefined c_csaxxx symbols are coming from the "libngmath.a" library. If you add "-lngmath" after "-lncarg_c", this should take care of them.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">2) To get EPS files in NCAR Graphics C code, you need to change the "workstation type" argument in a call to "gopen_ws". It's the last argument, and is an integer. You can see documentation on the arguments at:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style><a href="http://www.ncarg.ucar.edu/gks/wks.html">http://www.ncarg.ucar.edu/gks/wks.html</a><br></div><div class="gmail_default" style><br></div><div class="gmail_default" style>Here are some of them:</div><div class="gmail_default"><div class="gmail_default"><br></div><div class="gmail_default"> 1 - NCGM</div><div class="gmail_default"> 8 - non-existing X11 window.<br></div><div class="gmail_default"> 11 - PDF in portrait mode.<br></div><div class="gmail_default"> 12 - PDF in landscape mode.</div><div class="gmail_default"> 20 - color PostScript in portrait mode.</div><div class="gmail_default"> 21 - color Encapsulated PostScript (EPS) in portrait mode</div><div class="gmail_default"> 22 - color Encapsulated PostScript Interchange format (EPSI) in portrait mode.</div><div class="gmail_default"> 26 - color PostScript in landscape mode.<br></div><div class="gmail_default"> 27 - color Encapsulated PostScript (EPS) in landscape mode.</div><div class="gmail_default"> 28 - color Encapsulated PostScript Interchange format (EPSI) in landscape mode.</div><div class="gmail_default"><div class="gmail_default"><br></div></div><div style="font-size:small">3) I'm afraid I don't have any answers for you on NCAR Graphics. We are focusing on ways to parallelize NCL under the hood. Some of these involve speeding up internal graphics routines with OpenMP calls, or improving algorithms in general.</div><div style="font-size:small"><br></div><div style="font-size:small">--Mary</div><div style="font-size:small"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 14, 2014 at 4:30 AM, Mathieu Dutour <span dir="ltr"><<a href="mailto:mathieu.dutour@gmail.com" target="_blank">mathieu.dutour@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I would like to use the NCAR graphics but from a C++ interface, that<div>is by using the C interface.<br><div><br></div><div>The commands to compile the binaries is "nhlcc" and it works for</div><div>most examples. However, for some of them, there are missing</div><div>symbols. For example:</div><div><div>mathieu@mathieu-N56VJ:~/opt/ncl_ncarg-6.2.1/lib/ncarg/examples$ nhlcc c_csex01.c</div><div>gcc -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -ansi -fPIC -fopenmp -O c_csex01.c -L/home/mathieu/opt/ncl_ncarg-6.2.1/lib -L/usr/X11R6/lib64 -I/home/mathieu/opt/ncl_ncarg-6.2.1/include -I/usr/X11R6/include -lhlu -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lpthread -lXrender -lbz2 -lgfortran -lm</div><div>/tmp/ccJ9Y1tK.o: In function `main':</div><div>c_csex01.c:(.text+0x7d6): undefined reference to `c_csa1s'</div><div>c_csex01.c:(.text+0x831): undefined reference to `c_csa1s'</div><div>c_csex01.c:(.text+0x88c): undefined reference to `c_csa1s'</div></div><div>I can fix some of those errors, however, there are many libraries in the</div><div>lib directory and it is not so easy to get it right.</div><div><br></div><div>Secondly, in .ncl I can produce the pictures directly in .eps, .pdf or</div><div>.png but the examples (67 of them!) gives the examples as "gmeta"</div><div>file. What would be the command for creating .eps files.</div><div><br></div><div>Lastly, I would like to be able to use NCL in parallel. However, some</div><div>command such as</div><div>c_frame();</div><div>make it clear that the library has some global variables and so is not</div><div>thread-safe. As anybody managed to use NCAR graphics in parallel?</div><div><br></div></div></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>