Solaris studio OpenMP runtime library name

Hello:
Imagine I'm using some functions from the OpenMP API as omp_get_wtime(), for example. If I use gcc compiler I need to pass to the linker the order -lgomp as libgomp.a|so is the GNU OpenMP implementation (I know that I can pass -fopenmp instead the -lgomp, but I want to pass -lgomp for example in order to use omp_get_wtime() but not to activate other OpenMP directives in the program). If I use the Intel compiler, the order should be -liomp5 -lpthread and for PGI compilers -lpgmp
But what is the name of the solaris sturio OpenMP runtime library? Which flag should I pass to the linker in order to use the API functions of the OpenMP implementation? I know -xopenmp flag for activate OpenMP, but I want to link only the runtime library
Thanks

Thank you again for your answer:
You are right, I should say my platform. I'm using an Intel Core i5 processor running Debian GNU/Linux (64 bits). I know that the compiler supports only Oracle and RHEL linuxes, but I have downloaded from Oracle and installed the file SolarisStudio12.3-linux-x86-bin.tar.bz2 in my Debian box without problems. The compiler seems to run very well, and the obtained results from the generated binaries are correct, so I suppose that the compiler runs too in Debian.
Inspecting in detail the -xdryrun output I have found the actual path of libmtsk.so in my insyallation: /opt/sun/solarisstudio12.3/prod/lib/compilers/rtlibs/usr/lib/amd64
Why this path is not loaded by default by the compiler as when I use -xopenmp, I don't know. Now, my program runs.
The reason to use omp_get_wtime() function when I not use OpenMP pragmas is because not exists (at least I don't know) any method to obtain millisecond precision using ISO C99. I know functions as clock_gettime() but is only POSIX complaint. The OpenMP is not C99 of course, but OpenMP is present in almost all platforms and comes with the majority of moder compilers. If anyone knows an ISO C99 method to obtain millisecond (or better) precision to compute time, I would like to know about :)
About your suggestion of compile the program with -xopenmp flag and run with OMP_NUM_THREADS=1, the execution of a program compiled without OpenMP and with OpenMP+OMP_NUM_THREADS=1 is not the same. The latter one is slower due to OpenMP in complicated loops with barriers or other OpenMP orders as flush() for example, so I need to compile pure non-OpenMP code. Other case is, for example, when you want to use the break clause inside a for loop that is possible to stop before the last iteration. In OpenMP the break sentence cannot be used and you should to use dirty tricks to simulate it. This makes a bit slower the OpenMP execution but with the correct number of processors is faster than serial code, but definitively running it with OMP_NUM_THREADS=1 is not a good idea.
Thanks again for your time

Similar Messages

  • HT1925 I have a problem, whenever I try to install the iTunes This brings me to this problem  "microsoft visual studio c + + runtime library" Can I have a solution for this?  Thanks

    I have a problem, whenever I try to install the iTunes This brings me to this problem
    "microsoft visual studio c + + runtime library" Can I have a solution for this?
    Thanks

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • CBLAS in sun performance library coming with solaris studio 12.2

    Hello,
    In sunperf library coming with sun studio 12u1 (linux x86) I can use cblas callings using the standard names cblas_xxxx. This interface do not appears in sunperf.h (you can use standard cblas.h) but the objects are in libsunperf.(a|so).
    But in solaris studio 12.2 libsunperf cblas_xxxx objects do not exists. Is this normal? Contains libsunperf a standard c blas interface?
    Thanks

    Hello again,
    In this blog post
    http://www.mlds-networks.com/index.php/component/option,com_mojo/Itemid,29/p,35/
    is explained how to link the ACML (AMD core math library) in order to use the standard CBLAS interface (ACML do not provides a standard CBLAS). I tried it and all runs OK. I did the same for the sun performance library in solstudio 12.2 and the compilation proccess runs ok, but in the testing step all functions fails becaude an incorrect argument in each function.
    Exists any way for use the standard CBLAS interface with sun performance library? As I noted in my previous post, version 12.1 of sunstudio libsunperf contains the standard CBLAS interface, but I would like to use version 12.2
    Thanks

  • Assertion failure from ccfe in Solaris Studio 12.4 beta July refresh

    I have found a way to get an assertion failure from the ccfe program that comes with the Solaris Studio 12.4 beta July refresh.  The error that gets printed is:
    >> Assertion:   (../lnk/funcsym.cc, line 1679)
        while processing text_woarchive.pre.cpp at line 0.
    The problem occurs whilst compiling Boost 1.54.  The original file in the distribution that causes it is libs/serialization/src/text_woarchive.cpp.
    This problem can be reproduced by getting the pre-processed code I've put on http://pastebin.com/E9vxi2z7 and pasting it into a file called text_woarchive.pre.cpp.  Then run:
    CC -std=c++11 -mt -m64 -c -o text_woarchive.o text_woarchive.pre.cpp
    and you get the assertion failure.
    Running:
    CC '-#' -std=c++11 -mt -m64 -c -o text_woarchive.o text_woarchive.pre.cpp
    shows that the assertion is coming from ccfe.
    In case you go back to the original Boost source code I should tell you that prior to generating the pre-processed source I changed:
    #ifdef __SUNPRO_CC
    to:
    #if 0
    in boost/archive/detail/register_archive.hpp.  I did this because there was an error in the __SUNPRO_CC section and I wondered if that workaround code was no longer required with the more modern C++ compiler.  Therefore, I cannot guarantee that the pre-processed source is 100% valid C++ code.  However, even if it's not it would be nice to get a clear error message out of ccfe rather than an assertion failure.
    In case it's relevant, I'm working on Oracle Solaris 10 1/13 s10x_u11wos_24a X86.

    You mentioned in the other answer that you are testing with Boost 1.55.  Are you testing this in C++11 mode?
    Today I downloaded Boost 1.55 and did the following:
    In both tools/build/v2/engine/build.sh and tools/build/v2/tools/sun.jam globally replace SUNWspro with SolarisStudio12.4-beta_jul14-solaris-x86
    In tools/build/v2/tools/sun.jam replace:
    feature.extend stdlib : sun-stlport ;
    feature.compose <stdlib>sun-stlport
        : <cxxflags>-library=stlport4 <linkflags>-library=stlport4
    with:
    feature.extend stdlib : sun-stlport ;
    feature.compose <stdlib>sun-stlport
        : <cxxflags>-std=c++11 <linkflags>-std=c++11
    Note: This is just the quick way I found to con the Boost build system into using C++11 instead of STLport.  The feature in the jam file still has stlport in its name, but that's only a name and the code is being built in C++11 mode.
    In boost/math/special_functions/detail/lanczos_sse2.hpp change line 15 from:
    #if defined(__GNUC__) || defined(__PGI)
    to:
    #if defined(__GNUC__) || defined(__PGI) || defined(__SUNPRO_CC)
    Run:
    ./bootstrap.sh --without-libraries=context --without-libraries=coroutine --without-libraries=graph_parallel --without-libraries=log --without-libraries=mpi --without-libraries=python --without-libraries=test --without-icu
    Run:
    ./b2 -j4 --layout=versioned --disable-icu address-model=64 threading=multi optimization=speed inlining=full
    At this point the vast majority of the code builds, but does not link.
    There are 3 problems:
    The compilation problem with tuple that you've already fixed
    A linker problem with finding std::string related symbols - maybe also related to the gcc header upgrade and now fixed?
    Numerous compilation problems caused by boost/archive/detail/register_archive.hpp
    For this last one the code in the #ifdef __SUNPRO_CC section of boost/archive/detail/register_archive.hpp does appear to be invalid, and leads to the errors:
    "./boost/archive/detail/register_archive.hpp", line 45: Error: The function "adjust_counter" must have a prototype.
    "./boost/archive/detail/register_archive.hpp", line 46: Error: Expression must have a constant value.
    "./boost/archive/detail/register_archive.hpp", line 47: Error: Expression must have a constant value.
    "./boost/archive/detail/register_archive.hpp", line 48: Error: An integer constant expression is required within the array subscript operator.
    Even with Boost 1.55, attempts to fix this lead to the same ccfe assertion.  Trying to use the #else part of the code as I described in the original post does, as does moving the line:
    char adjust_counter(counter<0>);
    so that it comes before the place where adjust_counter is used also then leads to the same assertion:
    >> Assertion:   (../lnk/funcsym.cc, line 1679)
    It's as though any change to boost/archive/detail/register_archive.hpp that fixes the basic code ordering issue lets ccfe get far enough to cause the assertion.
    If there is somebody in your team looking at whether Boost 1.55 compiles with Solaris Studio 12.4 in C++11 mode then hopefully they can relate to what I'm seeing here.  One key point is that they'll have had to edit the jam files to use C++11 mode.
    The other thing is that any insights the person who has been trying to build Boost 1.55 has would be very useful.  I know you don't want to get into officially supporting it, but maybe a blog post with any unofficial hints and tips on getting Boost to build in C++11 mode could be a way to share knowledge.

  • Qt QMake is missing - Solaris 11 and Solaris Studio 12.3

    OS: Oracle Solaris 11 - http://www.oracle.com/technetwork/server-storage/solaris11/overview/index.html
    Development tools: Solaris Studio 12.3 - http://www.oracle.com/technetwork/server-storage/solarisstudio/overview/index.html
    Hi, I want to make Qt desktop applications for Oracle Solaris 11, and Solaris Studio supports Qt projects. However the binary QMake is missing.
    Is it available somewhere?
    Thank you a lot.
    Edited by: 909513 on Jan 22, 2012 6:05 PM
    Edited by: 909513 on Jan 22, 2012 6:06 PM

    Here's what I used to compile up (I think) 90%+ of Qt 4.8.4. The configure step creates qmake and the compile rolls along until it hits a lot of non standard C++ code. But you get qmake out of it. The tarball is the latest snapshot of the 4.8.x git tree.
    Caveat: It's being built using Sun Studio 12.3 and the stdcxx library from my package site, along with a bunch of dependant packages from there. I never got Qt 4.8.4 to finish compiling with webkit, the 3rdparty/javascriptcore/JavaScriptCore/* files are truly awful non compliant code and error out every step of the compile. Sigh.
    Good luck
    ================================================================================
    qt 4.8.2013.06.24
        https://qt.gitorious.org/qt/qt/trees/4.8
        Compile stdcxx 4.2.1    Done
        Compile dbus 1.7.2      Done
        Compile libmng 1.0.10   Skipped
        setenv CC "cc"
        setenv CXX "CC"
    or
        setenv CC "cc -xtarget=ultra -m64 -xcode=pic32"
        setenv CXX "CC -xtarget=ultra -m64 -xcode=pic32"
        setenv LDFLAGS "-L/usr/local/lib -mt -library=no%Cstd -L/usr/local/lib -lstdcxx4"
        setenv CFLAGS "-I/usr/local/include -DUSE_SYSTEM_MALLOC"
        setenv CXXFLAGS "-I/usr/local/include -mt -library=no%Cstd -L/usr/local/lib -lstdcxx4 -DUSE_SYSTEM_MALLOC"
        setenv LINK "${CXX} -I/usr/local/include -mt -library=no%Cstd -L/usr/local/lib -lstdcxx4"
        setenv AR "${CXX} -I/usr/local/include -mt -library=no%Cstd -L/usr/local/lib -lstdcxx4 -xar -o"
        setenv CC "${CC} ${CFLAGS}"
        setenv CXX "${CXX} ${CXXFLAGS}"
        cd /var/tmp
        rm -rf qt-qt
        gunzip -c /usr/local/src/graphics/qt-4.8.2013.06.24.tar.gz | gtar -xvf -
        cd qt-qt
        /bin/perl -pe 's#/bin/sh#/bin/bash#'                              -i configure
        /bin/perl -pe 's#OPT_CONFIRM_LICENSE=no#OPT_CONFIRM_LICENSE=yes#' -i configure
        /bin/perl -pe 's#^QMAKE_INCDIR\s+=.*#QMAKE_INCDIR=/usr/local/include#'         -i mkspecs/solaris-cc/qmake.conf
        /bin/perl -pe 's#^QMAKE_LIBDIR\s+=.*#QMAKE_LIBDIR=/usr/local/lib#'             -i mkspecs/solaris-cc/qmake.conf
        /bin/perl -pe 's#^QMAKE_INCDIR_X11\s+=.*#QMAKE_INCDIR_X11=/usr/local/include#' -i mkspecs/solaris-cc/qmake.conf
        /bin/perl -pe 's#^QMAKE_LIBDIR_X11\s+=.*#QMAKE_LIBDIR_X11=/usr/local/lib#'     -i mkspecs/solaris-cc/qmake.conf
        /bin/perl -pe "s#^QMAKE_CC\s+=.*#QMAKE_CC=${CC}#"                              -i mkspecs/solaris-cc/qmake.conf
        /bin/perl -pe "s#^QMAKE_CXX\s+=.*#QMAKE_CXX=${CXX}#"                           -i mkspecs/solaris-cc/qmake.conf
        /bin/perl -pe "s#^QMAKE_LINK\s+=.*#QMAKE_LINK=${LINK}#"                        -i mkspecs/solaris-cc/qmake.conf
        /bin/perl -pe "s#^QMAKE_LINK_SHLIB\s+=.*#QMAKE_LINK_SHLIB=${LINK}#"            -i mkspecs/solaris-cc/qmake.conf
        /bin/perl -pe "s#^QMAKE_AR\s+=.*#QMAKE_AR=${AR} #"                             -i mkspecs/solaris-cc/qmake.conf
        /bin/perl -pe 's#canBuildWebKit=\"no\"#canBuildWebKit=\"yes\"#'                -i configure
        /bin/perl -pe 's#canBuildQtConcurrent=\"no\"#canBuildQtConcurrent=\"yes\"#'    -i configure
    ./configure -prefix /usr/local \
    -qpa xcb \
    -release \
    -opensource \
    -shared \
    -no-fast \
    -largefile \
    -no-system-proxies \
    -exceptions \
    -accessibility \
    -stl \
    -qt-sql-sqlite \
    -system-sqlite \
    -no-qt3support \
    -xmlpatterns \
    -multimedia \
    -audio-backend \
    -no-phonon \
    -phonon-backend \
    -svg \
    -webkit \
    -x11 \
    -no-javascript-jit \
    -script \
    -no-scripttools \
    -declarative \
    -platform solaris-cc \
    -no-mmx \
    -no-3dnow \
    -no-sse \
    -no-sse2 \
    -no-sse3 \
    -no-sse4.1 \
    -no-sse4.2 \
    -no-avx \
    -no-neon \
    -system-zlib \
    -system-libtiff \
    -system-libpng \
    -no-libmng \
    -system-libjpeg \
    -openssl \
    -nomake tests \
    -R /usr/local/lib \
    -I /usr/local/include \
    -L /usr/local/lib \
    -verbose \
    -no-cups \
    -iconv \
    -no-gtkstyle \
    -no-nas-sound \
    -sm \
    -xshape \
    -no-xvideo \
    -xsync \
    -xinerama \
    -xcursor \
    -xfixes \
    -no-xrandr \
    -xrender \
    -mitshm \
    -fontconfig \
    -no-xinput \
    -xkb \
    -no-glib \
    -confirm-license \
    -system-freetype
        foreach file (3rdparty/javascriptcore/JavaScriptCore/runtime/* 3rdparty/javascriptcore/JavaScriptCore/runtime/* 3rdparty/javascriptcore/JavaScriptCore/API/*)
            perl -pe 's#ENABLE\(GLIB_SUPPORT\)#0#' -i $file
            perl -pe 's#OS\(DARWIN\)#0#' -i $file
            perl -pe 's#OS\(WINCE\)#0#' -i $file
            perl -pe 's#OS\(WINDOWS\)#0#' -i $file
            perl -pe 's#OS\(SYMBIAN\)#0#' -i $file
            perl -pe 's#OS\(OPENBSD\)#0#' -i $file
            perl -pe 's#OS\(QNX\)#0#' -i $file
            perl -pe 's#OS\(ANDROID\)#0#' -i $file
            perl -pe 's#OS\(RVCT\)#0#' -i $file
            perl -pe 's#OS\(FREEBSD\)#0#' -i $file
            perl -pe 's#OS\(HAIKU\)#0#' -i $file
            perl -pe 's#OS\(NETBSD\)#0#' -i $file
            perl -pe 's#OS\(MAC_OS_X\)#0#' -i $file
            perl -pe 's#OS\(IOS\)#0#' -i $file
            perl -pe 's#OS\(AIX\)#0#' -i $file
            perl -pe 's#OS\(LINUX\)#0#' -i $file
            perl -pe 's#OS\(UNIX\)#1#' -i $file
            perl -pe 's#OS\(SOLARIS\)#1#' -i $file
            perl -pe 's#PLATFORM\(BREWMP\)#0#' -i $file
            perl -pe 's#PLATFORM\(MAC\)#0#' -i $file
            perl -pe 's#PLATFORM\(WIN\)#0#' -i $file
            perl -pe 's#PLATFORM\(CHROMIUM\)#0#' -i $file
            perl -pe 's#PLATFORM\(WX\)#0#' -i $file
            perl -pe 's#PLATFORM\(GTK\)#0#' -i $file
            perl -pe 's#COMPILER\(MSVC\)#0#' -i $file
            perl -pe 's#COMPILER\(MINGW\)#0#' -i $file
            perl -pe 's#COMPILER\(GCC\)#0#' -i $file
        end
        perl -pe '($. == 28) && s/^/#include "DateConversion.h"\n#include "DateInstance.h"/' -i 3rdparty/javascriptcore/JavaScriptCore/runtime/DateInstanceCache.h
        foreach file (3rdparty/javascriptcore/JavaScriptCore/runtime/*)
            perl -pe 's#JS_EXPORTDATA#__declspec(dllexport)#' -i $file
        end
        gmake
    If you get this far you'll hit the dodgy code, but you'll have a qmake binary made. You can remove the -webkit option and it'll actually build qt I believe, but alas I need webkit
    ta,
    Mark

  • Help compiling R using Solaris Studio

    I am trying to compile R 2.14 using the Solaris Studio. The configure command works, with some tweaking ;-), but it I get a lot of "symbols not found" error messages (see below).
    Has anyone been able to compile R with the Solaris Studio? Which libraries or files am I missing and how should I specify them.
    thanks in advance!
    Roger
    cc -m64 -xopenmp -L/opt/sunstudio12.1/lib/amd64 -o R.bin Rmain.o libR.a -library=sunperf\
    -R/opt/solstudio12.2/lib/amd64 -R/usr/local/bin/R-2.14.0/lib64 -R/user/openwin/lib -lfai -lfui -lfsu -lsunquad -lsunmath -lmtsk -lm -lnsl\
    -lsocket -lrt -ldl -lm -licuuc -licui18n
    cc: Warning: Optimizer level changed from 0 to 3 to support parallelized code.
    Undefined               first referenced
    symbol                in file
    cg_ libR.a(registration.o)
    ch_ libR.a(registration.o)
    rg_ libR.a(registration.o)
    rs_ libR.a(registration.o)
    Rz_uncompress libR.a(connections.o)
    bincount libR.a(registration.o)
    Rz_inflate libR.a(connections.o)
    pnbinom_mu libR.a(arithmetic.o)
    qnbinom_mu libR.a(arithmetic.o)
    rnbinom_mu libR.a(random.o)
    dnbinom_mu libR.a(arithmetic.o)
    Rf_df libR.a(arithmetic.o)
    Rf_dt libR.a(arithmetic.o)
    Rf_pf libR.a(arithmetic.o)
    Rf_pt libR.a(arithmetic.o)
    Rf_qf libR.a(arithmetic.o)
    Rf_qt libR.a(arithmetic.o)
    Rf_rf libR.a(random.o)
    Rf_rt libR.a(random.o)
    R_ProcessEvents libR.a(errors.o)
    Rz_crc32 libR.a(connections.o)
    chol_ libR.a(registration.o)
    do_syssleep libR.a(names.o)
    R_zeroin2 libR.a(optimize.o)
    R_EditFiles libR.a(platform.o)
    R_getProcTime libR.a(memory.o)
    lzma_lzma_preset libR.a(connections.o)
    lzma_end libR.a(connections.o)
    R_ExpandFileName libR.a(platform.o)
    R_OpenInitFile libR.a(main.o)
    R_getClockIncrement libR.a(memory.o)
    BZ2_bzDecompress libR.a(dounzip.o)
    R_ReadConsole libR.a(main.o)
    Rf_initialize_R Rmain.o
    call_dqags libR.a(registration.o)
    call_dqagi libR.a(registration.o)
    Rf_lchoose libR.a(arithmetic.o)
    R_ChooseFile libR.a(platform.o)
    Rz_deflateInit2_ libR.a(connections.o)
    lzma_code libR.a(connections.o)
    N01_kind libR.a(RNG.o)
    do_machine libR.a(names.o)
    R_max_col libR.a(registration.o)
    R_ClearerrConsole libR.a(scan.o)
    do_dataviewer libR.a(names.o)
    Rf_InitEd libR.a(main.o)
    pcre_maketables libR.a(grep.o)
    tre_regaparams_default libR.a(agrep.o)
    libintl_gettext libR.a(main.o)
    libintl_textdomain libR.a(main.o)
    lzma_stream_decoder libR.a(connections.o)
    R_Busy libR.a(main.o)
    Rf_dnf libR.a(arithmetic.o)
    Rf_dnt libR.a(arithmetic.o)
    Rf_pnf libR.a(arithmetic.o)
    Rf_pnt libR.a(arithmetic.o)
    Rf_qnf libR.a(arithmetic.o)
    Rf_qnt libR.a(arithmetic.o)
    BZ2_bzRead libR.a(connections.o)
    Rf_choose libR.a(arithmetic.o)
    Brent_fmin libR.a(optimize.o)
    BZ2_bzDecompressEnd libR.a(dounzip.o)
    Rf_dbinom libR.a(arithmetic.o)
    Rf_dchisq libR.a(arithmetic.o)
    R_cumsum libR.a(registration.o)
    Rf_dgamma libR.a(arithmetic.o)
    Rf_dhyper libR.a(arithmetic.o)
    Rf_dlogis libR.a(arithmetic.o)
    Rf_dlnorm libR.a(arithmetic.o)
    Rf_dnbeta libR.a(arithmetic.o)
    Rf_dnorm4 libR.a(arithmetic.o)
    fft_factor libR.a(fourier.o)
    lzma_stream_encoder libR.a(connections.o)
    Rf_fround libR.a(arithmetic.o)
    Rf_ftrunc libR.a(arithmetic.o)
    tre_regawexec libR.a(agrep.o)
    Rz_compress libR.a(connections.o)
    do_addhistory libR.a(names.o)
    Rf_pbinom libR.a(arithmetic.o)
    Rf_pchisq libR.a(arithmetic.o)
    Rf_pgamma libR.a(arithmetic.o)
    Rf_phyper libR.a(arithmetic.o)
    Rf_plogis libR.a(arithmetic.o)
    Rf_plnorm libR.a(arithmetic.o)
    Rf_pnbeta libR.a(arithmetic.o)
    Rf_pnorm5 libR.a(arithmetic.o)
    Rf_qbinom libR.a(arithmetic.o)
    R_pretty libR.a(registration.o)
    R_cpolyroot libR.a(complex.o)
    Rf_qchisq libR.a(arithmetic.o)
    Rf_ptukey libR.a(arithmetic.o)
    Rf_qgamma libR.a(arithmetic.o)
    Rf_qhyper libR.a(arithmetic.o)
    Rf_qlogis libR.a(arithmetic.o)
    Rf_qlnorm libR.a(arithmetic.o)
    Rf_qnbeta libR.a(arithmetic.o)
    Rf_qnorm5 libR.a(arithmetic.o)
    bakslv libR.a(registration.o)
    Rf_rbinom libR.a(random.o)
    Rf_rchisq libR.a(random.o)
    Rf_qtukey libR.a(arithmetic.o)
    Rf_rgamma libR.a(random.o)
    Rf_rhyper libR.a(random.o)
    Rf_rlogis libR.a(random.o)
    Rf_rlnorm libR.a(random.o)
    R_rowsum libR.a(registration.o)
    str_signif libR.a(registration.o)
    Rf_pcauchy libR.a(arithmetic.o)
    dchdc_ libR.a(registration.o)
    do_system libR.a(names.o)
    do_X11 libR.a(names.o)
    dpbfa_ libR.a(registration.o)
    dpbsl_ libR.a(registration.o)
    dpoco_ libR.a(registration.o)
    dpodi_ libR.a(registration.o)
    dpofa_ libR.a(registration.o)
    dposl_ libR.a(registration.o)
    dqrcf_ libR.a(registration.o)
    dqrdc_ libR.a(registration.o)
    dqrls_ libR.a(registration.o)
    dqrqy_ libR.a(registration.o)
    dqrsl_ libR.a(registration.o)
    dqrxb_ libR.a(registration.o)
    dsvdc_ libR.a(registration.o)
    dtrco_ libR.a(registration.o)
    dtrsl_ libR.a(registration.o)
    wilcox_free libR.a(registration.o)
    fdhess libR.a(optimize.o)
    R_ShowFiles libR.a(platform.o)
    BZ2_bzReadGetUnused libR.a(connections.o)
    tre_regaexecb libR.a(agrep.o)
    BZ2_bzReadOpen libR.a(connections.o)
    R_zeroin libR.a(optimize.o)
    pcrevalid_utf8 libR.a(util.o)
    machar libR.a(platform.o)
    Rf_pnchisq libR.a(arithmetic.o)
    Rf_pnbinom libR.a(arithmetic.o)
    lzma_crc64 libR.a(util.o)
    optif9 libR.a(optimize.o)
    rcont2 libR.a(random.o)
    R_pretty0 libR.a(engine.o)
    setulb libR.a(optim.o)
    Rf_qcauchy libR.a(arithmetic.o)
    R_tabulate libR.a(registration.o)
    tre_regncompb libR.a(grep.o)
    tre_regnexecb libR.a(grep.o)
    Rf_pwilcox libR.a(arithmetic.o)
    libintl_dngettext libR.a(errors.o)
    find_interv_vec libR.a(registration.o)
    Rf_qnchisq libR.a(arithmetic.o)
    Rf_qnbinom libR.a(arithmetic.o)
    Rf_bessel_i_ex libR.a(arithmetic.o)
    Rf_bessel_j_ex libR.a(arithmetic.o)
    Rf_bessel_y_ex libR.a(arithmetic.o)
    Rf_bessel_k_ex libR.a(arithmetic.o)
    Rz_inflateEnd libR.a(connections.o)
    Rz_deflateEnd libR.a(connections.o)
    Rf_rcauchy libR.a(random.o)
    Rf_trigamma libR.a(arithmetic.o)
    do_saveplot libR.a(names.o)
    pcre_free libR.a(grep.o)
    pcre_exec libR.a(grep.o)
    Rf_beta libR.a(arithmetic.o)
    Rf_dexp libR.a(arithmetic.o)
    tre_regcomp libR.a(platform.o)
    tre_regexec libR.a(platform.o)
    tre_regfree libR.a(platform.o)
    Rf_pexp libR.a(arithmetic.o)
    Rf_qexp libR.a(arithmetic.o)
    Rf_rexp libR.a(random.o)
    Rf_sign libR.a(arithmetic.o)
    Rf_qwilcox libR.a(arithmetic.o)
    R_ReadClipboard libR.a(connections.o)
    BZ2_bzWriteOpen libR.a(connections.o)
    bincode libR.a(registration.o)
    R_CleanTempDir libR.a(main.o)
    R_access_X11 libR.a(platform.o)
    norm_rand libR.a(optim.o)
    Rf_rnchisq libR.a(random.o)
    Rf_rnbinom libR.a(random.o)
    R_running_as_main_program Rmain.o
    Rf_psigamma libR.a(arithmetic.o)
    ch2inv_ libR.a(registration.o)
    BZ2_bzWrite libR.a(connections.o)
    BZ2_bzBuffToBuffDecompress libR.a(connections.o)
    Rz_inflateInit2_ libR.a(connections.o)
    Rf_rwilcox libR.a(random.o)
    R_CleanUp libR.a(main.o)
    Rf_dsignrank libR.a(arithmetic.o)
    Rf_psignrank libR.a(arithmetic.o)
    Rf_rsignrank libR.a(random.o)
    Rf_qsignrank libR.a(arithmetic.o)
    BZ2_bzDecompressInit libR.a(dounzip.o)
    Rf_dcauchy libR.a(arithmetic.o)
    Rz_deflate libR.a(connections.o)
    R_Suicide libR.a(main.o)
    libintl_bindtextdomain libR.a(main.o)
    stemleaf libR.a(registration.o)
    Rf_digamma libR.a(arithmetic.o)
    do_sysinfo libR.a(names.o)
    Rf_dnchisq libR.a(arithmetic.o)
    Rf_dnbinom libR.a(arithmetic.o)
    do_edit libR.a(names.o)
    pcre_study libR.a(grep.o)
    R_ShowMessage libR.a(startup.o)
    dqrdc2_ libR.a(registration.o)
    dqrqty_ libR.a(registration.o)
    dqrrsd_ libR.a(registration.o)
    Rf_InitFunctionHashing libR.a(Rdynload.o)
    R_FlushConsole libR.a(plot.o)
    lzma_alone_decoder libR.a(connections.o)
    Rf_dwilcox libR.a(arithmetic.o)
    rmultinom libR.a(random.o)
    tre_regwcomp libR.a(agrep.o)
    tre_regwexec libR.a(grep.o)
    Rf_dbeta libR.a(arithmetic.o)
    Rf_dgeom libR.a(arithmetic.o)
    Rf_dpois libR.a(arithmetic.o)
    Rf_dunif libR.a(arithmetic.o)
    Rf_fmin2 libR.a(plot3d.o)
    Rf_fmax2 libR.a(relop.o)
    Rf_fprec libR.a(arithmetic.o)
    Rf_imax2 libR.a(printutils.o)
    Rf_lbeta libR.a(arithmetic.o)
    tre_regcompb libR.a(agrep.o)
    do_savehistory libR.a(names.o)
    tre_regerror libR.a(agrep.o)
    tre_regexecb libR.a(dcf.o)
    Rf_pbeta libR.a(arithmetic.o)
    Rf_pgeom libR.a(arithmetic.o)
    Rf_ppois libR.a(arithmetic.o)
    Rf_qbeta libR.a(arithmetic.o)
    Rf_punif libR.a(arithmetic.o)
    Rf_qgeom libR.a(arithmetic.o)
    Rf_qpois libR.a(arithmetic.o)
    Rf_rbeta libR.a(random.o)
    Rf_qunif libR.a(arithmetic.o)
    Rf_rgeom libR.a(random.o)
    Rf_rnorm libR.a(random.o)
    Rf_rpois libR.a(random.o)
    Rf_runif libR.a(random.o)
    do_loadhistory libR.a(names.o)
    tre_regaexec libR.a(agrep.o)
    R_WriteConsoleEx libR.a(printutils.o)
    Rz_inflateReset libR.a(connections.o)
    do_dataentry libR.a(names.o)
    lzma_raw_encoder libR.a(connections.o)
    BZ2_bzBuffToBuffCompress libR.a(connections.o)
    Rf_lgammafn libR.a(random.o)
    BM_norm_keep libR.a(RNG.o)
    Rf_gammafn libR.a(arithmetic.o)
    libintl_dgettext libR.a(main.o)
    libintl_ngettext libR.a(printarray.o)
    fft_work libR.a(fourier.o)
    lzma_raw_decoder libR.a(connections.o)
    Rf_pweibull libR.a(arithmetic.o)
    Rf_qweibull libR.a(arithmetic.o)
    Rf_rweibull libR.a(random.o)
    Rf_dweibull libR.a(arithmetic.o)
    pcre_fullinfo libR.a(grep.o)
    R_WriteConsole libR.a(printutils.o)
    R_ResetConsole libR.a(errors.o)
    BZ2_bzWriteClose libR.a(connections.o)
    signrank_free libR.a(registration.o)
    pcre_compile libR.a(grep.o)
    BZ2_bzReadClose libR.a(connections.o)
    ld: fatal: symbol referencing errors. No output written to R.bin

    R 2.14.2 built just fine on S11 with Studio 12.3. I had to have GNU iconv installed and then I had to build without readline as the native one has some problems/features WRT linking to n/curses that I was not in the mood to play with.
    ./configure \
    --prefix=%{_prefix} \
    --without-readline \
    --enable-R-shlib                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Getting Microsoft Visual C++ Runtime Library error while launching Dashboard 4.0

    Hi All,
    I just installed BO Dashboard 4.0 on my Windows system successfully and when I tried to launch Dashboard icon (which is at desktop), it gave me error message :"Microsoft Visual C++ Runtime Library: RunTime Error! Program :C:\....This application has requested the Runtime to terminate it in an unusual way. please contact the application's support team for more information."

    Hi Renu,
    Please see Note 1676695 - Assertion Failed Exception for shared_ptr.hpp when installing .NET runtimes for Business Objects 4.0
    This can happen if you do not have the VS 2005 C++ Runtimes installed.
    Download the VS 2005 C++ runtimes (http://www.microsoft.com/download/en/details.aspx?id=3387) and install, then run the .NET runtimes installer again.
    Login with administrator in the system and perform the below activity.
    Re Install the Microsoft Visual Studio
    Check the latest patch available from the SAP Market Place www.service.sap.com/swdc
    Re Install the Dashboards.
    Or below thread
    BO Dashboard 4.0 SP02 or SP04(W/ FP03)
    Thanks,
    Daya

  • Setup with MS Visual C++ Runtime Library Error, Win7/CS5

    Hio All,
    It's driving me crazy here trying to get my Photoshop and my Adobe Production Suite CS5 working.  I had an Alienware computer with Windows 7 64-bit and it installed perfectly.  Now my new computer is a Xeon E5-2660, with 32GB of RAM, an ASUS Z9-PE-D8 WS motherboard with a Radeon HD 5870 1GB VRAM video card (same video card on my Alienware). I did a fresh Win7 64bit Professional install, all goes well.  I'm also installing other programs and they all go well.  It's when I install CS5 (but really Photoshop is my biggest concern since I need it for freelance work) and sometimes RIGHT at the end of the third disc installation at 99% (installing the Language Pack for ENG) it crashes.  Sometimes it doesn't, and goes through perfectly.  Either case, when I open any Adobe CS5 suite program (except for Bridge), it would crash immediately with a dialogue box saying
    "Microsoft Visual C++ Runtime Library" -- Runtime Error!
    Program: C:\Pro...(truncated)
    This application has requested the Runtime to terminate it in an unusual way.  Please contact the application's support team for more information.
    And that's it, the program logo doesn't even launch, just this box.  After hours and hours of trying different settings, I found out was if I disabled the service "Windows Management Instrumentation" in msconfig, the dialogue box would go away and anay CS5 product would launch without a hitch.  But, it leaves other programs that use that service unable to launch as well, and Windows Defender is the biggest one that uses that service.
    I've searched the internet and hundreds of other threads relating to Visual C++ error here on this forum, but none give a definitive answer to why my computer may keep crashing.  I've reformatted and reinstalled CS5 over and over again...still these crashes...Please help in anyway!!
    Event Log when it crashes on loading:
    Event filter with query "SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA "Win32_Processor" AND TargetInstance.LoadPercentage > 99" could not be reactivated in namespace "//./root/CIMV2" because of error 0x80041003. Events cannot be delivered through this filter until the problem is corrected.
    System
    Provider
    [ Name]
    Microsoft-Windows-WMI
    [ Guid]
    {1edeee53-0afe-4609-b846-d8c0b2075b1f}
    [ EventSourceName]
    WinMgmt
    EventID
    10
    [ Qualifiers]
    49152
    Version
    0
    Level
    2
    Task
    0
    Opcode
    0
    Keywords
    0x80000000000000
    TimeCreated
    [ SystemTime]
    2012-10-03T05:55:28.000000000Z
    EventRecordID
    530
    Correlation
    Execution
    [ ProcessID]
    0
    [ ThreadID]
    0
    Channel
    Application
    Computer
    Ackdoh-Xeons-PC
    Security
    EventData
    //./root/CIMV2
    SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA "Win32_Processor" AND TargetInstance.LoadPercentage > 99
    0x80041003
    and then when I hit close on the dialogue box:
    Event filter with query "SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA "Win32_Processor" AND TargetInstance.LoadPercentage > 99" could not be reactivated in namespace "//./root/CIMV2" because of error 0x80041003. Events cannot be delivered through this filter until the problem is corrected.
    System
    Provider
    [ Name]
    Microsoft-Windows-WMI
    [ Guid]
    {1edeee53-0afe-4609-b846-d8c0b2075b1f}
    [ EventSourceName]
    WinMgmt
    EventID
    10
    [ Qualifiers]
    49152
    Version
    0
    Level
    2
    Task
    0
    Opcode
    0
    Keywords
    0x80000000000000
    TimeCreated
    [ SystemTime]
    2012-10-03T05:55:28.000000000Z
    EventRecordID
    530
    Correlation
    Execution
    [ ProcessID]
    0
    [ ThreadID]
    0
    Channel
    Application
    Computer
    Ackdoh-Xeons-PC
    Security
    EventData
    //./root/CIMV2
    SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA "Win32_Processor" AND TargetInstance.LoadPercentage > 99
    0x80041003
    and then when I hit close on the dialogue box:
    Faulting application name: Photoshop.exe, version: 12.0.0.0, time stamp: 0x4bbc5b10
    Faulting module name: MSVCR90.dll, version: 9.0.30729.4940, time stamp: 0x4ca2e32e
    Exception code: 0x40000015
    Fault offset: 0x0000000000042686
    Faulting process id: 0xbe0
    Faulting application start time: 0x01cda12b7a9fe1d4
    Faulting application path: C:\Program Files\Adobe\Adobe Photoshop CS5 (64 Bit)\Photoshop.exe
    Faulting module path: C:\Windows\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4940_none_08e4299fa 83d7e3c\MSVCR90.dll
    Report Id: 47fae749-0d20-11e2-b992-10bf480cb285
    System
    Provider
    [ Name]
    Application Error
    EventID
    1000
    [ Qualifiers]
    0
    Level
    2
    Task
    100
    Keywords
    0x80000000000000
    TimeCreated
    [ SystemTime]
    2012-10-03T06:05:08.000000000Z
    EventRecordID
    538
    Channel
    Application
    Computer
    Ackdoh-Xeons-PC
    Security
    EventData
    Photoshop.exe
    12.0.0.0
    4bbc5b10
    MSVCR90.dll
    9.0.30729.4940
    4ca2e32e
    40000015
    0000000000042686
    be0
    01cda12b7a9fe1d4
    C:\Program Files\Adobe\Adobe Photoshop CS5 (64 Bit)\Photoshop.exe
    C:\Windows\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4940_none_08e4299fa8 3d7e3c\MSVCR90.dll
    47fae749-0d20-11e2-b992-10bf480cb285
    And then an Information Event Log after that for "Windows Error Reporting"
      Fault bucket 28657682, type 4
    Event Name: APPCRASH
    Response: Not available
    Cab Id: 0
    Problem signature:
    P1: Photoshop.exe
    P2: 12.0.0.0
    P3: 4bbc5b10
    P4: MSVCR90.dll
    P5: 9.0.30729.4940
    P6: 4ca2e32e
    P7: 40000015
    P8: 0000000000042686
    P9:
    P10:
    Attached files:
    C:\Users\Ackdoh\AppData\Local\Temp\WERAF51.tmp.WERInternalMetadata.xml
    These files may be available here:
    C:\Users\Ackdoh\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_Photoshop.exe_3 559d21aa493ffb9e1b751cecea2f5e32c54a4_0fe2ba1a
    Analysis symbol:
    Rechecking for solution: 0
    Report Id: 47fae749-0d20-11e2-b992-10bf480cb285
    System
    Provider
    [ Name]
    Windows Error Reporting
    EventID
    1001
    [ Qualifiers]
    0
    Level
    4
    Task
    0
    Keywords
    0x80000000000000
    TimeCreated
    [ SystemTime]
    2012-10-03T06:05:11.000000000Z
    EventRecordID
    539
    Channel
    Application
    Computer
    Ackdoh-Xeons-PC
    Security
    EventData
    28657682
    4
    APPCRASH
    Not available
    0
    Photoshop.exe
    12.0.0.0
    4bbc5b10
    MSVCR90.dll
    9.0.30729.4940
    4ca2e32e
    40000015
    0000000000042686
    C:\Users\Ackdoh\AppData\Local\Temp\WERAF51.tmp.WERInternalMetadata.xml
    C:\Users\Ackdoh\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_Photoshop.exe_3 559d21aa493ffb9e1b751cecea2f5e32c54a4_0fe2ba1a
    0
    47fae749-0d20-11e2-b992-10bf480cb285
    0
    Thanks much for checking it out and helping!

    The registration shouldn't have anything to do with saving a PDF but I tried that and it didn't work... Thanks for the reply though! This is what's frustrating me so much is that there is seemingly no difference with the software from day to day but, Adobe has simply - "derrrp" - forgotten how to write to PDF and in it's own confusion tells Windows that it needs to shut down. It's also frustrating having to resort to these forums for answers because they're not in real time like a phone call or chat. If I could just talk to someone from Adobe about it, since it is their product, I could have tried that option hours (or days, really) ago and have already gone through a number of other options by now instead of being back at square one..... again.
    I mean, for christ sake, I even tried a system restore in case I had mistakenly downloaded a font, brush, etc. that corrupted some files - didn't help anything.

  • Library name compatibility 32/64 bit and across platforms

    Hi all,
    I have a numerical C library which I wish to link to using JNI. The binary will be shipped in the jar file to keep everything "clean" for the client.
    Unfortunately the SUN System.mapLibraryName method is completely useless when it comes to bundling binaries that are specific to an architecture. Some tests I have performed show:
    Linux 64 bit Pentium M: os.name = "Linux", os.arch = "amd64", mapLibraryName = "libNAME.so"
    Linux 32 bit: os.name = "Linux", os.arch = "i386", mapLibraryName = "libNAME.so"
    iBook G4: os.name = "Mac OS X", os.arch = "ppc", mapLibraryName = "libNAME.jnilib"
    Windows XP 32 bit: os.name = "Windows XP", os.arch = "x86", mapLibraryName = "NAME.dll"
    Sun Blade 1500 (64 bit): os.name = "SunOS", os.arch = "sparc", mapLibraryName = "libNAME.so"
    you will notice that Linux 32/64 and Solaris all use "libNAME.so"... despite the architecture they are running on! (Apple is not a problem because it supports Universal binaries).
    I'm thinking that I will have to use some horrible library name and loading code to deal with these problems... creating library names along the lines of
    Linux 64 bit Linux: "libNAME-linux-intel-64.so"
    Linux 32 bit Linux: "libNAME-linux-intel-32.so"
    Linux 32 bit PPC Linux: "libNAME-linux-ppc-32.so"
    iBook G4: "libNAME.jnilib"
    Windows XP 64 bit: "NAME-64.dll"
    Windows XP 32 bit: "NAME-32.dll"
    Sun Blade 1500 (64 bit): "libNAME-sunos-64.so"
    My main concern is Linux and Windows 32/64 bit, rather than cross-CPU handling.
    I am not looking forward to writing this... has this problem come up before? And if so, what have people done to deal with it? I guess an alternative would be to use a naming convention in the directory structure, but that's really the same solution.
    Kind regards,
    Sam

    I have concluded that the best way to solve this problem is to create a pre-processing method for System.loadLibrary that takes the library name (as it would be passed to System.loadLibrary) and returns a more operating system and architecture-friendly String.
    I have created a class that does OS/Architecture detection and then returns the following on various platforms for the input parameter "name":
    Apple (G3, G4, G5, Intel): "name" (expects user to build Universal Binaries)
    Linux (i686): "name-linux-x86"
    Linux (Intel/AMD 64): "name-linux-x86_64"
    Linux (sparc): "name-linux-sparc"
    Linux (PPC 32 bit): "name-linux-ppc"
    Linux (PPC 64 bit): "name-linux-ppc_64"
    Windows XP/Vista (i686): "name-windows-x86"
    Windows XP/Vista (Intel/AMD 64): "name-windows-x86_64"
    Sun Solaris (Blade): "name-sun-sparc"
    Sun Solaris (Intel 64 bit): "name-sun-x86_64"
    This String can then be safely sent to System.loadLibrary, which will do the usual additions of "lib", ".so", ".jnilib" and ".dll" and search in all the right places. It is not possible to write a wrapper for System.loadLibrary itself as native library loading needs to know the name of the calling class.
    I'd be happy to share the code with anyone who requests, but it's a bit too long to post here.
    Incidentally... in my research into native library loading, I encountered the "Bundle-NativeCode" entry for Manifest files. It may be possible to construct an entry for each os.name/os.arch pair to assign native binaries accordingly. However it appeared that every pairing would need to be specified (whereas my solution is more forgiving), and I'm not entirely sure if that method allows one to define the (shortened form of the) library name... it may just be useful for bundling binaries inside the jar file.

  • Library names in java ( JNI )

    I want to load library name called MathLib.
    but i am getting error like below..
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no MathLib in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
    at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    at java.lang.System.loadLibrary(System.java:834)
    at MathLib.<clinit>(MathLib.java:12)
    i want to know is MathLib is available or not..
    if yes
    i want an example on this MathLib and also some library names in Java

    i mean if mathlib is available i want one example
    program on that.I have no idea whether it is. Did you try Google?
    and u r telling that mathlib is not available.I just said it's not available to your program.
    now i want to know the library name which one have to
    give in the above line code.The file name of the library you want to use, of course. How would we know which one it is? mathlib.dll?

  • Visual C ++ Runtime Library, Runtime Error.. I keep getting this message can anybody help!

    Visual C ++ Runtime Library, Runtime error..I keep getting this message can anybody help please !!

    What is the /exact/ error?  What are your system details?  Are you running 32-bit or 64-bit version of the software (if your OS supports it)? 
    I assume the message you are getting is about the UI runtimes every application needs some version of, which is typically supplied by Visual Studio, though there are redist versions bundled with many apps.
    Unfortunately, Windows library management can be a bit of DLL hell (which Microsoft is making an effort to address in Windows 7.)  There are many, many references to this with potential fixes, in Microsoft KB articles.
    But the first step is good information so you can work from the known to the unknown.

  • Use of __typeof__ in Solaris Studio 12.4

    Solaris Studio 12.3 had a __typeof__ operator similar to decltype in C++11.  This is available in a portable wrapper using the Boost macro BOOST_TYPEOF_TPL.  It looks like the Solaris Studio team contributed the modification to Boost which added this in ticket 5745.
    Now Solaris Studio 12.4 has a C++11 mode which supports decltype.  However, is __typeof__ still supposed to work in Solaris Studio 12.4's C++03 mode?  It doesn't seem to work as well as it used to.
    The following program deduces the return type of operator() using __typeof__:
    #include <boost/typeof/typeof.hpp>
    #include <boost/type_traits/remove_reference.hpp>
    #include <iostream>
    #include <typeinfo>
    // Helper to deduce the result type from a member function pointer.
    template<typename T>
    struct member_function_result_type
    template<typename T, typename R, typename A1>
    struct member_function_result_type<R (T::*)(A1) const>
        typedef typename boost::remove_reference<R>::type type;
    template<typename T>
    struct function_result_type
        typedef BOOST_TYPEOF_TPL(&T::operator()) F;
        typedef typename member_function_result_type<F>::type type;
    template<typename R, typename A>
    struct function_result_type<R (*)(A)>
        typedef typename boost::remove_reference<R>::type type;
    struct my_functor
        float operator()(float numerator) const
            return numerator / 2.0f;
    int main(int, char **)
        typedef typename function_result_type<my_functor>::type my_type;
        my_functor f;
        my_type ret = f(5.0f);
        if (typeid(my_type) == typeid(float))
            std::cout << "As expected " << ret << std::endl;
        else
            std::cout << "Oh dear " << ret << std::endl;
        return 0;
    If you build this with Solaris Studio 12.3 as follows:
    CC -m64 -I/usr/local/include/boost-1_54 main.cc
    then it compiles and running a.out shows the return type of float has been correctly deduced.
    However, with Solaris Studio 12.4 the same command:
    CC -m64 -I/usr/local/include/boost-1_54 main.cc
    results in:
    "main.cc", line 23: Error: Unexpected type name "F" encountered.
    "main.cc", line 42: Warning: "typename" must be used within a template.
    1 Error(s) and 1 Warning(s) detected.
    Now, obviously Solaris Studio 12.4 has a C++11 mode and it is possible to get this program to work by changing BOOST_TYPEOF_TPL to decltype and building with:
    CC -std=c++11 -m64 -I/usr/local/include/boost-1_54 main.cc
    But Solaris Studio 12.4's C++11 mode has other problems, so is there any way to somehow get a working __typeof__ or equivalent in Solaris Studio 12.4's C++03 mode?
    (In case it makes any difference this is on Solaris 10 x86.)

    I couldn't see that any of the items listed in the "Enforcement of C++ rules" section of the documentation would affect this program.
    Here's a cut down version of the test program that doesn't use Boost:
    #include <iostream>
    #include <typeinfo>
    // Helper to deduce the result type from a member function pointer.
    template<typename T>
    struct member_function_result_type
    template<typename T, typename R, typename A1>
    struct member_function_result_type<R (T::*)(A1) const>
        typedef R type;
    template<typename T>
    struct function_result_type
        typedef __typeof__(&T::operator()) F;
        typedef typename member_function_result_type<F>::type type;
    template<typename R, typename A>
    struct function_result_type<R (*)(A)>
        typedef R type;
    struct my_functor
        float operator()(float numerator) const
            return numerator / 2.0f;
    int main(int, char **)
        typedef function_result_type<my_functor>::type my_type;
        my_functor f;
        my_type ret = f(5.0f);
        if (typeid(my_type) == typeid(float))
            std::cout << "As expected " << ret << std::endl;
        return 0;
    Interestingly this doesn't compile with either Solaris Studio 12.3 or Solaris Studio 12.4, but each gives different errors:
    Solaris Studio 12.3:
    CC -m64 main.cc
    >> Assertion:  unexpected type_builder::visit_unspec (../lnk/v2mangler.cc, line 1636)
        while processing main.cc at line 39.
    Solaris Studio 12.4:
    CC -m64 main.cc
    "main.cc", line 20: Error: Unexpected type name "F" encountered.
    1 Error(s) detected.
    So Solaris Studio 12.4 is basically failing in the same way as the original test program that used the Boost wrappers.  Solaris Studio 12.3 is failing with an assertion error that doesn't occur when the Boost wrappers are used.
    It turns out that __typeof__ was only used in one place in our codebase (wrapped by Boost), so I've just removed it and implemented that code in a different way.  So this isn't blocking upgrade of Solaris Studio, and we don't even have __typeof__ in our codebase any more, but I just thought you might be interested to have this program as a test case for future development.
    It works fine with clang++ in C++03 mode on Mac OS X so I doubt the problem is caused by the source code not conforming to standard:
    clang++ main.cc
    ./a.out
    As expected 2.5
    This case may be particularly tricky for a compiler to handle due to __typeof__ being applied to a pointer to a const member function.

  • Solaris Studio 12.3 demangle fatal internal error: information lost in character quoting

    Hello,
    I have run into a problem with the Solaris Studio 12.3 compiler when building one source file that makes use of the open source Eigen library.  The compilation fails with the error:
    demangle fatal internal error: information lost in character quoting
    CC: fbe failed for CSeasonalComponent.cc
    The full command that fails is:
    CC -c -o .objs/CSeasonalComponent.o -m64 -g3 -fsimple=1 -O4 -xbuiltin=%all -xlibmil -xlibmopt -xarch=sse3 -xchip=nehalem -nofstore -xalias_level=compatible -features=extensions -errtags +w -erroff=anonnotype,anonstruct,badargtype2w,hidef,notemsource,wbadasg -library=Crun -library=no%Cstd -KPIC  -mt -I/usr/local/stdcxx/include -I/usr/include -I/usr/local/include -DSOLARIS -D_POSIX_PTHREAD_SEMANTICS -D_RWSTD_NO_STRING_MUTEX -D_RWSTD_MINIMUM_STRING_CAPACITY=22 -D_RWSTD_NO_LIST_NODE_BUFFER -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DEIGEN_MPL2_ONLY -DEIGEN_DONT_USE_RESTRICT_KEYWORD -DNDEBUG -I/export/home/dave/source/local/include -I/usr/local/include/boost-1_54 CSeasonalComponent.cc
    The problem goes away if the -g3 flag is removed.  Replacing -g3 with -g0 does not help - the same fatal error occurs.  (Removing the -g0/-g3 options has the effect of not passing a -dbgfile option to the fbe program, and this appears to be what avoids the problem.)
    The information in this question is from a Solaris x86 machine, although the same "demangle fatal internal error: information lost in character quoting" also occurs on SPARC with the same source file and similar (although obviously not identical) compiler options.
    The result of running the CC command that fails with the -dryrun option added is this:
    ### CC: Note: NLSPATH = /opt/solarisstudio12.3/prod/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/solarisstudio12.3/prod/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
    ###     command line files and options (expanded):
    ### -dryrun -c -o.objs/CSeasonalComponent.o -m64 -g3 -fsimple=1 -O4 -xbuiltin=%all -xlibmil -xlibmopt -xarch=sse3 -xchip=nehalem -nofstore -xalias_level=compatible -features=extensions -errtags=yes +w -erroff=anonnotype,anonstruct,badargtype2w,hidef,notemsource,wbadasg -library=Crun -xcode=pic32 -mt=yes -I/usr/local/stdcxx/include -I/usr/include -I/usr/local/include -DSOLARIS -D_POSIX_PTHREAD_SEMANTICS -D_RWSTD_NO_STRING_MUTEX -D_RWSTD_MINIMUM_STRING_CAPACITY=22 -D_RWSTD_NO_LIST_NODE_BUFFER -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DEIGEN_MPL2_ONLY -DEIGEN_DONT_USE_RESTRICT_KEYWORD -DNDEBUG -I/export/home/dave/source/local/include -I/usr/local/include/boost-1_54 CSeasonalComponent.cc
    /opt/solarisstudio12.3/prod/bin/ccfe -xarch=amd64 -D__SunOS_5_10 -D__SUNPRO_CC=0x5120 -D__unix -D__SVR4 -D__sun -D__SunOS -D__x86_64 -D__x86_64__ -D__amd64 -D__amd64__ -D_LP64 -D__LP64__ -D__BUILTIN_VA_STRUCT -Dunix -Dsun -D_REENTRANT -D__SUN_PREFETCH -D__SUNPRO_CC_COMPAT=5 -I/usr/local/stdcxx/include -I/usr/include -I/usr/local/include -I/export/home/dave/source/local/include -I/usr/local/include/boost-1_54 -I-xbuiltin -I/opt/solarisstudio12.3/prod/include/CC -I/opt/solarisstudio12.3/prod/include/cc -DSOLARIS -D_POSIX_PTHREAD_SEMANTICS -D_RWSTD_NO_STRING_MUTEX -D_RWSTD_MINIMUM_STRING_CAPACITY=22 -D_RWSTD_NO_LIST_NODE_BUFFER -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DEIGEN_MPL2_ONLY -DEIGEN_DONT_USE_RESTRICT_KEYWORD -DNDEBUG -ptf /tmp/ccfe.04.%1.%2 -features=extensions -ptx /opt/solarisstudio12.3/prod/bin/CC -ptk "-dryrun -c -m64 -g3 -fsimple=1 -O4 -xbuiltin=%all -xlibmil -xlibmopt -xarch=sse3 -xchip=nehalem -nofstore -xalias_level=compatible -features=extensions -errtags=yes +w -erroff=anonnotype,anonstruct,badargtype2w,hidef,notemsource,wbadasg -library=Crun -library=no%Cstd -xcode=pic32 -mt=yes -I/usr/local/stdcxx/include -I/usr/include -I/usr/local/include -DSOLARIS -D_POSIX_PTHREAD_SEMANTICS -D_RWSTD_NO_STRING_MUTEX -D_RWSTD_MINIMUM_STRING_CAPACITY='22' -D_RWSTD_NO_LIST_NODE_BUFFER -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DEIGEN_MPL2_ONLY -DEIGEN_DONT_USE_RESTRICT_KEYWORD -DNDEBUG -I/export/home/dave/source/local/include -I/usr/local/include/boost-1_54 " -compat=5 -g -xdebuginfo=macro -xdbggen=no%stabs+dwarf2+usedonly -xF=%none -xbuiltin=%all -pic -xldscope=global -xivdep=loop -xalias_level=layout -xdepend -O4 -errtags -erroff=anonnotype,anonstruct,badargtype2w,hidef,notemsource,wbadasg +w CSeasonalComponent.cc -ptb .objs/CSeasonalComponent.o -o /tmp/ccfe.01.ir -s /tmp/ccfe.02.sd 2> /tmp/ccfe.03.err
    /opt/solarisstudio12.3/prod/bin/iropt -Qy -O4 -xarch=sse3 -m64 -xchip=nehalem -xcache=generic -fsimple=1 -g -depend -mt -k -xalias_level=layout -xbuiltin=%all -xlibmopt -xprefetch=auto,explicit -xprefetch_level=1 -xprefetch_auto_type=no%indirect_array_access -xvector=no%lib,simd -F -o /tmp/iropt.05.ir -is /tmp/ccfe.02.sd /tmp/ccfe.01.ir 2> /tmp/iropt.06.err
    rm /tmp/ccfe.01.ir
    /opt/solarisstudio12.3/prod/bin/c++filt -filt=no%stdlib < /tmp/iropt.06.err >> /tmp/ccfe.03.err
    rm /tmp/iropt.06.err
    /opt/solarisstudio12.3/prod/bin/stdlibfilt -stderr < /tmp/ccfe.03.err
    rm /tmp/ccfe.03.err
    /opt/solarisstudio12.3/prod/bin/ir2hf -Qy -g -O4 -xbuiltin=%all -m64 /tmp/iropt.05.ir /tmp/ccfe.02.sd /tmp/ir2hf.07.hf
    rm /tmp/ccfe.02.sd
    rm /tmp/iropt.05.ir
    /opt/solarisstudio12.3/prod/bin/ube -Qy -verbose -iropt -O4 -comdat -m64 -xarch=sse3 -xchip=nehalem -xcache=generic -xannotate=yes -il /opt/solarisstudio12.3/prod/lib/amd64/libm.il -fsimple=1 -ZW -g -xalias_level=layout -PIC -xbuiltin=%all -N -xprefetch=auto,explicit -xprefetch_level=1 -xthreadvar=dynamic -mt -fbe /opt/solarisstudio12.3/prod/bin/fbe -ipo .objs/CSeasonalComponent.o -dbgfile /tmp/ube.09.dbg -S /tmp/ube.08.s /tmp/ir2hf.07.hf
    rm /tmp/ir2hf.07.hf
    /opt/solarisstudio12.3/prod/bin/fbe -Qy -xarch=amd64 -xchip=nehalem -warn=%none -o .objs/CSeasonalComponent.o /tmp/ube.08.s -dbgfile /tmp/ube.09.dbg
    rm /tmp/ube.08.s
    rm /tmp/ube.09.dbg
    Running the CC command with the -keeptmp option added leaves these files in /tmp:
    -rw-rw-r--   1 dave     dev            0 Dec 11 16:20 /tmp/ccfe.1386778859.8273.03.err
    -rw-rw-r--   1 dave     dev      45679331 Dec 11 16:21 /tmp/ccfe.1386778859.8273.01.ir
    -rw-rw-r--   1 dave     dev            0 Dec 11 16:21 /tmp/iropt.1386778859.8273.06.err
    -rw-rw-r--   1 dave     dev       393220 Dec 11 16:21 /tmp/ccfe.1386778859.8273.02.sd
    -rw-rw-r--   1 dave     dev      47820727 Dec 11 16:21 /tmp/iropt.1386778859.8273.05.ir
    -rw-rw-r--   1 dave     dev      60490992 Dec 11 16:21 /tmp/ir2hf.1386778859.8273.07.hf
    -rw-rw-r--   1 dave     dev      22377791 Dec 11 16:21 /tmp/ube.1386778859.8273.09.dbg
    -rw-rw-r--   1 dave     dev      8915850 Dec 11 16:21 /tmp/ube.1386778859.8273.08.s
    Finally, creating an fbe command similar to the one from the dry run output using the last two files in /tmp with the -V option added as follows:
    /opt/solarisstudio12.3/prod/bin/fbe -V -Qy -xarch=amd64 -xchip=nehalem -warn=%none -o .objs/CSeasonalComponent.o /tmp/ube.1386778859.8273.08.s -dbgfile /tmp/ube.1386778859.8273.09.dbg
    results in this:
    as: Sun Compiler Common 12.3 SunOS_i386 2011/11/16
    demangle fatal internal error: information lost in character quoting
    I would be happy to provide the /tmp/ube.1386778859.8273.08.s and /tmp/ube.1386778859.8273.09.dbg files to assist with reproduction of this problem if anyone is interested.

    The problem with creating a simple test case that doesn't rely on Boost or Eigen is that the error message is so vague that there's no hint about where to start.  The pre-processed source of the file that causes the problem is 4.7MB so trying to chop that down without any clue as to what's relevant is going to be very hard.
    You could do everyone a favour if future internal error messages contained at least some information about what caused the problem.  I know they're not supposed to happen at all, but clearly they occasionally do.  For example, instead of:
    demangle fatal internal error: information lost in character quoting
    something like:
    demangle fatal internal error: information lost in character quoting: corrupt symbol is __1cFEigenPPlainObjectBase4n0AGMatrix4CdIBiBiAIBiB___KresizeLike4n0AOGeneralProduct4n0AFBlock4Ckn0AGMatrix4CdIBIB_"""_oops
    Then that would give somebody trying to report the problem or change their code to avoid it a starting point for where to look.
    Anyway, I've worked around the problem by changing -g3 in the CXXFLAGS in the Makefile to `test $< = CSeasonalComponent.cc || echo -g3` which avoids the error.  And hopefully like you say it's a known problem that's already fixed in the next version of Solaris Studio.

  • Compiling / Linking error in Solaris Studio 12.3 C++ Compiler

    Hi,
    I downloaded Solaris Studio 12.3 (SolarisStudio12.3-solaris-x86-pkg.tar.bz2) & unpacked and installed on the default directory (in non-interactive mode) of local machine running Solaris 10 10/09 s10x_u8wos_08a X86. Also applied all the required patches by running the "install_patches.sh" after running "solarisstudio.sh".
    My application has make files to take care of the building the whole application. I made necessary changes to the make files to pick up the latest Solaris 12.3 C++ compiler. I could see that it has picked up for compiling.
    While building the whole project, the source files are compiled to object files successfully but when it is creating shared object (.so) files it stops at the below error:
    /opt/solarisstudio12.3/prod/bin/CC -mt -i -library=stlport4 -zdefs -ztext -G -h xmem.so -Lpic/lib/debug/sol32 -L/MyHome/open_source/abc/lib/sol32 -L/MyHome/open_source/mno/lib/sol32 -L/MyHome/open_source/pqr/lib/sol32 -L/MyHome/open_source/xyz/lib/sol32 -g -lc -lCrun -lumem -m32 -o debug/xmem.so
    *usage: CC [ options ] files. Use 'CC -flags' for details*
    Note:
    Some third party open source libraries are being used in the project. Those libraries are not built using Solaris Studio 12.3 compilers.
    Tried changing lot of options and re-ordering the switches/options but no luck. But on changing as mentioned below the shared library DID build successfully
    - Added space after '-L' option, added '*' at the end of path like "-L/MyHome/open_source/pqr/lib/sol32/*".
    Note:*_
    +1) I tried compiling a separate small program into object files using Solaris 12.3 C++ compiler but got the above error/problem when linking the experimental libraries (shared object) with most of the options used in the above command.+
    +2) The same project gets built successfully in Solaris Studio 12.1 (studio12.1-091123) and Solaris Studio 12 (studio12-070724) but the same is failing in Solaris Studio 12.3.+
    Can someone please help me to understand the issue and resolve it? Let me know if any more information is needed.
    Thanks in advance.
    -Vijay
    Edited by: 974820 on Dec 4, 2012 7:05 PM

    Hi Steve,
    Thanks for the valuable input on the -xdebugformat option. Every suggestion of yours is helping me to proceed further to some extent. This time too, after removing the "-xdebugformat=stabs", I am able to go past the previous error.
    BUT this time I am running into -xarch option problem. I am not sure if this is a application design or compilation options issue or compiler issue. Posting it here to get some inputs to understand more on this before raising any service request with Oracle Support.
    The error details and workarounds used with their result._
    NOTE: All these compilation were passed in earlier Studio versions.
    ORIGINAL - with -xarch=sse2
    ===============================ERRORS===============================
    /opt/solarisstudio12.3/prod/bin/CC -errtags=yes -Kpic -mt -errwarn -xdepend=yes -DUSING_STUDIO11 common/xm2/x86/common/inc/templates.il -D__EXTENSIONS__ -g -xarch=sse2 -Icommon/xccolor/inc -Icommon/xm2/x86/include -Icommon/xm2/x86/assembly/inc -Icommon/xm2/x86/common/inc -Iinclude -Icommon/xm2/x86hbc/expander/inc -Icommon/xm2/x86/jpeg/inc -Icommon/xm2embedded/host/x86/hbc/inc -Icommon/xm2/common/inc -Iimg-drv//include -Icommon/xm2/config/inc -Icommon/Utilities/include -Iimg-drv/ipshared/include -Icommon/cpp/inc -I/workspaces/3rd_Party/open_source/poco-1.3.6p2/include -I/workspaces/3rd_Party/open_source/boost_1_49_0/include -I/workspaces/3rd_Party/open_source/ACE-6.0 -I/workspaces/osnl/include -I/workspaces/osnl/SunOS/include -m32 -c common/xm2/x86/hbc/src/hbc_jpeg.c -o artifacts/common/xm2/x86/obj/debug/sol32/hbc_jpeg.o
    Assembler:
    "/tmp/yabeAAAIaaOxX", line 294 : Syntax error
    Near line: " maskmovq %mm0,%ebp"
    "/tmp/yabeAAAIaaOxX", line 1175 : Syntax error
    Near line: " maskmovq %mm0,%ebp"
    Failure in /opt/solarisstudio12.3/prod/bin/fbe, status = 0x7f00
    Fatal Error exec'ing /opt/solarisstudio12.3/prod/bin/fbe
    common/xm2embedded/host/x86/src/hbc_jpeg.c:1062 Warning: mmextract_epi16 intrinsic requires -xarch=sse4_1.*
    cc: acomp failed for common/xm2/x86/hbc/src/hbc_jpeg.c
    gmake[1]: *** [_artifacts_/common/xm2/x86/obj/debug/sol32/hbc_jpeg.o] Error 2
    gmake[1]: *** Waiting for unfinished jobs....
    ===============================ERRORS===============================
    AFTER CHANGING -xarch=sse2 to -xarch=sse4_1
    ===============================ERRORS===============================
    /opt/solarisstudio12.3/prod/bin/CC -errtags=yes -Kpic -mt -errwarn -library=stlport4 -DCPU_LITTLE_ENDIAN -DDSP_LITTLE_ENDIAN -xarch=sse4_1 -DTIXML_USE_STL=1 -erroff=doubunder -g -Icommon/xm2/xm2util/src -Icommon/xm2/xm2util/inc -Icommon/xm2/common/inc -Icommon/xm2/config/inc -Icommon/xm2embedded/host/utils/inc -Icommon/xm2/imageutil/inc -Icommon/xm2/x86hbc/include -Icommon/include -Iinclude -Icommon/xcc/inc -Icommon/cpp/inc -Icommon/Util/include -I/workspaces/open_source/poco-1.3.6p2/include -I/workspaces/3rd_Party/open_source/boost_1_49_0/include -I/workspaces/3rd_Party/open_source/ACE-6.0 -I/workspaces/CP.00_compiler/docusp/osnlayer/include -I/workspaces/osnl/SunOS/include -m32 -c common/xm2/xm2/src/JPEGHelpers.cpp -o artifacts/common/xm2/xm2/src/obj/debug/sol32/JPEGHelpers.o
    "common/xm2/xm2/src/JPEGHelpers.cpp", line 918: Error, nostructsym: Variable table is not a structure.
    "common/xm2/xm2/src/JPEGHelpers.cpp", line 919: Error, nostructsym: Variable table is not a structure.
    "common/xm2/xm2/src/JPEGHelpers.cpp", line 926: Error, nostructsym: Variable clear_high2bits is not a structure.
    "common/xm2/xm2/src/JPEGHelpers.cpp", line 927: Error, nostructsym: Variable clear_high2bits is not a structure.
    "common/xm2/xm2/src/JPEGHelpers.cpp", line 1223: Error, unassigned: The variable clear_high2bits has not yet been assigned a value.
    "common/xm2/xm2/src/JPEGHelpers.cpp", line 1224: Error, unassigned: The variable table has not yet been assigned a value.
    6 Error(s) detected.
    /opt/solarisstudio12.3/prod/bin/CC -errtags=yes -Kpic -mt -errwarn -library=stlport4 -DCPU_LITTLE_ENDIAN -DDSP_LITTLE_ENDIAN -xarch=sse4_1 -DTIXML_USE_STL=1 -erroff=doubunder -g -Icommon/xm2/xm2/src -Icommon/xm2/xm2/inc -Icommon/xm2/common/inc -Icommon/xm2/config/inc -Icommon/xm2/utils/inc -Icommon/xm2/imageutil/inc -Icommon/xm2/x86/include -Icommon/xm2/include -Iinclude -Icommon/xcc/inc -Icommon/cpp/inc -Icommon/Util/include -I/workspaces/3rd_Party/open_source/poco-1.3.6p2/include -I/workspaces/3rd_Party/open_source/boost_1_49_0/include -I/workspaces/3rd_Party/open_source/ACE-6.0 -I/workspaces/osnl/include -I/workspaces/osnl/SunOS/include -m32 -c common/xm2/xm2/src/Color.cpp -o artifacts/common/xm2/xm2/src/obj/debug/sol32/Color.o
    "common/xm2/xm2/inc/JPEGStripsImage.hpp", line 85: Error, badinitlval: Initializing std::vector<unsigned, xm2::XM2Allocator<unsigned>>& requires an lvalue.
    "common/xm2/image/inc/ISelector.hpp", line 36: Error, badinitlval: Initializing std::vector<unsigned, xm2::XM2Allocator<unsigned>>& requires an lvalue.
    "common/xm2/image/inc/RasterSelectorImage.hpp", line 53: Error, badinitlval: Initializing std::vector<unsigned, xm2::XM2Allocator<unsigned>>& requires an lvalue.
    3 Error(s) detected.
    6 Error(s) detected.gmake[1]: *** [_artifacts_/common/xm2/xm2/src/obj/debug/sol32/JPEGHelpers.o] Error 2
    gmake[1]: *** Waiting for unfinished jobs....
    3 Error(s) detected.gmake[1]: *** [_artifacts_/common/xm2/xm2/src/obj/debug/sol32/Color.o] Error 2
    ===============================ERRORS===============================
    Thank you.
    Vijay

  • Using isfinite on Solaris 11.1 x86 with CC from Solaris Studio 12.3

    Hello,
    I am trying to build GEOS , a C++ API that uses isfinite. From the man page, isfinite is defined in math.h and is a c99 feature.
    The header is properly included the build fails with error :
    /bin/sh ../../libtool --tag=CXX   --mode=compile CC -DHAVE_CONFIG_H -I. -I../../include -I../../include/geos -I../../include -m64 -g -library=stlport4 -library=Crun -c -o HCoordinate.lo HCoordinate.cpp
    libtool: compile:  CC -DHAVE_CONFIG_H -I. -I../../include -I../../include/geos -I../../include -m64 -g -library=stlport4 -library=Crun -c HCoordinate.cpp  -KPIC -DPIC -o .libs/HCoordinate.o
    "HCoordinate.cpp", line 76: Error: The function "isfinite" must have a prototype.
    "HCoordinate.cpp", line 76: Error: The function "isfinite" must have a prototype.
    "HCoordinate.cpp", line 153: Error: The function "isfinite" must have a prototype.
    "HCoordinate.cpp", line 164: Error: The function "isfinite" must have a prototype.
    4 Error(s) detected.
    gmake[3]: *** [HCoordinate.lo] Erreur 1
    In fact, the function is not defined because CC does not define __C99FEATURES__ as c99 does. If I add a -D__C99FEATURES__ parameter to CC, the build ends properly but I think it is not the proper way to do it.
    Does anybody knows the right way to do so ?
    Best regards
    Eric

    There is currently no support for the C99 math features in Studio C++. We have an outstanding request (bug 16263435) to make the features available, but there are some issues to be resolved. Because of the way the C headers and runtime library are implemented, if you get the C99 math features, you also get C99 (instead of C90) behavior for various types and functions that changed from C90 to C99.
    Defining  your own configuration macros, like __C99FEATURES__  is not recommend or supported. Try it at your own risk.
    You could consider writing in C the routines that need access to C99 math, and compiling them with the C compiler. Simple example:
    file isfinite.c
    #include <math.h>
    #include <stdbool.h>
    bool myisfinite(double x) { return isfinite(x); }
    file mymath.h
    extern "C" bool myisfinite(double);
    inline bool isfinite(double x) { return myisfinite(x); }
    file myprog.cc
    include "mymath.h"
    void foo()
        if( isfinite(xval) ) { ... }
        else { ... }
    % cc -xc99=all isfinite.c
    % CC myprog.cc isfinite.o

Maybe you are looking for

  • QR Barcode displays in Acrobat X Pro but converts data to graphic in Reader 8.  How to fix?

    The QR barcode, which displays 3 items, works perfectly in Pro X but changes from graphic to text when form completed by "user" in Reader 8.  How do I prevent this happening.

  • Solaris 2.6 upgrade to version 8 on SUN ULTRA 10

    Dear Mr. or Mrs: I met the same question as uxdms who left the message on Dec 20,2001. When I was trying to upgrade from solaris 2.6 to 8 release , there is "failed" warning and the upgrade isn't created. There is a detailed info: Mechine: SUN ULTRA

  • CJR2 planned cost recalculation based on update KP26 rates

    Hello All, Thank you for taking time to read my question. I am fairly new to the PS module and so please bear with me. I am trying to find if there is a TCode or SAP program to automatically update the total planned cost on CJR2, based on the updated

  • Macbook Pro randomly sleeps or dies

    I have a mid 2012 Macbook Pro Retina 2.3 GHz The problem: While using my macbook, the screen will randomly go blank like its gone to sleep. I then press the power button and get the red and black dead battery symbol on the screen. I plug in the charg

  • Satellite A110 reboots automatically after every shutdown

    Hi! I have the following problem: When shutting down the system, my notebook first goes off completely as desired, but 2 seconds later it starts again. It behaves different from a usual reboot - then it does not turn off, but reboots directly. Furthe