Compilation error with (amp) restriction specifier in C++ AMP

Hi,
[double post from :
original post ]
I'm using C++ AMP (I'm not that experienced with C++ and I'm new to AMP, so I have to stumble through this stuff) But I thought I had this code working, but now I'm getting the following error:
Error    1    error C3930: 'WRC_Raytracer::RaytracerRTC::RenderSceneWithAMP::<lambda_c13eb21eb34534d03d408733745bcf16>::operator ()' : no overloaded function has restriction specifiers that are compatible with the ambient
context 'Concurrency::_Parallel_for_impl'
Here is my parallel loop (cut down slightly to focus on the issue):
[code]
    parallel_for(0, 720 * 576, 1, [w, cBuffer, pixelDataView](int i) restrict(amp)
                // compute x and y for the given index
                float x = (float)(i % w);
                float y = (float)(i / w);
                // convert color from {0,1}f to {0,255}b
                int bInt, gInt, rInt;
                bInt = (int) (min(x/719.f, 1) * 255);
                gInt = (int) (min(y/575.f, 1) * 255);
                rInt = (int) (min(0, 1) * 255);
                // represent color data as (int)argb
                int pixelAsInt = (255 << 24) + (rInt << 16) + (gInt << 8) + bInt;
                // update pixelData element
                pixelDataView[i] = pixelAsInt;
[/code]              
Can anyone see what's wrong here ? As I said, I'm sure this was working yesterday, and I did something just before shutting down, and now it's not working.
Edit : I tried the parallel_for_each loop that I had started with. And that actually does work ...
parallel_for_each(pixelDataView.extent,[=](index<1> idx) restrict(amp)

Hello Gavin, thank you for your question.
Note that parallel_for_each (more precisely, the overloads that accept extent arguments and take a restrict(amp) functional parameter) is the unique entry-point for C++ AMP execution. Other functions in the concurrency namespace, such as parallel_for,
are unrelated, and stem from a different technology (PPL). Since restrict(amp) is specific to C++ AMP, trying to use a restrict(amp) functional object in any context but that of C++ AMP execution, is not possible - hence the compiler error
you were seeing. Hopefully this turns out helpful for you. Also, congratulations for picking up C++ AMP, I hope you like it! Cheers!

Similar Messages

  • Compilation errors with JDeveloper 10.1.2.2.0

    Hello,
    I want to change my environment work. First I worked with Eclipse (Europa, jre 1.6), I have no error with my following code source :
    private List<String> lString;
    and now I have a compilation error with the same code
    ' Error(43,14): <identifier> expected '
    I think it's a compiler version problem but I'm not sure and I don't know how to change the compiler version.
    If someone have any idea, I will be happy to receive response.
    Thanks

    JDeveloper 10.1.2.2.0 doesn't support neither JDK 1.6 nor JDK 1.5.
    --olaf                                                                                                                                                                                       

  • Problem with restriction specifier in C++ AMP code

    Hi,
    I'm using C++ AMP (I'm not that experienced with C++ and I'm new to AMP, so I have to stumble through this stuff) But I thought I had this code working, but now I'm getting the following error:
    Error    1    error C3930: 'WRC_Raytracer::RaytracerRTC::RenderSceneWithAMP::<lambda_c13eb21eb34534d03d408733745bcf16>::operator ()' : no overloaded function has restriction specifiers that are compatible with the ambient
    context 'Concurrency::_Parallel_for_impl'
    Here is my parallel loop (cut down slightly to focus on the issue):
    [code]
        parallel_for(0, 720 * 576, 1, [w, cBuffer, pixelDataView](int i) restrict(amp)
                    // compute x and y for the given index
                    float x = (float)(i % w);
                    float y = (float)(i / w);
                    // convert color from {0,1}f to {0,255}b
                    int bInt, gInt, rInt;
                    bInt = (int) (min(x/719.f, 1) * 255);
                    gInt = (int) (min(y/575.f, 1) * 255);
                    rInt = (int) (min(0, 1) * 255);
                    // represent color data as (int)argb
                    int pixelAsInt = (255 << 24) + (rInt << 16) + (gInt << 8) + bInt;
                    // update pixelData element
                    pixelDataView[i] = pixelAsInt;
    [/code]              
    Can anyone see what's wrong here ? As I said, I'm sure this was working yesterday, and I did something just before shutting down, and now it's not working.

    The documentation for AMP mentions parallel_for_each:
    http://msdn.microsoft.com/en-us/library/hh265136.aspx. Seems that you should redesign the code and use
    parallel_for_each instead of parallel_for in case of restrict(amp).

  • Compiler bug in 10.1.3 EA1?  get "Internal compilation error" with EnumSet

    The code sample below generates "Error: Internal compilation error, terminated with a fatal exception" when doing make. It's a very simple example, it creates an EnumSet with one element and dumps it via the "toString()" method.
    If I change the line:
    "EnumSet set = EnumSet.of(Buttons.ONE);"
    To:
    "EnumSet set = EnumSet.allOf(c);"
    It works fine. For some reason the "of" method of "EnumSet" crashes the compiler.
    Any ideas?
    ========================================
    package mypackage;
    import java.util.EnumSet;
    public class EnumDemo
    enum Buttons { ONE, TWO, THREE }
    public EnumDemo()
    public void dump()
              Class c = Buttons.class;
              EnumSet set = EnumSet.of(Buttons.ONE);
              System.out.println(set.toString());
    public static void main(String[] args)
    EnumDemo cls = new EnumDemo();
    cls.dump();
    ==============================

    package com.esp.main;
    import java.awt.Dimension;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.JTree;
    import javax.swing.event.TreeModelEvent;
    import javax.swing.event.TreeModelListener;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreePath;
    public class TreeNavigator extends JTree {
    private FormMain fm;
    public TreeNavigatorNode selectedTreeNode;
    public TreePath selectedTreePath;
    public JTree thisTree;
    public TreeNavigator(FormMain pFM) {
    fm = pFM;
    thisTree = this;
    addTreeSelectionListener(new TreeSelectionListener() {
    public void valueChanged(TreeSelectionEvent e) {
    selectedTreeNode = (TreeNavigatorNode)thisTree.getLastSelectedPathComponent();
    if (selectedTreeNode == null) {
    return;
    selectedTreePath = e.getPath();
    addMouseListener(new MouseAdapter() {
    public void mouseReleased(MouseEvent e) {
    if (e.getClickCount() == 1) {
    doPopup(e.getX(), e.getY());
    String nodeInternalFrameClassName = selectedTreeNode.getInternalFrameClassName();
    String nodeNodeTypeDesc = selectedTreeNode.getNodeTypeDesc();
    if ((selectedTreeNode != null) && (nodeNodeTypeDesc.equals("FORM") || nodeNodeTypeDesc.equals("GRAPH"))) {
    fm.showInternalFrame(nodeInternalFrameClassName, fm, null);
    } else if (e.getClickCount() == 1) {
    TreePath path = thisTree.getClosestPathForLocation(e.getX(), e.getY());
    thisTree.setSelectionPath(path);
    public void doPopup(int x, int y) {
    if ((selectedTreeNode != null) && selectedTreeNode.nodeTypeDesc.equals("MODULE")) {
    fm.cm.sendString("Do Nothing");
    } else {
    fm.cm.sendString("Launch form");
    setEditable(false);
    setMaximumSize(new java.awt.Dimension(3200, 3200));
    setPreferredSize(new java.awt.Dimension(800, 100));
    setShowsRootHandles(false);
    setLargeModel(false);
    setRootVisible(false);
    setDragEnabled(false);
    DefaultTreeModel treeNavigatorModel = new DefaultTreeModel(fm.treeNavigatorNodeArray[fm.rootNode], true);
    treeModel.addTreeModelListener(new NavigatorTreeModelListener());
    setModel(treeNavigatorModel);
    expandAll(this);
    try {
    jbInit();
    } catch (Exception e) {
    e.printStackTrace();
    public void expandAll(JTree tree) {
    int row = 0;
    while (row < tree.getRowCount()) {
    tree.expandRow(row);
    row++;
    private void jbInit() throws Exception {
    this.setSize(new Dimension(286, 383));
    TreeNavigatorCellRenderer renderer = new TreeNavigatorCellRenderer(fm);
    this.setCellRenderer(renderer);
    class NavigatorTreeModelListener implements TreeModelListener {
    public void treeNodesChanged(TreeModelEvent e) {
    TreeNavigatorNode node;
    node = (TreeNavigatorNode)(e.getTreePath().getLastPathComponent());
    * If the event lists children, then the changed
    * node is the child of the node we've already
    * gotten. Otherwise, the changed node and the
    * specified node are the same.
    try {
    int index = e.getChildIndices()[0];
    node = (TreeNavigatorNode)(node.getChildAt(index));
    } catch (NullPointerException exc) {
    public void treeNodesInserted(TreeModelEvent e) {
    public void treeNodesRemoved(TreeModelEvent e) {
    public void treeStructureChanged(TreeModelEvent e) {
    }

  • Compilation error with RWTValDlist T find() method

    This code used to compile fine with SC 4.x C++ compiler. We are migrating to "Sun WorkShop 6 update 2 C++ 5.3 2001/05/15" and it is now generating the following compilation error:
    ===============================
    cd generic/src; make -f generic.mk
    /opt/SUNWspro/bin/CC -c -PIC -compat -library=rwtools7 -O2 -I. -I. -I../include -I/home/jm/sunos5.8/ib_service_3.4.3/include -I/opt/local/megen/include -I/opt/SUNWspro/WS6U2/include/CC -I../../interface/include -I../include -I. -I/home/jm/sunos5.8/acell_4.1/include -I/opt/local/access/home/include -I/home/jm/sunos5.8/acell_4.1/include/packetcpp -I/home/jm/sunos5.8/acell_4.1/include/ecl -I/home/jm/sunos5.8/acell_4.1/include/gels -I/home/jm/sunos5.8/acell_4.1/src/security/include -I/home/jm/sunos5.8/acell_4.1/include/sequencer -I/home/jm/sunos5.8/acell_4.1/include/gen -I/home/jm/sunos5.8/acell_4.1/include/recipeMgr -I/home/jm/sunos5.8/acell_4.1/include/EFEFeature -I/home/jm/sunos5.8/ib_service_3.4.3/include -I/opt/local/megen/include -I/opt/local/rv/include -I/opt/local/etk/include -I/opt/local/etk/include/tdl -DTCPIP=1 -D__SYSVR4 -DSHOP=1 -D_SOLARIS=1 -I/opt/local/std_comp/include ACEAlarmClock.C
    "ACEAlarmClock.C", line 479: Error: Could not find a match for RWTValDlist<ACEObject*>::find(int(const ACEObject*&,void*), void**, ACEObject*).
    1 Error(s) detected.
    *** Error code 1
    make: Fatal error: Command failed for target `ACEAlarmClock.o'
    ===============================
    The header file in question is:
    #include <rw/tvdlist.h>
    class ACEAlarmClock : public ACEObject
    // The public interface.
    public:
    ACEAlarmClock();
    // Default constructor.
    private:
    static void alarmCallback(void *passAheadRef, ib_alarmid alarmId);
    static RWTValDlist<ACEObject *> AlarmClocks;
    and the source file in question is:
    void
    ACEAlarmClock::alarmCallback(void *passAheadRef, ib_alarmid alarmId)
    ACEObject *object = 0;                        // returned by find()
    if (AlarmClocks.find(findAlarmId, &alarmId, object))
    ACEAlarmClock alarmClock = (ACEAlarmClock )object;
    if (alarmClock)
    AlarmClocks.remove(alarmClock);
    alarmClock->isActive_ = FALSE;
    alarmClock->onAlarm(passAheadRef, alarmId);
    return;
    Any help is highly appreciated. Thanks.
    Cesar Saavedra
    [email protected]

    The C++ Migration Guide that comes with the compiler explains in detail everything you to need to know about migrating from C++ 4.2 to C++ 5.3.
    Use the "-compat" option on every CC command, compiling and linking. Any code that worked with C++ 4.2 will work the same way with C++ 5.3 in compat mode.
    -compat=4 sets language and binary compatibility to that of the 4.x compilers. -compat=5 sets language and binary compatibility to ANSI/ISO standard mode. If the -compat option is not specified, -compat=5 is assumed.
    - Rose

  • Compilation Errors with broadcom-wl

    Hello. I've been using the open source broadcom drivers in the kernel for quite some time now, and have found that they do not work well enough for my daily usage. I decided to go back to broadcom-wl, which I have used in the past with no issues. I tried compiling the AUR version to no avail, and proceeded to try the version from Broadcom's website. Both tries failed with the same error which I will post below:
    patching file src/wl/sys/wl_linux.c
    patching file src/wl/sys/wl_iw.h
    patching file src/wl/sys/wl_linux.c
    make: Entering directory `/usr/src/linux-3.0-PENGUIN'
    LD /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/built-in.o
    CC [M] /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/shared/linux_osl.o
    CC [M] /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_linux.o
    CC [M] /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_iw.o
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_iw.c:2300:2: error: unknown field ‘num_private’ specified in initializer
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_iw.c:2300:17: warning: initialization makes pointer from integer without a cast [enabled by default]
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_iw.c:2300:17: warning: (near initialization for ‘wl_iw_handler_def.get_wireless_stats’) [enabled by default]
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_iw.c:2301:2: error: unknown field ‘num_private_args’ specified in initializer
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_iw.c:2301:22: warning: excess elements in struct initializer [enabled by default]
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_iw.c:2301:22: warning: (near initialization for ‘wl_iw_handler_def’) [enabled by default]
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_iw.c:2303:2: error: unknown field ‘private’ specified in initializer
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_iw.c:2303:2: warning: initialization makes integer from pointer without a cast [enabled by default]
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_iw.c:2303:2: warning: (near initialization for ‘wl_iw_handler_def.num_standard’) [enabled by default]
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_iw.c:2303:2: error: initializer element is not computable at load time
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_iw.c:2303:2: error: (near initialization for ‘wl_iw_handler_def.num_standard’)
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_iw.c:2304:2: error: unknown field ‘private_args’ specified in initializer
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_iw.c:2304:2: warning: initialization from incompatible pointer type [enabled by default]
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_iw.c:2304:2: warning: (near initialization for ‘wl_iw_handler_def.get_wireless_stats’) [enabled by default]
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_iw.c:2306:22: error: ‘wl_get_wireless_stats’ undeclared here (not in a function)
    make[1]: *** [/tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_iw.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_linux.c:276:5: warning: "WIRELESS_EXT" is not defined [-Wundef]
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_linux.c: In function ‘wl_if_setup’:
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_linux.c:377:5: warning: "WIRELESS_EXT" is not defined [-Wundef]
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_linux.c: In function ‘wl_tkip_keyset’:
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_linux.c:2493:14: error: ‘IW_ENCODE_SEQ_MAX_SIZE’ undeclared (first use in this function)
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_linux.c:2493:14: note: each undeclared identifier is reported only once for each function it appears in
    /tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_linux.c:2493:8: warning: unused variable ‘rxseq’ [-Wunused-variable]
    make[1]: *** [/tmp/yaourt-tmp-michael/aur-broadcom-wl/src/src/wl/sys/wl_linux.o] Error 1
    make: *** [_module_/tmp/yaourt-tmp-michael/aur-broadcom-wl/src] Error 2
    make: Leaving directory `/usr/src/linux-3.0-PENGUIN'
    ==> ERROR: A failure occurred in build().
    My kernel is custom compiled linux-3.0.0, but I'm not sure if that is the issue. Thanks for your time.

    Update: After installing the official kernel package, as well as the official kernel headers package, I was able to build the module under that kernel. I still can't under my regular kernel though.

  • [ SOLVED ] Compile Error with Java Fonts & IntelliJ

    Hi All
    I have now got a new problem when i compile a flex project.  Yesterday inorder to get the IJ Interface font smoothing sorted, i had to add this line to my ~/.bashrc file
    _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on
    But now when i go to run a flex project, i get the following error message
    Information:Using built-in compiler shell, up to 4 parallel threads
    See compiler settings at File | Settings | Compiler | Flex Compiler page
    Information:Starting Flex compiler:
    /opt/java/jre/bin/java -Dapplication.home=/home/julian/SDK/flex_sdk_4.5.0.17855 -Xmx384m -Dsun.io.useCanonCaches=false -Duser.language=en -Duser.region=en -Xmx1024m -classpath /opt/idea-IU-98.311/plugins/flex/lib/flex-compiler.jar:/home/julian/SDK/flex_sdk_4.5.0.17855/lib/flex-compiler-oem.jar com.intellij.flex.compiler.FlexCompiler 48936
    Information:Compilation completed with 2 errors and 0 warnings
    Information:2 errors
    Information:0 warnings
    Error:Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on
    Error:java.net.SocketException: Socket closed
    Error:java.net.ConnectException: Connection refused
    Error:     at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:529)
         at java.net.Socket.connect(Socket.java:478)
         at java.net.Socket.<init>(Socket.java:375)
         at java.net.Socket.<init>(Socket.java:218)
         at com.intellij.flex.compiler.FlexCompiler.openSocket(FlexCompiler.java:35)
         at com.intellij.flex.compiler.FlexCompiler.main(FlexCompiler.java:70)
    Any suggestions, besides disabling the _JAVA_OPTION again ?
    Many Thanks
    Last edited by whitetimer (2010-11-14 17:24:11)

    -Dawt.useSystemAAFontSettings=on needs to be added to the end of file
    idea.vmoptions

  • "catch is unreachable" compiler error with java try/catch statement

    I'm receiving a compiler error, "catch is unreachable", with the following code. I'm calling a method, SendMail(), which can throw two possible exceptions. I thought that the catch statements executed in order, and the first one that is caught will execute? Is their a change with J2SE 1.5 compiler? I don't want to use a generic Exception, because I want to handle the specific exceptions. Any suggestions how to fix? Thanks
    try {
    SendMail(....);
    } catch (MessagingException e1) {
    logger.fine(e1.toString());
    } catch (AddressException e2) {
    logger.fine(e2.toString());
    public String SendMail(....) throws AddressException,
    MessagingException {....                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    I found the problem:
    "A catch block handles exceptions that match its exception type (parameter) and exception types that are subclasses of its exception type (parameter). Only the first catch block that handles a particular exception type will execute, so the most specific exception type should come first. You may get a catch is unreachable syntax error if your catch blocks do not follow this order."
    If I switch the order of the catch exceptions the compiler error goes away.
    thanks

  • Compilation errors with boost 1.36

    Hi,
    My compiler
    CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-08 2002/06/02
    I am getting the followin*g errors when trying to compile
    Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    "./boost/math/tools/precision.hpp", line 108: Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    "./boost/math/tools/precision.hpp", line 116: Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    "./boost/math/tools/precision.hpp", line 122: Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    "./boost/math/tools/precision.hpp", line 128: Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    "./boost/math/tools/precision.hpp", line 141: Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    "./boost/math/tools/precision.hpp", line 172: Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    I have done configuration as following
    %> ./configure with-toolset=sun prefix=/u/jn/boost/boost_1_36_0
    my usr-config.jam file looks as below
    # Boost.Build Configuration
    # Automatically generated by Boost configure
    # Compiler configuration
    using sun : 6 : /home/nfs/sollocal/beatlehome1/F6U2/SUNWspro/bin/CC : <stdlib>sun-stlport
    <cxxflags>-library=stlport4 -m64 -xcode=pic32 -erroff=wvarhidemem,hidevf,hidevfinvb -errtag
    s=yes <linkflags>-library=stlport4 -m64 ;
    # Python configuration
    using python : 2.6 : /usr/local ;
    my Makefile
    BJAM=./tools/jam/src/bin.solaris/bjam
    BJAM_CONFIG= -sICU_PATH=/usr
    prefix=/u/jnarayan/boost/boost_1_36_0
    exec_prefix=$(prefix)
    libdir=$(exec_prefix)/lib
    includedir=$(prefix)/include
    LIBS=
    all: .dummy
    @echo "$(BJAM) $(BJAM_CONFIG) --user-config=user-config.jam $(LIBS)"
    @$(BJAM) $(BJAM_CONFIG) --user-config=user-config.jam $(LIBS) || \
    echo "Not all Boost libraries built properly."
    clean: .dummy
    rm -rf bin.v2
    distclean: clean
    rm -rf Makefile config.log
    check: .dummy
    @cd status && ../$(BJAM) $(BJAM_CONFIG) --user-config=../user-config.jam || echo "S
    ome Boost regression tests failed. This is normal for many compilers."
    install: .dummy
    @echo "$(BJAM) $(BJAM_CONFIG) address-model=64 user-config=user-config.jam pref
    ix=$(prefix) exec-prefix=$(exec_prefix) libdir=$(libdir) --includedir=$(includedir) $(L
    IBS) install"
    @$(BJAM) $(BJAM_CONFIG) address-model=64 --user-config=user-config.jam --prefix=$(p
    refix) --exec-prefix=$(exec_prefix) --libdir=$(libdir) --includedir=$(includedir) $(LIBS) i
    nstall || echo "Not all Boost libraries built properly."
    .dummy:
    thanks in advance for your help

    BOOST cannot be compiled with WS6u2.
    The oldest compiler that can build BOOST is Sun Studio 11 (C++ 5.8).
    You will have better luck with Sun Studio 12 (C++ 5.9). Both Studio 11 and Studio 12 are free.
    Get Sun Studio 12 here:
    [http://developers.sun.com/sunstudio/]
    Sun Studio 12 requires Solaris 9, 10, or Open Solaris.
    If you are running Solaris 8, get Sun Studio 11 instead:
    [http://developers.sun.com/sunstudio/products/previous/11/index.jsp]
    After installing the appropriate version of Sun Studio, get all current patches for it here:
    [http://developers.sun.com/sunstudio/downloads/patches/index.jsp]
    Then check Simon's blog for advice on building BOOST with Sun Studio 11 or 12.
    [http://blogs.sun.com/sga/category/Boost]

  • Compiler error with forte 6.2 - assertion failed in sp_interface.cc

    I have a compilation error when compiling on my Ultra 10
    using Forte 6.2 C compiler (5.3). Here's the line:
    teds@enigma[195]% cc -xtarget=ultra3 -xarch=v8plusb -dalign -fns -fsimple=2 -ftrap=%none -xlibmil !!
    cc -xtarget=ultra3 -xarch=v8plusb -dalign -fns -fsimple=2 -ftrap=%none -xlibmil -xO4 -DCMO_DEBUG_DETAIL -DUSE_DATACONN -c cmoisubs.c -o cmoisubs.o
    cg: assertion failed in file ../src/ms_pipe/sp_interface.cc at line 689
    cg: Internal error: constval annotation set on reg with multiple defs
    cg: 1 errors
    cc: cg failed for cmoisubs.c
    teds@enigma[196]%
    Does anyone have any ideas?
    Thanks,
    Ted

    Hi There,
    Form the error message it seems like a bug in cg.
    Try the follwoing option and see if the bug goes away.
    -Qoption cg -O0 or use -Qms_pipe-off.
    Please refer C user's guide for usage.
    ....jagruti
    Developers Technical Support
    Sun Microsystems, http://www.sun.com/developers/support

  • Compilation Error with Solaris8

    Hi ,
    I am getting a queer compilation error when compiling a simple C++ program on
    Solaris8 . The error does not occur with solaris7 . I have inclued the program
    and the error message . Can you give me some tips to overcome this problem .
    #include <iostream.h>
    int main ( void)
         cout << "hello world" ;
    /*************COMPILATION ERRROS ***************/
    "/usr/include/iso/wchar_iso.h", line 100: Error: Multiple declaration for mbstate_t.
    "/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 51: Error: The name mbstate_t is ambiguous, std::mbstate_t and std::mbstate_t.
    "/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 78: Error: The name mbstate_t is ambiguous, std::mbstate_t and std::mbstate_t.
    "/opt/SUNWspro/SC5.0/include/CC/rw/iotraits", line 56: Error: The name mbstate_t is ambiguous, std::mbstate_t and std::mbstate_t.
    4 Error(s) detected.
    Regards,
    vichu

    Thanks! However, my sample code does not inclide iostream.
    #include <string>
    main() {
    string s = "123asd";
    exit(0);
    and there is the output
    hwang@jazz: /opt/SUNWspro/SC5.0/bin/CC test.C
    "/usr/include/wchar_impl.h", line 24: Error: Multiple declaration for __mbstate_t.
    "/usr/include/wchar.h", line 90: Error: Multiple declaration for mbstate_t.
    "/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 37: Error: The name __mbstate_t is ambiguous,
    __mbstate_t and __mbstate_t.
    "/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 45: Error: Multiple declaration for mbstate_t.
    "/opt/SUNWspro/SC5.0/include/CC/rw/iotraits", line 37: Error: The name __mbstate_t is ambiguou
    s, __mbstate_t and __mbstate_t.
    "/opt/SUNWspro/SC5.0/include/CC/rw/iotraits", line 57: Error: Multiple declaration for mbstate
    _t.
    "test.C", line 4: Error: string is not defined.
    "test.C", line 4: Error: Cannot use const char* to initialize int.
    8 Error(s) detected.
    Any ideas?
    Thanks again

  • Compiler Error with simple vi using MatLab script nodes

    While attempting to build a simple vi to test the capabilities of LabView's interface with MatLab, I received a compiler error message that said I should report the problem to National Instruments Tech Support. The error said, "reference to undefined label from: refPC=0x41C." I've attached the vi that created the error. I am using LabView 7.0 on a PC running Windows 98.
    Attachments:
    Compliererror.vi ‏11 KB

    I don't know if this will help your problem, but there is a fix for some problems with LabVIEW 7.0 and Matlab:
    http://digital.ni.com/public.nsf/websearch/4475BC3CEB062C9586256D750058F14B?OpenDocument
    Good luck,
    -Jim

  • BUG: 10.1.3..36.73 Internal Compile Error with enhanced for loop/generics

    I get the following compiler error when using the Java 5 SE enhanced for loop with a generic collection.
    Code:
    public static void main(String[] args)
    List<Integer> l = new ArrayList<Integer>();
    l.add(new Integer(1));
    printCollection(l);
    private static void printCollection(Collection<?> c)
    for (Object e : c)
    System.out.println(e);
    Error on attempting to build:
    "Error: Internal compilation error, terminated with a fatal exception"
    And the following from ojcInternalError.log:
    java.lang.NullPointerException
         at oracle.ojc.compiler.EnhancedForStatement.resolveAndCheck(Statement.java:2204)
         at oracle.ojc.compiler.StatementList.resolveAndCheck(Statement.java:4476)
         at oracle.ojc.compiler.MethodSymbol.resolveMethod(Symbol.java:10822)
         at oracle.ojc.compiler.RawClassSymbol.resolveMethodBodies(Symbol.java:6648)
         at oracle.ojc.compiler.Parser.resolveMethodBodies(Parser.java:8316)
         at oracle.ojc.compiler.Parser.parse(Parser.java:7823)
         at oracle.ojc.compiler.Compiler.main_internal(Compiler.java:978)
         at oracle.ojc.compiler.Compiler.main(Compiler.java:745)
         at oracle.jdeveloper.compiler.Ojc.translate(Ojc.java:1486)
         at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildGraph(UnifiedBuildSystem.java:300)
         at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildProjectFiles(UnifiedBuildSystem.java:515)
         at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildAll(UnifiedBuildSystem.java:715)
         at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.run(UnifiedBuildSystem.java:893)

    Install the Service Update 1 patch for JDeveloper (using the help->check for updates), and let us know if this didn't solve the problem.

  • Compilation error with dataProvider attribute

    My objective is to have a ComboBox itemEditor for a column in
    a DataGrid. This
    will get used in a number of places in our app, for example
    to add an order
    line to an order. We would want the ComboBox to be populated
    with the list of
    available products, and Flex goes most of the way to
    providing that
    functionality. But I get a compilation error on a line that I
    would expect to
    work. Here's the full sample:
    quote:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    height="700" width="700"
    creationComplete="onLoad()">
    <mx:Script>
    <![CDATA[
    [Bindable]
    public var myDP:Array = [
    {label1:"P1", quantity:3},
    {label1:"P2", quantity:3}
    [Bindable]
    public var products:Array = [ {label:"P1", data:1},
    {label:"P2", data:2}, {label:"P3", data:3} ];
    public function onLoad():void
    ProductsRequest.send() ;
    ]]>
    </mx:Script>
    <mx:HTTPService id="ProductsRequest"
    url="
    http://localhost:3000/lists/productlist"
    useProxy="false"/>
    <mx:Component id="ProductCodeEditor">
    <mx:ComboBox
    dataProvider="{ProductsRequest.lastResult.products.product}"
    labelField="name"/>
    </mx:Component>
    <mx:ComboBox
    dataProvider="{ProductsRequest.lastResult.products.product}"
    labelField="name"></mx:ComboBox>
    <mx:DataGrid id="myDG" dataProvider="{myDP}"
    variableRowHeight="true"
    editable="true">
    <mx:columns>
    <mx:DataGridColumn dataField="label1" headerText="Product
    Code" itemEditor="{ProductCodeEditor}"/>
    <mx:DataGridColumn dataField="quantity"
    headerText="Quantity"
    editorDataField="value">
    <mx:itemEditor>
    <mx:Component>
    <mx:NumericStepper stepSize="1" maximum="50"/>
    </mx:Component>
    </mx:itemEditor>
    </mx:DataGridColumn>
    </mx:columns>
    </mx:DataGrid>
    </mx:Application>
    I get a complation error on the following line
    quote:
    <mx:Component id="ProductCodeEditor">
    -->> <mx:ComboBox
    dataProvider="{ProductsRequest.lastResult.products.product}"
    labelField="name"/>
    </mx:Component>
    The error message is "Access of undefined property
    ProductsRequest"
    However, the other <mx:ComboBox> definition compiles
    and works fine. In
    other words, in the sample code (shown again below) we have
    two <mx:ComboBox>
    definitions with the same dataProvider definition. The one on
    line 33 compiles
    and works, the other doesn't, and the only difference is that
    one of them is
    within a <mx:Component> declaration.
    quote:
    27 <mx:HTTPService id="ProductsRequest"
    url="
    http://localhost:3000/lists/productlist"
    useProxy="false"/>
    28
    29 <mx:Component id="ProductCodeEditor">
    30 <mx:ComboBox
    dataProvider="{ProductsRequest.lastResult.products.product}"
    labelField="name"/>
    31 </mx:Component>
    32
    33 <mx:ComboBox
    dataProvider="{ProductsRequest.lastResult.products.product}"
    labelField="name"></mx:ComboBox>
    I really can't believe that this behaviour is by design. If
    it is, could
    somebody tell me what this design is, and how I am supposed
    to populate a
    combobox with product codes in a grid?
    Thanks,
    Ed.

    Sorry, I see you are trying to do that. I am not yet familiar
    with inline renderers.
    However, I suspect a scope issue. I bet the renderer
    component does not have access to the application scope, where the
    dataService is declared.
    This doc might help:
    http://livedocs.macromedia.com/labs/1/flex20beta3/00000857.html
    Tracy

  • Compiler errors with most recent update

    I just ran the SoftwareUpdate utility and it installed QuickTime 7.1 and Apple Security Update 2006-003. Now when I compile, I get the following errors:
    ld: Undefined symbols:
    _LLCStyleInfoCheckForOpenTypeTables referenced from QuartzCore expected to be defined in ApplicationServices
    _LLCStyleInfoGetUserRunFeatures referenced from QuartzCore expected to be defined in ApplicationServices
    This error used to be "[blahblahblah] referenced from Quicktime epected to be defined in ApplicationServices" not QuartzCore. I looked at /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore and sure enough, it has a modifcation date of today.
    The previous error was caused what appears to be QuickTime 7.0.4 being developed/compiled on Tiger and then distributed to Panther users like myself via Software Update.
    I can't figure out whether the QuickTime update or the Security Update changed my QuartzCore, but I'm having trouble figuring out a solution to this problem.
    Find a copy of the old QuartzCore framework? Figure out some way to add a dummy library that will define these symbols? Make sure Apple developers compile stuff on Panther when delivering code for Panther? I had to downgrade from Quicktime 7.0.4 to 7.0.1 to compile, which broke my iTunes 6.0.4. Now that won't even help, because the Quicktime 7.0.1 downgrade package doesn't contain QuartzCore.

    I can't compile anymore after the recent update on PowerMac G5 1.8GHz.
    It still works on iBook G4 1GHz.
    Both running Mac Os X 10.4.6
    Here is an example of config.log from a failed configuration.
    $ ./configure --prefix=/opt/local --infodir=${prefix}/share/info
    ## Platform. ##
    hostname = orca.local
    uname -m = Power Macintosh
    uname -r = 8.6.0
    uname -s = Darwin
    uname -v = Darwin Kernel Version 8.6.0: Tue Mar 7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC
    /usr/bin/uname -p = powerpc
    /bin/uname -X = unknown
    /bin/arch = unknown
    /usr/bin/arch -k = unknown
    /usr/convex/getsysinfo = unknown
    hostinfo = Mach kernel version:
    Darwin Kernel Version 8.6.0: Tue Mar 7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC
    Kernel configured for a single processor only.
    1 processor is physically available.
    Processor type: ppc970 (PowerPC 970)
    Processor active: 0
    Primary memory available: 1.25 gigabytes
    Default processor set: 68 tasks, 263 threads, 1 processors
    Load average: 2.71, Mach factor: 0.24
    /bin/machine = unknown
    /usr/bin/oslevel = unknown
    /bin/universe = unknown
    PATH: /opt/local/bin
    PATH: /opt/local/sbin
    PATH: /bin
    PATH: /sbin
    PATH: /usr/bin
    PATH: /usr/sbin
    PATH: /usr/X11R6/bin
    ## Core tests. ##
    configure:1658: checking build system type
    configure:1676: result: powerpc-apple-darwin8.6.0
    configure:1684: checking host system type
    configure:1698: result: powerpc-apple-darwin8.6.0
    configure:1721: checking for a BSD-compatible install
    configure:1776: result: /opt/local/bin/ginstall -c
    configure:1787: checking whether build environment is sane
    configure:1830: result: yes
    configure:1887: checking for gawk
    configure:1903: found /opt/local/bin/gawk
    configure:1913: result: gawk
    configure:1923: checking whether make sets $(MAKE)
    configure:1943: result: yes
    configure:2109: checking whether to enable maintainer-specific portions of Makefiles
    configure:2118: result: no
    User:
    ABI=
    CC=
    CFLAGS=(unset)
    CPPFLAGS=(unset)
    MPN_PATH=
    GMP:
    abilist=32
    cclist=gcc cc
    configure:3776: gcc 2>&1 | grep xlc >/dev/null
    configure:3779: $? = 1
    configure:3833: checking compiler gcc -O2 -mpowerpc
    Test compile:
    configure:3847: gcc -O2 -mpowerpc conftest.c >&5
    cc1: internal compiler error: Bus error
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:<a class="jive-link-external-small" href="http://">http://developer.apple.com/bugreporter> for instructions.
    configure:3850: $? = 1
    failed program was:
    int main () { return 0; }
    configure:4856: result: no
    configure:3754: cc -c conftest.c >&5
    cc1: internal compiler error: Bus error
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:<a class="jive-link-external-small" href="http://">http://developer.apple.com/bugreporter> for instructions.
    configure:3757: $? = 1
    configure:3776: cc 2>&1 | grep xlc >/dev/null
    configure:3779: $? = 1
    configure:3833: checking compiler cc -O2
    Test compile:
    configure:3847: cc -O2 conftest.c >&5
    cc1: internal compiler error: Bus error
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:<a class="jive-link-external-small" href="http://">http://developer.apple.com/bugreporter> for instructions.
    configure:3850: $? = 1
    failed program was:
    int main () { return 0; }
    configure:4856: result: no
    configure:5094: error: could not find a working compiler, see config.log for details
    PowerMac G5 1.8GHz (single processor)   Mac OS X (10.4.6)   1.2GB RAM

Maybe you are looking for

  • Problems with Photoshop Elements 9 Help Function

    I recently installed Photoshop Organizer and Elements 9.  When I try to access any of the first six options in the help section of the menu at the top of the window I get an Adobe AIR error message stating that the installation of this application is

  • Call dll from javascript

    hai, i have a dll(VB) in client m/c. i need to call a method in a dll from javascript. if possible please give some sample code.

  • HT204380 My facetime isn't working.

    It starts conecting when i want to Facetime, but then it suddenly disconnects. I checked in my settings and it says waiting for activation, but it wont activate. Any advise?

  • Latest Mail.app strange behavior

    Hi, My Mac recently downloaded and upgraded my system to 10.10.1, and ever since Mail.app has really been annoying when I make it active from the Dock.  Prior to this release, I could select from among several mail account inboxes and that selection

  • I lost my keynote and pages file

    How do I restore keynote and pages file that seem to have vanished in icloud?