Cpp Compiler

Are there and c++ compilers out there that are free and are easy to use that run on DOS

Christopher gave you some good advice.
DOS is an operating system that ran on a wide variety of computers a long time ago and was also the basis for the Windows 9x family of operating systems. There is no DOS on a Mac.
If you are referring simply to the command line (or shell), on a Mac that usually means the Terminal application.

Similar Messages

  • Generate 0 byte *.o file  compile  problem.

    System = SunOS
    Node = omc178
    Release = 5.10
    KernelID = Generic_141414-07
    Machine = sun4v
    BusType = <unknown>
    Serial = <unknown>
    Users = <unknown>
    OEM# = 0
    Origin# = 1
    NumCPU = 32
    we parallel build our code(about 3 million line codes) every night.It will generate several compile errors .
    make
    linking /opt/cruisecontrol/userData/groups/group01/projects/LCR5/source/omc/server/lib/libitfn_irpservice_sharemodule.so
    ld: fatal: file lib/libitfn_irpservice_sharemodule.o: unknown file type
    ld: fatal: File processing errors. No output written to /opt/cruisecontrol/userD
    ata/groups/group01/projects/LCR5/source/omc/server/lib/libitfn_irpservice_sharem
    odule.so
    make: *** [/opt/cruisecontrol/userData/groups/group01/projects/LCR5/source/omc/s
    erver/lib/libitfn_irpservice_sharemodule.so] Error 1
    Check the file, I find the libitfn_irpservice_sharemodule.o is empty,but the source file (irpservice_sharemodule.cpp)is correct.
    root@omc178 # file lib/libitfn_irpservice_sharemodule.o
    lib/libitfn_irpservice_sharemodule.o: empty file
    root@omc178 # ls -l lib/libitfn_irpservice_sharemodule.o
    -rw-r--r-- 1 root root 0 Sep 28 01:30 lib/libitfn_irpservice_sha
    remodule.o
    make clean,and make&#65292;The compile passes and it becomes ok.
    root@omc178 # make clean
    cleaing all filesroot@omc178 # make
    combine lib/libitfn_irpservice_sharemodule.cpp
    compiling lib/libitfn_irpservice_sharemodule.cpp --> lib/libitfn_irpservice_sharemodule.o
    linking /opt/cruisecontrol/userData/groups/group01/projects/LCR5/source/omc/server/lib/libitfn_irpservice_sharemodule.so
    root@omc178 # ls -l lib/libitfn_irpservice_sharemodule.o
    -rw-r--r-- 1 root root 5411828 Sep 28 10:21 lib/libitfn_irpservice_sha
    remodule.o
    why and how to solve?
    thanks.

    many thanks,
    find the reason:
    full, swap space limit exceeded
    Sep 29 01:47:43 omc178 last message repeated 32 times
    Sep 29 01:47:44 omc178 genunix: [ID 470503 kern.warning] WARNING: Sorry, no swap
    space to grow stack for pid 13976 (ccfe)
    Sep 29 01:47:44 omc178 tmpfs: [ID 518458 kern.warning] WARNING: /tmp: File syste
    m full, swap space limit exceeded
    Sep 29 01:47:49 omc178 last message repeated 11 times
    Sep 29 01:49:12 omc178 tmpfs: [ID 518458 kern.warning] WARNING: /tmp: File syste
    m full, swap space limit exceeded
    Sep 29 01:49:12 omc178 last message repeated 1 time
    Sep 29 01:49:33 omc178 genunix: [ID 470503 kern.warning] WARNING: Sorry, no swap
    space to grow stack for pid 21822 (ccfe)
    Sep 29 01:49:34 omc178 tmpfs: [ID 518458 kern.warning] WARNING: /tmp: File syste
    m full, swap space limit exceeded
    Sep 29 01:53:23 omc178 last message repeated 599 times

  • Suggestions on compiling STLPort?

    About two weeks ago, I posted a problem using the STLPort4 library where a segmentation fault happens down in STLPatomic_exchange. I am still encountering the problem intermittently.
    I would like to compile the latest stable release from www.stlport.com so that I better track down the problem.
    Are there any special compile commands needed to get the STLPort to compile under C++ 5.4?
    The compiler command for including stlport "-library=stlport4" appears to be special for the library, why is that?

    The following code has been shown to reproduce my SEGV issue in stlport's STLPatomic_exchange. Before compiling and running:
    1. This problem could take one to many minutes to occur
    2. Make sure that your platform has nobody else using it because the app will drive your CPU to 100%
    3. Please don't make fun of my Makefile
    Good luck and I hope you have the same "success" that I had.
    ### Makefile Start
    PLATFORM :sh= uname -p | sed s/i386/x86/
    OSVARIANT=$(PLATFORM)-SunOS
    #### Compiler and tool definitions shared by all build targets #####
    CCC=CC
    BASICOPTS=
    CCFLAGS= -g -mt -library=stlport4 -staticlib=stlport4 -misalign
    CCADMIN=CCadmin
    ## Target: GCNServer
    CPPFLAGS = -I/usr/include -I/usr/include/sys
    OBJS =  stlproblem.o
    SYSLIBS = -lpthread -lm -lsocket -lnsl -lposix4
    LDLIBS =  $(SYSLIBS)
    # Link or archive
    stlproblem:  $(OBJS)
         $(LINK.cc) -o stlproblem $(OBJS) $(LDLIBS)
    # Compile source files into .o filess
    stlproblem.o: stlproblem.cpp
         $(COMPILE.cc) -o $@ stlproblem.cpp
    #### Clean target deletes all generated files ####
    clean::
         $(RM) ./stlproblem ./stlproblem.o
         $(CCADMIN) -clean
    # Create the target directory (if needed)
    obj:
    # Enable dependency checking
    .KEEP_STATE:
    ### Makefile end
    // stlproblem.cpp code start
    This source file contains a system of n threaded objects that use a common object
    table in order to access the other threaded objects.  As the system runs, x
    number of messages are passed randomly between these threaded objects.  In order
    to access the object pointer for a message recipient, the common
    ObjectTable::GetObjectPointer method is used.  In this call, STL will SEGV in
    the _STLP_atomic_exchange.  This problem occurs on our SUN 280R servers (1 CPU)
    in Solaris 9.  Our compiler version is CC: Forte Developer 7 C++ 5.4 2002/03/09.
    #include "stdlib.h"
    #include "stdio.h"
    #include "math.h"
    #include "pthread.h"
    #include "semaphore.h"
    #include <iostream>
    #include <list>
    #include <string>
    #include <map>
    #define THREAD_COUNT   100
    #define MESSAGE_COUNT  1000
    using namespace std;
    // shared table to hold the objects
    class ObjectTable
    public:
        ObjectTable();
        ~ObjectTable();   
        void* GetObjectPointer(std::string Name);   
        std::map<std::string, void*> m_table;
    ObjectTable::ObjectTable(void)
    ObjectTable::~ObjectTable(void)
    void* ObjectTable::GetObjectPointer(std::string Name)
        std::string object_name;
        std::string instance;
        std::map<std::string, void*>::iterator iter;
        void *rtnval = NULL;
        // this is where STLPort is expected to crash, so play with std::string operations
        // iterate to slow this method down and get more than one thread in here
        iter = m_table.begin();
        for(int i=0; i<m_table.size(); i++)
            object_name = (*iter).first;
            // the following line appears to be the main culprit even though it does nothing useful
            instance = object_name.substr(0, object_name.find("e")+1);
            if(object_name == Name)
                rtnval = m_table[object_name];
            iter++;
        return rtnval;
    // global declaration of the table that all objects can reference
    ObjectTable *gObjectTable = NULL;
    // message payload class
    class Message
    public:   
        Message(std::string Text);
        ~Message(void);
        std::string m_messageText;
    Message::Message(std::string Text)
        m_messageText = Text;
    Message::~Message(void)
    // the main living object class
    class LivingObject
    public:
        LivingObject(std::string ObjectName);
        ~LivingObject(void);
        void HandleMessages(void);
        void QueueMessage(Message* pMsg);
        pthread_mutex_t m_criticalSectionMutex;
        pthread_cond_t m_messageEventCondition;
        pthread_mutex_t m_messageEventMutex;   
        std::list<Message*> m_messageList;
        std::string m_myName;
    LivingObject::LivingObject(std::string ObjectName)
        pthread_mutex_init(&m_criticalSectionMutex, NULL);      
        pthread_cond_init(&m_messageEventCondition, NULL);
        pthread_mutex_init(&m_messageEventMutex, NULL);
        m_messageList.clear();
        m_myName = ObjectName;
    LivingObject::~LivingObject(void)
    void LivingObject::HandleMessages(void)
        char buf[16];   
        unsigned int seed = 4925;   
        while(1)
            pthread_cond_wait(&m_messageEventCondition, &m_messageEventMutex);
            while(m_messageList.size() > 0)
                pthread_mutex_lock(&m_criticalSectionMutex);           
                Message *p_msg = (Message*) m_messageList.front();
                m_messageList.pop_front();
                pthread_mutex_unlock(&m_criticalSectionMutex);  
                LivingObject *p_object;           
                do
                    // pick a random object to send the message to (can't be ourselves)               
                    seed = rand_r(&seed);           
                    int object_number = (int) floor(((double)seed/(double)RAND_MAX) * THREAD_COUNT);
                    sprintf(buf, "Instance%d", object_number);
                    std::string object_name = buf;
                    // Turn the following line on to show the message activity between threads
                    // When the cout is active, it may delay the SEGV issue.
                    //cout << m_myName << " is sending " << p_msg->m_messageText << " to " << object_name << endl;
                    // the SEGV crash should occur in this call - gObjectTable is the global pointer
                    p_object = (LivingObject*) gObjectTable->GetObjectPointer(object_name);
                    if(p_object != this && p_object != NULL)               
                        p_object->QueueMessage(p_msg);
                } while(p_object == this);
    void LivingObject::QueueMessage(Message *pMsg)
        // protect the message list since it is read-write
        pthread_mutex_lock(&m_criticalSectionMutex);   
        m_messageList.push_back(pMsg);
        pthread_cond_signal(&m_messageEventCondition);
        pthread_mutex_unlock(&m_criticalSectionMutex);   
    // thread entry point for the LivingObject class
    extern "C" void* LivingObjectThread(void* param)
        std::string object_name = (char*) param;
        LivingObject *alive_object = new LivingObject(object_name);    
        cout << object_name << " is alive!" << endl;
        gObjectTable->m_table[object_name] = (void*) alive_object;
        // HandleMessages() will block indefinitely...
        alive_object->HandleMessages();
        // ...and we never get here
        return 0;
    int main(int argc, char* argv[])
        char *name_buf;
        gObjectTable = new ObjectTable();
        // create lots of threads
        pthread_t tid;   
        for(int i=0; i<THREAD_COUNT; i++)
            name_buf = new char[16];
            sprintf(name_buf, "Instance%d", i);       
            pthread_create(&tid, NULL, LivingObjectThread, (void*)name_buf);
        // Get the ball rolling - effectively these "messages" will bounce around
        // through all of the object threads just created.  the idea is that
        // eventually two threads will enter the ObjectTable::GetObjectPointer
        // at the same time and cause the STLPort crash in _STLP_atomic_exchange().   
        LivingObject *instance0 = NULL;
        do
            instance0 = (LivingObject*) gObjectTable->GetObjectPointer((std::string)"Instance0");       
        } while(instance0 == NULL);   
        // create lots of messages
        char message_buf[64];   
        for(int i=0; i<MESSAGE_COUNT; i++)
            sprintf(message_buf, "Message Number %d", i+1);
            Message *msg = new Message(message_buf);
            instance0->QueueMessage(msg);
        // block the app from exiting (CTRL-C is the only way out)
        sem_t never_exit_event;   
        sem_init(&never_exit_event, 0, 0);   
        sem_wait(&never_exit_event);
        return 0;
    // stlproblem.cpp code end

  • Could not find agent library on the library path or in the local directory

    Hi all,
    I'm trying to write a jvmti agent that write any information in a mysql db. I've written a simple agent that work correctly and now I'll try to insert the mysqlpp library in my agent:
    1) I've added #include <mysql++.h>
    2) and I've added mysqlpp::Connection      conn(false); (global variable)
    I've modify my Makefile and the compiler and linker work correctly but when I test the agent the VM says "Could not find agent library on the library path or in the local directory"
    Below the code:
    -- analizer.cpp --
    #include <iostream>
    #include <stdlib.h>
    #include <jni.h>
    #include <string.h>
    #include <jvmti.h>
    #include <mysql++.h>
    #include "ClassDetail.cpp"
    #define CFN(ptr) checkForNull(ptr, __FILE__, __LINE__);
    static void checkForNull(void *ptr, const char* file, int line) {
        if(ptr == NULL) {
            std::cerr << "ERROR : NullPointerException in " << file <<":"<< line<<"\n";
            abort();
    static char* getErrorName(jvmtiEnv *jvmti, jvmtiError err) {
        jvmtiError errNum;
        char *name;
        errNum = jvmti->GetErrorName(err, &name);
        if( errNum != JVMTI_ERROR_NONE) {
            std::cerr << "ERROR : errore nel reprire l'error name " << errNum;
            abort();
        return name;
    #define CJVMTIE(jvmti, err) checkJvmtiError(jvmti, err, __FILE__, __LINE__);
    static void checkJvmtiError(jvmtiEnv *jvmti, jvmtiError err, const char* file, int line) {
        if(err != JVMTI_ERROR_NONE) {
            char *name = getErrorName(jvmti, err);
            std::cout << "ERROR : JVMTI error " << err << "("<<name<<") in "<<file<<":"<<line;
            abort();
    static void vmInit(jvmtiEnv *jvmti_env, JNIEnv *jni, jthread thread);
    static void startGCEvent(jvmtiEnv *jvmti_env);
    static void finishGCEvent(jvmtiEnv *jvmti_env);
    static jvmtiIterationControl JNICALL heapObject(jlong tag, jlong size, jlong* tag_ptr, void* userData);
    jrawMonitorID           lock;
    int                     gc_count;
    long                    heapSize = 0;
    bool                    heapCheck = false;
    mysqlpp::Connection      conn(false);
    JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM *vm, char *options, void *reserved) {
        std::cout<<"OnLoad\n";
        jint                rc;
        jvmtiEnv            *jvmti = NULL;
        jvmtiError          err;
        jvmtiCapabilities   capabilities;
        jvmtiEventCallbacks callbacks;
        rc = vm->GetEnv((void **)&jvmti, JVMTI_VERSION);
        if( rc != JNI_OK) {
            std::cout << "ERROR : Errore nell'ottenere 'environment rc = " << rc;
            return -1;
        CFN(jvmti);
        err = jvmti->GetCapabilities(&capabilities);
        CJVMTIE(jvmti, err);
        CFN(&capabilities);
        capabilities.can_generate_garbage_collection_events = true;
        capabilities.can_tag_objects = true;
        CJVMTIE(jvmti, jvmti->AddCapabilities(&capabilities));
        CJVMTIE(jvmti, jvmti->CreateRawMonitor("agent lock", &lock));
        callbacks.VMInit = &vmInit;
        callbacks.GarbageCollectionStart = &startGCEvent;
        callbacks.GarbageCollectionFinish = &finishGCEvent;
        CJVMTIE(jvmti, jvmti->SetEventCallbacks(&callbacks, sizeof(callbacks)));
        jvmti->SetEventNotificationMode(JVMTI_ENABLE, JVMTI_EVENT_VM_INIT, NULL);
        jvmti->SetEventNotificationMode(JVMTI_ENABLE, JVMTI_EVENT_GARBAGE_COLLECTION_START, NULL);
        jvmti->SetEventNotificationMode(JVMTI_ENABLE, JVMTI_EVENT_GARBAGE_COLLECTION_FINISH, NULL);
        return 0;
    JNIEXPORT void JNICALL Agent_OnUnload(JavaVM *vm)
        std::cout<<"OnUnload\n";
    static void JNICALL worker(jvmtiEnv *jvmti, JNIEnv *jni, void *p) {
        std::cout << "worker";
        for (;;) {
            CJVMTIE(jvmti, jvmti->RawMonitorEnter(lock));
            while (gc_count == 0) {
                CJVMTIE(jvmti, jvmti->RawMonitorWait(lock, 0));
                jvmti->RawMonitorExit(lock);
            gc_count = 0;
            jvmti->RawMonitorExit(lock);
            /* Perform arbitrary JVMTI/JNI work here to do post-GC cleanup */
            if(!heapCheck) {
                heapCheck = true;
                jint        count;
                jclass    *classes;
                CJVMTIE(jvmti, jvmti->GetLoadedClasses(&count, &classes));
                ClassDetail *details = (ClassDetail*)calloc(sizeof(ClassDetail), count);
                for(int i = 0; i < count; i++) {
                    char *sig;
                    CJVMTIE(jvmti, jvmti->GetClassSignature(classes, &sig, NULL));
    CFN(sig);
    details[i] = ClassDetail(strdup(sig));
    CJVMTIE(jvmti, jvmti->SetTag(classes[i], (jlong)(ptrdiff_t)(void*) (&details[i])));
    heapSize = 0;
    CJVMTIE(jvmti, jvmti->IterateOverHeap(JVMTI_HEAP_OBJECT_EITHER, &heapObject, NULL));
    std::cout << "Heap Memory : " << heapSize<<'\n';
    heapCheck = false;
    static void vmInit(jvmtiEnv jvmti, JNIEnv jni, jthread thread) {
    jclass clazz = jni->FindClass("java/lang/Thread");
    jmethodID mid = jni->GetMethodID(clazz, "<init>", "()V");
    jthread _thread = jni->NewObject(clazz, mid);
    CJVMTIE(jvmti, jvmti->RunAgentThread(_thread, &worker, NULL, JVMTI_THREAD_MAX_PRIORITY));
    static void startGCEvent(jvmtiEnv *jvmti) {
    static void finishGCEvent(jvmtiEnv *jvmti) {
    std::cout << "****************************************************************** <<<<<<<<<<<< Finito gc\n";
    gc_count++;
    CJVMTIE(jvmti,jvmti->RawMonitorEnter(lock));
    CJVMTIE(jvmti,jvmti->RawMonitorNotify(lock));
    CJVMTIE(jvmti,jvmti->RawMonitorExit(lock));
    static jvmtiIterationControl JNICALL heapObject(jlong tag, jlong size, jlong* tag_ptr, void* userData) {
    if(tag != (jlong) 0) {
    std::cout << "Tag : " << tag<< '\n';
    ClassDetail detail = (ClassDetail) (void*) (ptrdiff_t) tag;
    char *sig = detail->getSignature();
    std::cout << "Class " << sig << " size : " << size<<'\n';
    heapSize += size;
    return JVMTI_ITERATION_CONTINUE;
    -- ClassDetail.cpp --class ClassDetail {
    private:
    char* signature;
    public:
    ClassDetail(char* signature){
    this->signature = signature;
    char* getSignature() { return this->signature;}
    --Makefile--########################################################################
    # Sample GNU Makefile for building JVMTI Demo waiters
    # Example uses:
    # gnumake JDK=<java_home> OSNAME=solaris [OPT=true] [LIBARCH=sparc]
    # gnumake JDK=<java_home> OSNAME=solaris [OPT=true] [LIBARCH=sparcv9]
    # gnumake JDK=<java_home> OSNAME=linux [OPT=true]
    # gnumake JDK=<java_home> OSNAME=win32 [OPT=true]
    # Source lists
    LIBNAME=analizer
    SOURCES=analizer.cpp
    MYSQLPP_LIB_PATH=/home/claudio/Desktop/Scaricati2/mysql++-3.0.6/mysqlpp_lib/lib/
    MYSQLPP_HEADER_PATH=/home/claudio/Desktop/Scaricati2/mysql++-3.0.6/mysqlpp_lib/include/mysql++
    MYSQL_PATH=/opt/mysql-5.0.51a-linux-i686-icc-glibc23
    # Solaris Sun C Compiler Version 5.5
    ifeq ($(OSNAME), solaris)
    # Tell gnumake which compilers to use
    CC=cc
    CXX=CC
    # Sun Solaris Compiler options needed
    COMMON_FLAGS=-mt -KPIC
    # Check LIBARCH for any special compiler options
    LIBARCH=$(shell uname -p)
    ifeq ($(LIBARCH), sparc)
    COMMON_FLAGS+=-xarch=v8 -xregs=no%appl
    endif
    ifeq ($(LIBARCH), sparcv9)
    COMMON_FLAGS+=-xarch=v9 -xregs=no%appl
    endif
    ifeq ($(OPT), true)
    CXXFLAGS=-xO2 $(COMMON_FLAGS)
    else
    CXXFLAGS=-g $(COMMON_FLAGS)
    endif
    # Object files needed to create library
    OBJECTS=$(SOURCES:%.cpp=%.o)
    # Library name and options needed to build it
    LIBRARY=lib$(LIBNAME).so
    LDFLAGS=-z defs -ztext
    # Libraries we are dependent on
    LIBRARIES= -lc
    # Building a shared library
    LINK_SHARED=$(LINK.cc) -G -o $@
    endif
    # Linux GNU C Compiler
    ifeq ($(OSNAME), linux)
    # GNU Compiler options needed to build it
    COMMON_FLAGS=-fno-strict-aliasing -fPIC -fno-omit-frame-pointer
    # Options that help find errors
    COMMON_FLAGS+= -W -Wall -Wno-unused -Wno-parentheses
    ifeq ($(OPT), true)
    CXXFLAGS=-O2 $(COMMON_FLAGS)
    else
    CXXFLAGS=-g $(COMMON_FLAGS)
    endif
    # Object files needed to create library
    OBJECTS=$(SOURCES:%.cpp=%.o)
    # Library name and options needed to build it
    LIBRARY=lib$(LIBNAME).so
    LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
    LDFLAGS += -lmysqlpp
    # Libraries we are dependent on
    LIBRARIES=
    # Building a shared library
    LINK_SHARED=$(LINK.cc) -shared -o $@
    endif
    # Windows Microsoft C/C++ Optimizing Compiler Version 12
    ifeq ($(OSNAME), win32)
    CC=cl
    # Compiler options needed to build it
    COMMON_FLAGS=-Gy -DWIN32
    # Options that help find errors
    COMMON_FLAGS+=-W0 -WX
    ifeq ($(OPT), true)
    CXXFLAGS= -Ox -Op -Zi $(COMMON_FLAGS)
    else
    CXXFLAGS= -Od -Zi $(COMMON_FLAGS)
    endif
    # Object files needed to create library
    OBJECTS=$(SOURCES:%.cpp=%.obj)
    # Library name and options needed to build it
    LIBRARY=$(LIBNAME).dll
    LDFLAGS=
    # Libraries we are dependent on
    LIBRARIES=
    # Building a shared library
    LINK_SHARED=link -dll -out:$@
    endif
    # Common -I options
    CXXFLAGS += -I.
    #CXXFLAGS += -I../agent_util
    CXXFLAGS += -I$(JDK)/include -I$(JDK)/include/$(OSNAME)
    CXXFLAGS += -I$(MYSQLPP_HEADER_PATH) -I$(MYSQL_PATH)/include -L$(MYSQLPP_LIB_PATH) -I$(MYSQLPP_LIB_PATH)
    # Default rule
    all: $(LIBRARY)
    # Build native library
    $(LIBRARY): $(OBJECTS)
         $(LINK_SHARED) $(OBJECTS) $(LIBRARIES)
    # Cleanup the built bits
    clean:
         rm -f $(LIBRARY) $(OBJECTS)
    # Simple tester
    test: all
         LD_LIBRARY_PATH=`pwd` $(JDK)/bin/java -agentlib:$(LIBNAME) -jar jvmti-test.jar
         #LD_LIBRARY_PATH=`pwd` $(JDK)/bin/java -agentlib:$(LIBNAME) -version
    # Compilation rule only needed on Windows
    ifeq ($(OSNAME), win32)
    %.obj: %.cpp
         $(COMPILE.cc) $<
    endif

    Did you make sure your library (call it x) starts is named libx.so (atleast, on linux, possibly libx.dll on windows, not sure)? It will not load otherwise, and you must specify -agentlib:x (rather than saying libx.so). Yes, it is "funny" how it gives the same uninformative error message for a wide variety of errors. It will also give you this same error message if there are still unresolved symbols upon loading your library (which would be my second guess).

  • Using mingw to make a .dll for use in labview ?

    I have seen some posts on this, but none of them take it all the way from C code to configuring the shared library node...
    My code is heavily based on this:
    http://forums.ni.com/ni/board/message?board.id=170&thread.id=171056
    Here are my files:
    //reedll.h
    #ifdef BUILD_DLL
    // the dll exports
    #define EXPORT __declspec(dllexport)
    #else
    // the exe imports
    #define EXPORT __declspec(dllimport)
    #endif
    // function to be imported/exported
    EXPORT void tstfunc(int A, int B, int C);
    and:
    //DLL_Test.c
    #include "reedll.h"
    EXPORT void tstfunc(int A, int B, int C)
      C = A + B;
    Its meant to be as bare bones as I can get it. No crazy pointers or anything.
    I compile as follows usin MinGW:
    g++ -c -DBUILD_DLL DLL_Test.c
    g++ -shared -o tst.dll -Wl,--out-implib,libtstdll.a DLL_Test.o
    And it appears to compile fine.
    When I go to import the .dll into the shared library node the "Function Name" field is garbled and says "Z7tstfunciii" instead of "tstfunc".  Needless to say the shared library function icon that results doesnt work

    You should tell the mingw compiler to not name mangle the symbols. Most likely you use a cpp file enxtension and then mingw as Visual C will invoke the cpp compiler instead of c which by default name mangles function names.
    If you want or need to use cpp, you can also try to declare your exported symbols like this:
    #ifdef __cplusplus
    extern "C" {
    #endif
    EXPORT void tstfunc(int A, int B, int C);
    /* all the other function prototypes you do not want to be mangled */
    #ifdef __cplusplus
    #endif
    Not sure if __cplusplus is defined by mingw, if not you have to find how it indicates that C++ mode has been invoked.
    Message Edited by rolfk on 03-24-2010 02:48 PM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Java Application using Swig Running Visual C++ 6.0

    i,
    I am using Swig with Java ,I'm trying launch a Java application using a Windows executable,
    I'm using VC++6.0, and followed the instruction in Swig Documentation chaper 20,Section 20.2.8.
    I Build my dll in Vc++ i get this error Anyone know this,please help me.
         SWIG
         Compiling resources...
         Compiling...
         StdAfx.cpp
         Compiling...
         example.c
         Generating Code...
         Compiling...
         example_wrap.cpp
    c:\program files\java\jdk1.5.0_01\include\jni.h(46) : error C2146: syntax error : missing ';' before identifier 'jsize'
    c:\program files\java\jdk1.5.0_01\include\jni.h(46) : fatal error C1004: unexpected end of file found
    Generating Code...
    Error executing cl.exe.
    example.dll - 2 error(s), 0 warning(s)
    Regards
    Devi

    check on line 46, there might be a missing ";"
    c:\program files\java\jdk1.5.0_01\include\jni.h(46) : error C2146: syntax error : missing ';' before identifier 'jsize'

  • Test Stand Execution Abort

    I have a button that executes TS_ExecutionAbort. When I press that button in debug, it seems to work find but when I exit the program, I get the following error:
    Global type list not empty!
    Error Code: -17001
    Where raised:
    function: TypeUsageList:eleteGlobalTypeList
    file: c:\TestStand_Autobuild\Build30\Dev\Src\tstobj2\TypeList.cpp
    line: 195
    compilation time: 12:31:43 Jul 31 2003
    Where caught: Debugging When Exception Constructed
    WARNING!!! 'destructor exception' Line 9962 in function in file c:\TestStand_Autobuild\Build30\Dev\Src\tstobj2\TestObj.cpp
    Compilation Date: Jul 31 2003 Compilation Time: 12:31:41
    Not all type usage lists have been destroyed!
    Error Code: -17001
    Where raised:
    function: TypeUsageList:eleteAllTypeUsageLists
    file: c:\TestStand_Autobuild\Build30\Dev\Src\tstobj2\TypeList.cpp
    line: 853
    compilation time: 12:31:43 Jul 31 2003
    Where caught: Debugging When Exception Constructed
    WARNING!!! 'destructor exception' Line 9963 in function in file c:\TestStand_Autobuild\Build30\Dev\Src\tstobj2\TestObj.cpp
    Compilation Date: Jul 31 2003 Compilation Time: 12:31:41
    When I press the button in release, I get popups errors while waiting for the step to finish. The errors are as follow:
    ActiveX Error
    sCode = 0xffffbc6c
    Description: Value invalid or out of range
    And
    ActiveX Error
    Unknown Error
    My gui is compiled in CVI 7.0 and I am using teststand 3.0.
    Here is my button code otherwise the cvi gui is just updating status.
    int CVICALLBACK cmdAbortCallback (int panel, int control, int event, void *callbackData, int eventData1, int eventData2)
    int error = 0;
    ERRORINFO errorInfo;
    ErrMsg errMsg;
    switch (event)
    case EVENT_COMMIT:
    tsErrChkMsgPopup(TS_ExecutionBreak (m_oExecution, &errorInfo));
    // Prompt the user to make sure he wants to abort
    if (ConfirmPopup ("Abort Confirmation", "Are you sure you want to abort?"))
    m_bUserAbort = TRUE;
    m_eState = ABORT_PENDING;
    tsErrChkMsgPopup(TS_ExecutionAbort (m_oExecution, &errorInfo));
    UpdateGUI();
    else
    tsErrChkMsgPopup(TS_ExecutionResume (m_oExecution, &errorInfo));
    break;
    return(0);
    Error:
    return(-1);
    Do any of you know why I am getting these error or how to find the problem?

    To gsflat -
    You appear to have created a global variable called "m_oExecution" which I assume that you have created using
    CA_DuplicateObjHandle() within some callback. If you are just copying a callback parameter to your global variable, the handle may have already been released.
    If you fail to call CA_DiscardObjHandle() on object handles that you duplicate before shutdown or before you reassign a new value to an already assigned variable, TestStand will not be able to release the object on shutdown and you will get these debug warnings. Failing to properly release any type of object handle can result in these warnings.
    As to why you release build is erroring, you will have to determine which functions in the project that uses the tsErrChkMsgPopup
    macro are failing and then figure out why.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

  • Porting from win to mac / expected constructor destructor or type conversion before

    I am porting a plugin that works well with CS3/4/5 on Windows to CS3 on Mac.
    I am able to compile the SDK samples with XCode. My plugin also compiles with XCode if i remove one cpp file from the project. If i try to compile it with the file (actioncomponent.cpp) compiling fails with the error:
    expected constructor destructor or type conversion before .....
    I tried to trace the error by commenting out ceveral includes and functions in that file. The error then point's to another place in the file itself or in one included in it, the error is the same.
    I generated the project with dollyx, added my .fr, compiled it, added the .fr.rsrc, added source files and built it.
    Since this is my first Indesign plugin for Mac I am sure that i miss something general.
    Any suggestions?

    I checked my code against every SDK sample where context/session is used and cannot find any difference. I also took a sample project, included my sources what resulted in the same error messages.
    One of them:
    Checking Dependencies
    CompileC build/myPluginName.build/Default/Release.build/Objects-normal/ppc/myPluginNameActionCompo nent.o /Volumes/daten/adobe_indesign_cs3_products_sdk_504mac/build/mac/prj/../../../source/sdksa mples/myPluginName/myPluginNameActionComponent.cpp normal ppc c++ com.apple.compilers.gcc.4_0
        cd /Volumes/daten/adobe_indesign_cs3_products_sdk_504mac/build/mac/prj
        /Developer/usr/bin/gcc-4.0 -x c++ -arch ppc -pipe -Wno-trigraphs -fno-exceptions -fpascal-strings -fasm-blocks -O3 -Werror -Wreturn-type -Wunused-value -DMACINTOSH -DBIB_NO_THROW -fmessage-length=0 -mtune=G5 -fvisibility=hidden -fvisibility-inlines-hidden -fno-threadsafe-statics -Wno-deprecated-declarations -mmacosx-version-min=10.4 -gdwarf-2 -I/Volumes/daten/adobe_indesign_cs3_products_sdk_504mac/build/mac/prj/build/myPluginName. build/Default/Release.build/myPluginName.hmap -Wno-deprecated -F/Volumes/daten/adobe_indesign_cs3_products_sdk_504mac/build/mac/prj/../release/sdk -F../../../build/mac/release/packagefolder/contents/macos -F../../../build/mac/release/packagefolder/contents/Frameworks -I/Volumes/daten/adobe_indesign_cs3_products_sdk_504mac/build/mac/prj/../release/sdk/incl ude -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon -I../../../external/adobesourcelibrary/third_party/boost_tp/boost -I../../../external/afl/includes -I../../../source/precomp/common -I../../../source/precomp/msvc -I../../../source/public/includes -I../../../source/public/interfaces/architecture -I../../../source/private/includes/architecture -I../../../source/private/interfaces/architecture -I../../../source/public/includes/utils -I../../../source/public/interfaces/utils -I../../../source/precomp/msvc -I../../../source/public/interfaces/xmedia -I../../../source/public/interfaces/ui -I../../../source/public/interfaces/tables -I../../../source/public/interfaces/text -I../../../source/public/interfaces/graphics -I../../../source/public/components/widgetbin/includes -I../../../source/public/interfaces/workgroup -I../../../source/public/interfaces/interactive -I../../../source/public/interfaces/interactive/ui -I../../../source/public/interfaces/colormgmt -I../../../source/public/interfaces/utils -I../../../source/public/interfaces/incopy -I../../../source/public/interfaces/layout -I../../../source/public/interfaces/architecture -I../../../source/public/interfaces/cjk -I../../../source/precomp/common -I../../../source/public/includes -I../../../source/public/components/publiclib/plugins -I../../../source/public/components/publiclib/files -I../../../source/public/components/publiclib/objectmodel -I../../../external/boost -I../../../source/sdksamples/common -I../../../external/afl/includes -I../../../source/sdksamples/myPluginName -I/Volumes/daten/adobe_indesign_cs3_products_sdk_504mac/build/mac/prj/build/myPluginName. build/Default/Release.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -include build/SharedPrecompiledHeaders/Release/PluginPrefix-hkopdumatdlxfjbkpugezhwgmujv/PluginPr efix.pch -c /Volumes/daten/adobe_indesign_cs3_products_sdk_504mac/build/mac/prj/../../../source/sdksa mples/myPluginName/myPluginNameActionComponent.cpp -o /Volumes/daten/adobe_indesign_cs3_products_sdk_504mac/build/mac/prj/build/myPluginName.bu ild/Default/Release.build/Objects-normal/ppc/myPluginNameActionComponent.o
    ../../../source/public/includes/KeyValuePair.h:36: error: expected constructor, destructor, or type conversion before 'template'
    ../../../source/public/includes/KeyValuePair.h:82: error: expected ',' or '...' before '<' token
    ../../../source/public/includes/KeyValuePair.h:82: error: ISO C++ forbids declaration of 'KeyValuePair' with no type
    ../../../source/public/includes/KeyValuePair.h:82: error: 'bool operator==(int)' must have an argument of class or enumerated type
    ../../../source/public/includes/KeyValuePair.h:82: error: 'bool operator==(int)' must take exactly two arguments
    ../../../source/public/includes/KeyValuePair.h: In function 'bool operator==(int)':
    ../../../source/public/includes/KeyValuePair.h:84: error: '__x' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h:84: error: '__y' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h: At global scope:
    ../../../source/public/includes/KeyValuePair.h:97: error: expected ',' or '...' before '<' token
    ../../../source/public/includes/KeyValuePair.h:97: error: ISO C++ forbids declaration of 'KeyValuePair' with no type
    ../../../source/public/includes/KeyValuePair.h:97: error: 'bool operator==(int)' must have an argument of class or enumerated type
    ../../../source/public/includes/KeyValuePair.h:97: error: 'bool operator==(int)' must take exactly two arguments
    ../../../source/public/includes/KeyValuePair.h:97: error: redefinition of 'template<class _T1, class _T2> bool operator==(int)'
    ../../../source/public/includes/KeyValuePair.h:82: error: 'template<class _T1, class _T2> bool operator==(int)' previously declared here
    ../../../source/public/includes/KeyValuePair.h: In function 'bool operator==(int)':
    ../../../source/public/includes/KeyValuePair.h:99: error: '__x' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h:99: error: '__y' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h: At global scope:
    ../../../source/public/includes/KeyValuePair.h:112: error: expected ',' or '...' before '<' token
    ../../../source/public/includes/KeyValuePair.h:112: error: ISO C++ forbids declaration of 'KeyValuePair' with no type
    ../../../source/public/includes/KeyValuePair.h: In function 'bool operator==(const _T1&, int)':
    ../../../source/public/includes/KeyValuePair.h:114: error: '__x' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h: At global scope:
    ../../../source/public/includes/KeyValuePair.h:124: error: expected ',' or '...' before '<' token
    ../../../source/public/includes/KeyValuePair.h:124: error: ISO C++ forbids declaration of 'KeyValuePair' with no type
    ../../../source/public/includes/KeyValuePair.h:124: error: 'bool operator<(int)' must have an argument of class or enumerated type
    ../../../source/public/includes/KeyValuePair.h:124: error: 'bool operator<(int)' must take exactly two arguments
    ../../../source/public/includes/KeyValuePair.h: In function 'bool operator<(int)':
    ../../../source/public/includes/KeyValuePair.h:126: error: '__x' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h:126: error: '__y' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h: At global scope:
    ../../../source/public/includes/KeyValuePair.h:135: error: expected ',' or '...' before '<' token
    ../../../source/public/includes/KeyValuePair.h:135: error: ISO C++ forbids declaration of 'KeyValuePair' with no type
    ../../../source/public/includes/KeyValuePair.h:135: error: 'bool operator<(int)' must have an argument of class or enumerated type
    ../../../source/public/includes/KeyValuePair.h:135: error: 'bool operator<(int)' must take exactly two arguments
    ../../../source/public/includes/KeyValuePair.h:135: error: redefinition of 'template<class _T1, class _T2> bool operator<(int)'
    ../../../source/public/includes/KeyValuePair.h:124: error: 'template<class _T1, class _T2> bool operator<(int)' previously declared here
    ../../../source/public/includes/KeyValuePair.h: In function 'bool operator<(int)':
    ../../../source/public/includes/KeyValuePair.h:137: error: '__x' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h:137: error: '__y' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h: At global scope:
    ../../../source/public/includes/KeyValuePair.h:146: error: expected ',' or '...' before '<' token
    ../../../source/public/includes/KeyValuePair.h:146: error: ISO C++ forbids declaration of 'KeyValuePair' with no type
    ../../../source/public/includes/KeyValuePair.h: In function 'bool operator<(const _T1&, int)':
    ../../../source/public/includes/KeyValuePair.h:148: error: '__x' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h: At global scope:
    ../../../source/public/includes/KeyValuePair.h:157: error: expected ',' or '...' before '<' token
    ../../../source/public/includes/KeyValuePair.h:157: error: ISO C++ forbids declaration of 'KeyValuePair' with no type
    ../../../source/public/includes/KeyValuePair.h:157: error: 'bool operator!=(int)' must have an argument of class or enumerated type
    ../../../source/public/includes/KeyValuePair.h:157: error: 'bool operator!=(int)' must take exactly two arguments
    ../../../source/public/includes/KeyValuePair.h: In function 'bool operator!=(int)':
    ../../../source/public/includes/KeyValuePair.h:158: error: '__x' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h:158: error: '__y' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h: At global scope:
    ../../../source/public/includes/KeyValuePair.h:167: error: expected ',' or '...' before '<' token
    ../../../source/public/includes/KeyValuePair.h:167: error: ISO C++ forbids declaration of 'KeyValuePair' with no type
    ../../../source/public/includes/KeyValuePair.h:167: error: 'bool operator>(int)' must have an argument of class or enumerated type
    ../../../source/public/includes/KeyValuePair.h:167: error: 'bool operator>(int)' must take exactly two arguments
    ../../../source/public/includes/KeyValuePair.h: In function 'bool operator>(int)':
    ../../../source/public/includes/KeyValuePair.h:168: error: '__y' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h:168: error: '__x' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h: At global scope:
    ../../../source/public/includes/KeyValuePair.h:177: error: expected ',' or '...' before '<' token
    ../../../source/public/includes/KeyValuePair.h:177: error: ISO C++ forbids declaration of 'KeyValuePair' with no type
    ../../../source/public/includes/KeyValuePair.h:177: error: 'bool operator<=(int)' must have an argument of class or enumerated type
    ../../../source/public/includes/KeyValuePair.h:177: error: 'bool operator<=(int)' must take exactly two arguments
    ../../../source/public/includes/KeyValuePair.h: In function 'bool operator<=(int)':
    ../../../source/public/includes/KeyValuePair.h:178: error: '__y' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h:178: error: '__x' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h: At global scope:
    ../../../source/public/includes/KeyValuePair.h:187: error: expected ',' or '...' before '<' token
    ../../../source/public/includes/KeyValuePair.h:187: error: ISO C++ forbids declaration of 'KeyValuePair' with no type
    ../../../source/public/includes/KeyValuePair.h:187: error: 'bool operator>=(int)' must have an argument of class or enumerated type
    ../../../source/public/includes/KeyValuePair.h:187: error: 'bool operator>=(int)' must take exactly two arguments
    ../../../source/public/includes/KeyValuePair.h: In function 'bool operator>=(int)':
    ../../../source/public/includes/KeyValuePair.h:188: error: '__x' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h:188: error: '__y' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h: At global scope:
    ../../../source/public/includes/KeyValuePair.h:197: error: expected initializer before '<' token
    ../../../source/public/includes/KeyValuePair.h:225: error: expected ',' or '...' before '<' token
    ../../../source/public/includes/KeyValuePair.h:225: error: ISO C++ forbids declaration of 'KeyValuePair' with no type
    ../../../source/public/includes/KeyValuePair.h: In member function 'bool KeyMatchPredicate<Key, Value>::operator()(int)':
    ../../../source/public/includes/KeyValuePair.h:225: error: 'x' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h: At global scope:
    ../../../source/public/includes/KeyValuePair.h:252: error: expected ',' or '...' before '<' token
    ../../../source/public/includes/KeyValuePair.h:252: error: ISO C++ forbids declaration of 'KeyValuePair' with no type
    ../../../source/public/includes/KeyValuePair.h: In member function 'bool ValueMatchPredicate<Key, Value>::operator()(int)':
    ../../../source/public/includes/KeyValuePair.h:252: error: 'x' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h: In function 'void InsertKeyValue(Container&, const Key&, const Value&)':
    ../../../source/public/includes/KeyValuePair.h:282: error: 'KeyValuePair' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h:282: error: expected primary-expression before ',' token
    ../../../source/public/includes/KeyValuePair.h:282: error: expected primary-expression before '>' token
    ../../../source/public/includes/KeyValuePair.h: In function 'void InsertOrReplaceKeyValue(Container&, const Key&, const Value&)':
    ../../../source/public/includes/KeyValuePair.h:298: error: 'KeyValuePair' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h:298: error: expected primary-expression before ',' token
    ../../../source/public/includes/KeyValuePair.h:298: error: expected primary-expression before '>' token
    ../../../source/public/includes/KeyValuePair.h: In function 'int32 InsertKeyValueInSorted(Container&, const Key&, const Value&)':
    ../../../source/public/includes/KeyValuePair.h:326: error: expected initializer before '<' token
    ../../../source/public/includes/KeyValuePair.h:328: error: 'el' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h: In function 'int32 InsertOrReplaceKeyValueInSorted(Container&, const Key&, const Value&)':
    ../../../source/public/includes/KeyValuePair.h:345: error: 'KeyValuePair' was not declared in this scope
    ../../../source/public/includes/KeyValuePair.h:345: error: expected primary-expression before ',' token
    ../../../source/public/includes/KeyValuePair.h:345: error: expected primary-expression before '>' token
    ../../../source/public/interfaces/architecture/IActiveContext.h: At global scope:
    ../../../source/public/interfaces/architecture/IActiveContext.h:56: error: ISO C++ forbids declaration of 'KeyValuePair' with no type
    ../../../source/public/interfaces/architecture/IActiveContext.h:56: error: expected ';' before '<' token
    ../../../source/public/interfaces/architecture/IActiveContext.h:57: error: 'ContextInfo' was not declared in this scope
    ../../../source/public/interfaces/architecture/IActiveContext.h:57: error: template argument 1 is invalid
    ../../../source/public/interfaces/architecture/IActiveContext.h:57: error: template argument 2 is invalid
    ../../../source/public/interfaces/architecture/ISelectionMessages.h:59: error: 'KeyValuePair' was not declared in this scope
    ../../../source/public/interfaces/architecture/ISelectionMessages.h:59: error: template argument 1 is invalid
    ../../../source/public/interfaces/architecture/ISelectionMessages.h:59: error: expected unqualified-id before '>' token
    ../../../source/public/interfaces/architecture/ISelectionMessages.h:172: error: ISO C++ forbids declaration of 'SuiteBroadcastData' with no type
    ../../../source/public/interfaces/architecture/ISelectionMessages.h:172: error: 'SuiteBroadcastData' declared as a 'virtual' field
    ../../../source/public/interfaces/architecture/ISelectionMessages.h:172: error: expected ';' before '*' token
    ../../../source/public/interfaces/architecture/ISelectionMessages.h:366: error: 'KeyValuePair' was not declared in this scope
    ../../../source/public/interfaces/architecture/ISelectionMessages.h:366: error: template argument 1 is invalid
    ../../../source/public/interfaces/architecture/ISelectionMessages.h:366: error: expected unqualified-id before '>' token
    ../../../source/public/interfaces/architecture/ISelectionManager.h:166: error: 'SuiteBroadcastData' has not been declared
    ../../../source/public/interfaces/architecture/ISelectionManager.h:212: error: 'SuiteBroadcastData' has not been declared
    /Volumes/daten/adobe_indesign_cs3_products_sdk_504mac/build/mac/prj/../../../source/sdksam ples/myPluginName/myPluginNameActionComponent.cpp:43: error: definition of implicitly-declared 'virtual myPluginNameActionComponent::~myPluginNameActionComponent()'
    CompileC build/myPluginName.build/Default/Release.build/Objects-normal/i386/myPluginNameDialogObse rver.o /Volumes/daten/adobe_indesign_cs3_products_sdk_504mac/build/mac/prj/../../../source/sdksa mples/myPluginName/myPluginNameDialogObserver.cpp normal i386 c++ com.apple.compilers.gcc.4_0
        cd /Volumes/daten/adobe_indesign_cs3_products_sdk_504mac/build/mac/prj
        /Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -pipe -Wno-trigraphs -fno-exceptions -fpascal-strings -fasm-blocks -O3 -Werror -Wreturn-type -Wunused-value -DMACINTOSH -DBIB_NO_THROW -fmessage-length=0 -fvisibility=hidden -fvisibility-inlines-hidden -fno-threadsafe-statics -Wno-deprecated-declarations -mmacosx-version-min=10.4 -gdwarf-2 -I/Volumes/daten/adobe_indesign_cs3_products_sdk_504mac/build/mac/prj/build/myPluginName. build/Default/Release.build/myPluginName.hmap -DMACTEL_SKIP -Wno-deprecated -F/Volumes/daten/adobe_indesign_cs3_products_sdk_504mac/build/mac/prj/../release/sdk -F../../../build/mac/release/packagefolder/contents/macos -F../../../build/mac/release/packagefolder/contents/Frameworks -I/Volumes/daten/adobe_indesign_cs3_products_sdk_504mac/build/mac/prj/../release/sdk/incl ude -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon -I../../../external/adobesourcelibrary/third_party/boost_tp/boost -I../../../external/afl/includes -I../../../source/precomp/common -I../../../source/precomp/msvc -I../../../source/public/includes -I../../../source/public/interfaces/architecture -I../../../source/private/includes/architecture -I../../../source/private/interfaces/architecture -I../../../source/public/includes/utils -I../../../source/public/interfaces/utils -I../../../source/precomp/msvc -I../../../source/public/interfaces/xmedia -I../../../source/public/interfaces/ui -I../../../source/public/interfaces/tables -I../../../source/public/interfaces/text -I../../../source/public/interfaces/graphics -I../../../source/public/components/widgetbin/includes -I../../../source/public/interfaces/workgroup -I../../../source/public/interfaces/interactive -I../../../source/public/interfaces/interactive/ui -I../../../source/public/interfaces/colormgmt -I../../../source/public/interfaces/utils -I../../../source/public/interfaces/incopy -I../../../source/public/interfaces/layout -I../../../source/public/interfaces/architecture -I../../../source/public/interfaces/cjk -I../../../source/precomp/common -I../../../source/public/includes -I../../../source/public/components/publiclib/plugins -I../../../source/public/components/publiclib/files -I../../../source/public/components/publiclib/objectmodel -I../../../external/boost -I../../../source/sdksamples/common -I../../../external/afl/includes -I../../../source/sdksamples/myPluginName -I/Volumes/daten/adobe_indesign_cs3_products_sdk_504mac/build/mac/prj/build/myPluginName. build/Default/Release.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -include build/SharedPrecompiledHeaders/Release/PluginPrefix-ajenzpjyosjkeodzeqpqmcfnvjiw/PluginPr efix.pch -c /Volumes/daten/adobe_indesign_cs3_products_sdk_504mac/build/mac/prj/../../../source/sdksa mples/myPluginName/myPluginNameDialogObserver.cpp -o /Volumes/daten/adobe_indesign_cs3_products_sdk_504mac/build/mac/prj/build/myPluginName.bu ild/Default/Release.build/Objects-normal/i386/myPluginNameDialogObserver.o
    What am I doing wrong?

  • Qt Won't Build

    That's right, Qt refuses to build straight out of ABS.
    Here's the part of the output that matters (the part where it fails ).
    make[4]: Entering directory `/home/georgev/Code/qtpatch/qt/src/qt-everywhere-opensource-src-4.8.3/tools/assistant/tools/assistant'
    compiling helpviewer_qwv.cpp
    compiling .moc/release-shared/moc_bookmarkmanager.cpp
    compiling .moc/release-shared/moc_bookmarkfiltermodel.cpp
    compiling .moc/release-shared/moc_bookmarkmanagerwidget.cpp
    compiling .moc/release-shared/moc_bookmarkmodel.cpp
    compiling .moc/release-shared/moc_centralwidget.cpp
    compiling .moc/release-shared/moc_contentwindow.cpp
    compiling .moc/release-shared/moc_findwidget.cpp
    compiling .moc/release-shared/moc_filternamedialog.cpp
    compiling .moc/release-shared/moc_helpenginewrapper.cpp
    compiling .moc/release-shared/moc_helpviewer.cpp
    compiling .moc/release-shared/moc_helpviewer_p.cpp
    compiling .moc/release-shared/moc_indexwindow.cpp
    compiling .moc/release-shared/moc_installdialog.cpp
    compiling .moc/release-shared/moc_mainwindow.cpp
    compiling .moc/release-shared/moc_preferencesdialog.cpp
    helpviewer_qwv.cpp:160:1: error: expected class-name before '{' token
    helpviewer_qwv.cpp:165:13: error: 'QWebPage' does not name a type
    helpviewer_qwv.cpp:166:32: error: 'WebAction' has not been declared
    helpviewer_qwv.cpp:168:42: error: 'QWebFrame' has not been declared
    helpviewer_qwv.cpp:169:41: error: 'NavigationType' has not been declared
    helpviewer_qwv.cpp: In constructor 'HelpPage::HelpPage(QObject*)':
    helpviewer_qwv.cpp:181:7: error: class 'HelpPage' does not have any field named 'QWebPage'
    helpviewer_qwv.cpp: At global scope:
    helpviewer_qwv.cpp:189:1: error: 'QWebPage' does not name a type
    helpviewer_qwv.cpp:199:30: error: variable or field 'triggerAction' declared void
    helpviewer_qwv.cpp:199:30: error: 'WebAction' was not declared in this scope
    helpviewer_qwv.cpp:199:48: error: expected primary-expression before 'bool'
    make[4]: *** [.obj/release-shared/helpviewer_qwv.o] Error 1
    make[4]: *** Waiting for unfinished jobs....
    make[4]: Leaving directory `/home/georgev/Code/qtpatch/qt/src/qt-everywhere-opensource-src-4.8.3/tools/assistant/tools/assistant'
    make[3]: *** [sub-assistant-make_default-ordered] Error 2
    make[3]: Leaving directory `/home/georgev/Code/qtpatch/qt/src/qt-everywhere-opensource-src-4.8.3/tools/assistant/tools'
    make[2]: *** [sub-tools-make_default-ordered] Error 2
    make[2]: Leaving directory `/home/georgev/Code/qtpatch/qt/src/qt-everywhere-opensource-src-4.8.3/tools/assistant'
    make[1]: *** [sub-assistant-make_default-ordered] Error 2
    make[1]: Leaving directory `/home/georgev/Code/qtpatch/qt/src/qt-everywhere-opensource-src-4.8.3/tools'
    make: *** [sub-tools-make_default-ordered] Error 2
    This... looks weird.  Is this worthy of a bug report?
    EDIT:  I suppose I should add that I'm on a x86_64 machine.  The Qt PKGBUILD version is 4.8.3-6
    Last edited by gh403 (2012-11-28 04:02:26)

    A clean chroot allows you to control what packages header files are available at the time of compilation (any provided by 'base' and 'base-devel' groups, 'sudo', and any packages listed in the depends and make-depends arrays in the PKGBUILD.) The clean chroot method also ensures that you're compiling against the latest libraries available in the repos, and not, e.g. something you installed with make install, then forgot about.
    Does building in a clean chroot only apply to packages in the official repositories?
    Nope, it works for any PKGBUILD.
    Is it something that makepkg can be setup to do automatically?
    No, but there's wrapper scripts in the devtools package, as mentioned in that wiki link you posted.
    Note that each chroot uses ~700MB each before dependencies are considered, and if you use the devtools scripts, each chroot will be copied for each user that runs a build script. If you have disk space to burn, you could always create a separate partition for the chroots to live on (I have mine in a btrfs subvolume), and if you have a decent amount of RAM (I was doing it with 4, now I have 16), you could even make the user chroot directories tmpfs'.

  • Move step,then i got this "Error Code: -17001"

    I create a sequencefile using API and show it in ActiveX "sequenceview",then i insert a step using "newstep" and made it undoable using undoitem,and move it by  draging, when i got the error as follows,
    Global type list not empty!
    Error Code: -17001
    Where raised: 
      function:  TypeUsageList:eleteGlobalTypeList
      file:  .\tstobj2\TypeList.cpp
      line:  224
      compilation time:  17:25:02  Apr 26 2011
    Where caught:  Debugging When Exception Constructed
    First-chance exception in javaw.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
    WARNING!!! 'exception freeing handle in FGModule destructor' Line 6196 in function  in file .\FlexG.cpp
    Compilation Date: Nov  2 2010 Compilation Time: 20:08:36
    WARNING!!! 'exception freeing handle in FGModule destructor' Line 6196 in function  in file .\FlexG.cpp
    Compilation Date: Nov  2 2010 Compilation Time: 20:08:36
    First-chance exception in javaw.exe (FLEXGADAPTER.DLL): 0xC0000005: Access Violation.
    First-chance exception in javaw.exe (FLEXGADAPTER.DLL): 0xC0000005: Access Violation.
    WARNING!!! 'Unexpected exception occurred in destructor.' Line 1697 in function TestObject::~TestObject in file .\tstobj2\TestObj.cpp
    Compilation Date: Apr 26 2011 Compilation Time: 17:25:03
    WARNING!!! 'Unexpected exception occurred in destructor.' Line 11657 in function TestObject::MemoryControl::ClearMemory in file .\tstobj2\TestObj.cpp
    First-chance exception in javaw.exe (TSENGINE.DLL): 0xC0000005: Access Violation.
    Compilation Date: Apr 26 2011 Compilation Time: 17:25:03
    Not all type usage lists have been destroyed!
    Error Code: -17001
    Where raised: 
      function:  TypeUsageList:eleteAllTypeUsageLists
      file:  .\tstobj2\TypeList.cpp
      line:  932
      compilation time:  17:25:02  Apr 26 2011
    Where caught:  Debugging When Exception Constructed
    WARNING!!! 'Unexpected exception occurred in destructor.' Line 11658 in function TestObject::MemoryControl::ClearMemory in file .\tstobj2\TestObj.cpp
    Compilation Date: Apr 26 2011 Compilation Time: 17:25:03
    First-chance exception in javaw.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
    The thread 0xDC8 has exited with code 3 (0x3).
    The program 'C:\Program Files\Java\jre6\bin\javaw.exe' has exited with code 3 (0x3).
    Attachments:
    move_step_error.txt ‏15 KB

    Hi fandan_110,
    The 'error code -17001' usually corresponds to TestStand not being able to launch LabWindows/CVI. This typically is thrown up when LabWindows/CVI is not installed on the machine. Can you let me know what version of TestStand you are running and if you have LabWindows/CVI what version you have installed?
    Could you try the following possible solutions:
    1.  One common solution to this program is running both LabVIEW and LabWindows/CVI as administrator before trying to edit the code. More information of this is provided in this KnowledgeBase Article.
    2. Another useful Knowledge Base article provides  2 further possibilities as to why this error could be appearing.
    3. Could you run a repair on the LabWindows/CVI installation. Do this through 'Programs and Features' in the control panel.
    Let me know how you get on with this,
    Regards,
    Aaron. E
    Applications Engineer Team Lead
    National Instruments
    ni.com/support

  • Ipe Installation

    Hi, i try to install ipe (https://aur.archlinux.org/packages/ipe/?setlang=de) from AUR by downloading and unpacking ipe.tar.gz and running makepkg which results in the following error:
    Compiling ipelatex.cpp...
    g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wall -g -O2 -fpic -D_FORTIFY_SOURCE=2 -DIPEUI_QT -I../include   -DIPEFONTMAP=\"/usr/share/ipe/7.1.4/fontmap.xml\"     -c -o ../../build/obj/ipelib/ipelatex.o ipelatex.cpp
    Compiling ipedoc.cpp...
    g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wall -g -O2 -fpic -D_FORTIFY_SOURCE=2 -DIPEUI_QT -I../include   -DIPEFONTMAP=\"/usr/share/ipe/7.1.4/fontmap.xml\"     -c -o ../../build/obj/ipelib/ipedoc.o ipedoc.cpp
    mkdir -p ../../build/lib
    g++ -Wl,-O1,--sort-common,--as-needed,-z,relro -shared  -Wl,-soname,libipe.so.7.1.4 -o ../../build/lib/libipe.so.7.1.4 ../../build/obj/ipelib/ipebase.o ../../build/obj/ipelib/ipeplatform.o ../../build/obj/ipelib/ipegeo.o ../../build/obj/ipelib/ipexml.o ../../build/obj/ipelib/ipeattributes.o ../../build/obj/ipelib/ipebitmap.o ../../build/obj/ipelib/ipedct.o ../../build/obj/ipelib/ipeshape.o ../../build/obj/ipelib/ipegroup.o ../../build/obj/ipelib/ipeimage.o ../../build/obj/ipelib/ipetext.o ../../build/obj/ipelib/ipepath.o ../../build/obj/ipelib/ipereference.o ../../build/obj/ipelib/ipeobject.o ../../build/obj/ipelib/ipefactory.o ../../build/obj/ipelib/ipestdstyles.o ../../build/obj/ipelib/ipeiml.o ../../build/obj/ipelib/ipepage.o ../../build/obj/ipelib/ipepainter.o ../../build/obj/ipelib/ipepdfparser.o ../../build/obj/ipelib/ipepdfwriter.o ../../build/obj/ipelib/ipepswriter.o ../../build/obj/ipelib/ipestyle.o ../../build/obj/ipelib/ipesnap.o ../../build/obj/ipelib/ipeutils.o ../../build/obj/ipelib/ipelatex.o ../../build/obj/ipelib/ipedoc.o -lz
    ln -sf libipe.so.7.1.4 ../../build/lib/libipe.so
    make[1]: Leaving directory '/home/dfeist/Downloads/ipe/src/ipe-7.1.4/src/ipelib'
    make --directory=ipelets/lua all
    make[1]: Entering directory '/home/dfeist/Downloads/ipe/src/ipe-7.1.4/src/ipelets/lua'
    make[1]: Nothing to be done for 'all'.
    make[1]: Leaving directory '/home/dfeist/Downloads/ipe/src/ipe-7.1.4/src/ipelets/lua'
    make --directory=ipelets/image all
    make[1]: Entering directory '/home/dfeist/Downloads/ipe/src/ipe-7.1.4/src/ipelets/image'
    make[1]: pkg-config: Command not found
    mkdir -p ../../../build/obj/ipelets; echo "" > ../../../build/obj/ipelets/image.depend; for f in image.cpp ; do g++ -MM -MT ../../../build/obj/ipelets/${f%%.cpp}.o -D_FORTIFY_SOURCE=2 -DIPEUI_QT -I../../include  $f >> ../../../build/obj/ipelets/image.depend; done
    make[1]: pkg-config: Command not found
    make[1]: pkg-config: Command not found
    make[1]: pkg-config: Command not found
    Compiling image.cpp...
    g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wall -g -O2 -fpic -D_FORTIFY_SOURCE=2 -DIPEUI_QT -I../../include   -c -o ../../../build/obj/ipelets/image.o image.cpp
    image.cpp:33:23: fatal error: QFileDialog: No such file or directory
    #include <QFileDialog>
                           ^
    compilation terminated.
    ../../common.mak:200: recipe for target '../../../build/obj/ipelets/image.o' failed
    make[1]: *** [../../../build/obj/ipelets/image.o] Error 1
    make[1]: Leaving directory '/home/dfeist/Downloads/ipe/src/ipe-7.1.4/src/ipelets/image'
    Makefile:42: recipe for target 'ipelets/image' failed
    make: *** [ipelets/image] Error 2
    ==> ERROR: A failure occurred in build().
        Aborting...
    pkgfile QFileDialog shows me extra/qt4 and extra/qt5-base which are both installed. Does anyone have an idea what additional package i need here or how i can solve that issue?
    Best regards
    Last edited by bobb (2013-12-09 16:45:38)

    Welcome to the forums.
    Install base-devel to get pkg-config and other packages that you'll need in the future.
    Please use code tags when pasting code or long output. It makes things so much more readable.

  • Best way to messure execution time???

    Hi everybody,
    I am trying to messure the time that takes an algorithm to be executed. I am using System.currentTime() at the begin and the end of the algorithm to calculate the time.
    Is there another way to calculate execution time?
    Thanks in advance,
    JB

    If you are on Windows (NT4 anyway) and want something more accurate, you can use this lil' bit of JNI:
    // NanoTimer.java
    package com.baesystems.tc.pete_kirkham.benchmark;
    * Gets ~ nanosecond accuracy time
    * @author Pete Kirkham
    * @version 1.0
    public final class NanoTimer {
       * Get a measure of the current elapsed time.
       * @return the time elapsed since an arbitary point in seconds.
      public static native double currentTime ();
      static {
        System.loadLibrary("nano_timer");
    // nanotimer.cpp - compile to nano_timer.dll
    #include <windows.h>
    #include <winbase.h>
    #include "com_baesystems_tc_pete_0005fkirkham_NanoTimer.h" // generated via javah
    * Class:     com_baesystems_tc_saa_services_NanoTimer
    * Method:    currentTime
    * Signature: ()D
    JNIEXPORT jdouble JNICALL Java_com_baesystems_tc_pete_1kirkham_benchmark_NanoTimer_currentTime
    (JNIEnv *env, jclass cls) {
      LARGE_INTEGER frequency;
      LARGE_INTEGER counter;
      if (QueryPerformanceFrequency(&frequency) && QueryPerformanceCounter(&counter)) {
        return (double)counter.QuadPart/(double)frequency.QuadPart;
      } else {
        return 0.0;
    }Pete

  • Upgrade to SQL Server 2008 R2 fails

    I'm trying to upgrade from SQL Server 2008 Express to SQL Server 2008 R2 Enterprise. The installation is failing. I get two log files. The first appears to be a summary. The second is an MSI install log file. The MSI log is too large to paste in here and
    I cannot attach files, so I included the section where it appears to fail. Based on the log contents below, how can I fix this?
    Overall summary:
      Final result:                  Failed: see details below
      Exit code (Decimal):           -2068024447
      Exit facility code:            1212
      Exit error code:               29569
      Exit message:                  Failed: see details below
      Start time:                    2015-04-06 21:07:14
      End time:                      2015-04-06 21:13:54
      Requested action:              Upgrade
      Log with failure:              C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20150406_210629\sql_engine_core_inst_ctp6_Cpu64_1.log
      Exception help link:           http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.50.1600.1
    Machine Properties:
      Machine name:                  DAD-PC
      Machine processor count:       12
      OS version:                    Windows 7
      OS service pack:               Service Pack 1
      OS region:                     United States
      OS language:                   English (United States)
      OS architecture:               x64
      Process architecture:          64 Bit
      OS clustered:                  No
    Product features discovered:
      Product              Instance             Instance ID                   
    Feature                                  Language            
    Edition              Version         Clustered
      Sql Server 2008      SQLEXPRESS           MSSQL10.SQLEXPRESS             Database Engine Services                
    1033                 Express Edition      10.3.5500.0     No        
      Sql Server 2008      SQLEXPRESS           MSSQL10.SQLEXPRESS             SQL Server Replication                  
    1033                 Express Edition      10.3.5500.0     No        
      Sql Server 2008                                                         
    Management Tools - Basic                 1033                 Express Edition     
    10.0.1600.22    No        
    Package properties:
      Description:                   SQL Server Database Services 2008 R2
      ProductName:                   SQL Server 2008 R2
      Type:                          RTM
      Version:                       10
      SPLevel:                       0
      Installation location:         H:\x64\setup\
      Installation edition:          ENTERPRISE
    User Input Settings:
      ACTION:                        Upgrade
      AGTDOMAINGROUP:                <empty>
      BROWSERSVCSTARTUPTYPE:         Disabled
      CONFIGURATIONFILE:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20150406_210629\ConfigurationFile.ini
      CUSOURCE:                      
      ENU:                           True
      ERRORREPORTING:                True
      FAILOVERCLUSTERROLLOWNERSHIP:  2
      FARMACCOUNT:                   <empty>
      FARMADMINPORT:                 0
      FARMPASSWORD:                  *****
      FTSVCACCOUNT:                  <empty>
      FTSVCPASSWORD:                 *****
      FTUPGRADEOPTION:               Import
      HELP:                          False
      IACCEPTSQLSERVERLICENSETERMS:  False
      INDICATEPROGRESS:              False
      INSTANCEID:                    SQLEXPRESS
      INSTANCENAME:                  SQLEXPRESS
      ISSVCACCOUNT:                  NT AUTHORITY\NetworkService
      ISSVCPASSWORD:                 *****
      ISSVCSTARTUPTYPE:              Automatic
      PASSPHRASE:                    *****
      PCUSOURCE:                     
      PID:                           *****
      QUIET:                         False
      QUIETSIMPLE:                   False
      RSCATALOGSERVERINSTANCENAME:   Unknown
      RSUPGRADEDATABASEACCOUNT:      
      RSUPGRADEPASSWORD:             *****
      SQLDOMAINGROUP:                <empty>
      SQMREPORTING:                  False
      UIMODE:                        Normal
      X86:                           False
      Configuration file:            C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20150406_210629\ConfigurationFile.ini
    Detailed results:
      Feature:                       Database Engine Services
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       SQL Writer
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       SQL Browser
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       SQL Server Replication
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       SQL Compact Edition Tools
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Management Tools - Basic
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
    Rules with failures:
    Global rules:
    Scenario specific rules:
    Rules report file:               C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20150406_210629\SystemConfigurationCheck_Report.htm
    PARTIAL MSI LOG BELOW
    Action start 21:13:47: AppSearch.
    MSI (s) (40:00) [21:13:47:914]: Note: 1: 1325 2: v2.0.50727
    MSI (s) (40:00) [21:13:47:914]: Note: 1: 1325 2: EventLogMessages.dll
    MSI (s) (40:00) [21:13:47:914]: PROPERTY CHANGE: Adding ASPNET_EVENTLOGDLL property. Its value is 'C:\Windows\Microsoft.NET\Framework64\v2.0.50727\EventLogMessages.dll'.
    MSI (s) (40:00) [21:13:47:915]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\\Setup 3: 2
    MSI (s) (40:00) [21:13:47:915]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FBD367D1-642F-47CF-B79B-9BE48FB34007} 3: 2
    MSI (s) (40:00) [21:13:47:915]: PROPERTY CHANGE: Adding INSTALLSQLSHAREDDIR_32 property. Its value is 'C:\Program Files (x86)\Microsoft SQL Server\'.
    MSI (s) (40:00) [21:13:47:916]: PROPERTY CHANGE: Adding INSTALLSQLSHAREDDIR_64 property. Its value is 'C:\Program Files\Microsoft SQL Server\'.
    MSI (s) (40:00) [21:13:47:916]: PROPERTY CHANGE: Adding DEVENV_IDE8 property. Its value is 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\'.
    MSI (s) (40:00) [21:13:47:917]: PROPERTY CHANGE: Adding SQLSETUPARPWRAPPER property. Its value is 'C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Release\x64\SetupARP.exe'.
    MSI (s) (40:00) [21:13:47:917]: Doing action: RestoreSetupParams_64
    Action ended 21:13:47: AppSearch. Return value 1.
    MSI (s) (40:00) [21:13:47:920]: Note: 1: 2235 2:  3: ExtendedType 4: SELECT `Action`,`Type`,`Source`,`Target`, NULL, `ExtendedType` FROM `CustomAction` WHERE `Action` = 'RestoreSetupParams_64'
    MSI (s) (40:C0) [21:13:47:921]: Invoking remote custom action. DLL: C:\Windows\Installer\MSICCED.tmp, Entrypoint: RestoreSetupParams
    Action start 21:13:47: RestoreSetupParams_64.
    <Func Name='LaunchFunction'>
    Function=RestoreSetupParams
    <Func Name='SetCAContext'>
    <EndFunc Name='SetCAContext' Return='T' GetLastError='203'>
    Doing Action: RestoreSetupParams
    PerfTime Start: RestoreSetupParams : Mon Apr 06 21:13:47 2015
    <Func Name='RestoreSetupParams'>
            Error Code: 0x80077381 (29569)
    Windows Error Text:   Source File Name: sqlca\sqlcax.cpp
    Compiler Timestamp: Thu Jul  3 22:23:09 2008
         Function Name: RestoreSetupParams
    Source Line Number: 190
    Error Code: 29569
    MSI (s) (40!D0) [21:13:51:016]: Product: Microsoft SQL Server 2008 Database Engine Services -- Error 29569. SQL Server Setup failed to restore the instance id.
    Error 29569. SQL Server Setup failed to restore the instance id.
    <Failure Type='Fatal' Error='29569'>
    <EndFunc Name='LaunchFunction' Return='29569' GetLastError='203'>
    CustomAction RestoreSetupParams_64 returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)

    Hello,
    You shared with us the following lines part of one of the logs created during the upgrade process:
    Error Code: 29569
     MSI (s) (40!D0) [21:13:51:016]: Product: Microsoft SQL Server 2008 Database Engine Services -- Error
    29569. SQL
    Server Setup failed to restore the instance id.
    These lines are associated with Registry corruption. If this instance is a production instance, please call Microsoft Support for help.
    For more information, please read the answer provided by Cathy Miller (MSFT) on the following thread.
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/15a67403-3e67-47cd-8595-4330945bd6cc/sql-server-2008-sp2-update-fails-error-29569-sql-server-setup-failed-to-restore-the-instance-id?forum=sqlsetupandupgrade
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Segfaults with Blender 2.44??

    Anyone else getting segfaults with Blender 2.44 and Arch64?
    They happen when trying to save a file (every time), perhaps other times as well.
    ~B

    I've been having problems with Blender, anytime I try to open a file (so browse to a file) it crashes. It doesn't matter from where in Blender I try to open a file. I assume it is the same segfaults listed  in this thread.
    brucebertrand wrote:
    Anyone else getting segfaults with Blender 2.44 and Arch64?
    They happen when trying to save a file (every time), perhaps other times as well.
    ~B
    I've tried building these from AUR to fix the problem but get the same error with each one.
    blender-svn 12133-1
    blender-svn-cloth 20070920-1
    blender-svn-particles 20070619-1
    my error is:
    Linking library ==> 'libbf_bullet.a'
    Compiling ==> 'SumoPHYCallbackBridge.cpp'
    Compiling ==> 'SumoPhysicsController.cpp'
    Compiling ==> 'SumoPhysicsEnvironment.cpp'
    Compiling ==> 'SM_FhObject.cpp'
    Compiling ==> 'SM_Object.cpp'
    Compiling ==> 'SM_Scene.cpp'
    Compiling ==> 'SM_MotionState.cpp'
    Linking library ==> 'libbf_sumo.a'
    Compiling ==> 'buildinfo.c'
    Linking program ==> 'blender'
    /usr/bin/ld: cannot find -lswscale
    collect2: ld returned 1 exit status
    scons: *** [/var/abs/local/yaourtbuild/blender-svn/src/build/linux2/bin/blender] Error 1
    scons: building terminated because of errors.
    ==> ERROR: Build Failed. Aborting...
    Error: Makepkg was unable to build blender-svn package.
    Any suggestions?
    Thank You!
    Edit: by the way, I'm not running Arch64, but this thread seamed to fit the best...  I also tried building as root, just in case it was a permisions problem, but with the same error.
    Last edited by stingray (2007-09-30 15:18:15)

  • Ld:library not found for lcrt0.o

    my makefile is:
    #          PACKAGE:          photoz++
    # os: linux
    # --- Macros -----------------------------------------------------------------
    UNAME := $(shell uname)
    ifneq ($(UNAME),Darwin)
    CFLAGS := $(CFLAGS) 
    endif
    #CCXX          =          g++ -O2
    CCXX          =          g++ -g
    LD          =          g++ -static
    ARFLAGS          =
    CP          =       cp
    RM          =       rm -f
    NR_LIBDIR =           ../numrec
    CCFLAGS =          ${INCLUDE} -DNRANSI -DPZDOUBLE
    INCLUDE =          -I../include -I${NR_LIBDIR}  -I../nnls
    LDLIBS  =          -L../lib -lPhotoz -lnumrec  -lgcc ../nnls/nnls.o -lm
    EXE =          repLvq.x\
              repMean.x\
              repManual.x\
              repKl.x\
              repType.x\
              repOne.x\
              bestTemplate.x\
              bestType.x\
              color.x\
              objToFlux.x\
              chiz.x\
              cosmdist.x\
              photoz.x
    # --- Targets ----------------------------------------------------------------
    # Rules for building each executable.
    all :          ${EXE}
    # Build and install the executables.
    apps :          ${EXE}
              - ${CP} ${EXE} ../bin
    install: apps
    # Clean without removing installed products.
    clean :
              - ${RM} ${EXE} *.x *.o
    # Remove all files generated or installed by make. 
    veryclean :          clean
              - cd ../bin; ${RM} ${EXE}
    # --- Suffix Rules -----------------------------------------------------------
    # First clear out the default suffixes, then declare our own and
    # define the rules.
    .SUFFIXES:
    .SUFFIXES: .x .o .cpp
    # Compiling C++ code.  The command lines are so long as to be useless.
    .cpp.o:
    #          @ echo compiling $<
    #          @ ${CCXX} -c ${CCFLAGS} $<
               ${CCXX} -c $< ${CCFLAGS}
    .o.x:
    # ${LIBRARY}
    #          @ echo linking " " $@
    #          @ ${LD} -o $@ ${CCFLAGS} $< ${LDLIBS}
               ${LD} -o $@ $< ${LDLIBS}
    I would appreciate a lot if you could guide me in detail through the steps I have to do in order to solve this problem.
    My system is macbook pro, snow leopard, darwin gcc 4.2.1.
    Thanks a lot
    Best regards
    María
    [email protected]

    Are you calling ld directly? If so, this is normal. Let the compiler call ld on it's own and it will bring in the startup code.
    Under the hood when the compiler calls the linker for you it adds -lcrt1.10.5.o -lSystem
    Oops, just read your post closer. I think you're screwed.
    -static
    On systems that support dynamic linking, this prevents linking with the shared libraries. On
    other systems, this option has no effect.
    This option will not work on Mac OS X unless all libraries (including libgcc.a) have also been
    compiled with -static. Since neither a static version of libSystem.dylib nor crt0.o are
    provided, this option is not useful to most people.
    Eric
    Message was edited by: ericmeyers

Maybe you are looking for

  • Problem in Posting Excise Invoice

    Hi, I am posting a Excise Invoice thru J1IEX_P, but while posting the document I am getting a Error as " Balance In Transaction Currency". This error is prevailing is there from long time. Can anybody please suggest some solution over this. Regards,

  • Photographers Package in UK

    How do I purchase the 'Photographers Package' for $9.99 in the UK?

  • How to start sybase Backup server in windows 2008 r2

    Unfortunately i stop the sybase backup server. I try to start it again but i get problem in that. Sybase BCKServer_ASE_BS , Sybase SQLServer_ASE & Sybase XPServer_ASE_XP - These could not be start The error is in screenshot  can any one help at this

  • HELP! itunes cannot detect ipod shuffle

    My itunes cannot detect ipod shuffle after connected to the device. The ipod shuffle is newly brought. I cant even set up and try to open it!

  • MPEG 2 Aspect Ratio Problem

    I have 3 - :30 spots at 720x480 that Time Warner has requested as MPEG 2. The quality of the conversion using Compressor is rather nice, taking a 1.33 gig QT file and compressing it down to about 50meg. The problem is that it's squeezing the 720x480