<div dir="ltr">Hi Mojca,<div>You should definitely compile with gcc (it doesn't have to be the latest release) to avoid all of these issues. In any case, -ansi is added at line 11 of <a href="http://configure.ac">configure.ac</a>. But compilation is currently only supported for the gcc and clang compilers due to the kinds of issues you report.</div><div><br></div><div>-- John</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 16, 2016 at 3:23 AM, Mojca Miklavec <span dir="ltr"><<a href="mailto:mojca.miklavec.lists@gmail.com" target="_blank">mojca.miklavec.lists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
There are further problems with asymptote on Solaris:<br>
<br>
(a) I'm unable to use the latest gcc for the official TL build because<br>
that pulls in many undesired dependencies (included, but not limited<br>
to /opt/csw/lib/libstdc++.so.6).<br>
<br>
(b) As soon as I switch to the default system compiler (cc & CC), the<br>
configure fails with "compiler unable to generate binaries" because<br>
"-ansi" somehow gets added to CFLAGS/CXXFLAGS and compiler doesn't<br>
understand that. The fastest workaround to that problem was defining<br>
some bogus flags like "CFLAGS=-g" (then the -ansi flag wouldn't be<br>
added).<br>
<br>
(c) Then I end up with a number of problems like<br>
"memory.h", line 32: Error: Could not open include file<ext/hash_map>.<br>
that should probably have been sorted out during ./configure (which<br>
should already figure out that ext/hash_map doesn't exist).<br>
<br>
I have found <a href="http://www.oracle.com/technetwork/articles/servers-storage-dev/new-set-and-map-containers-cpp11-2187367.html" rel="noreferrer" target="_blank">http://www.oracle.com/technetwork/articles/servers-storage-dev/new-set-and-map-containers-cpp11-2187367.html</a>,<br>
but I don't have Sun Studio 12.4.<br>
<span class="HOEnZb"><font color="#888888"><br>
Mojca<br>
</font></span></blockquote></div><br></div>