[Linker Error] Unresolved external 'niScope_init' referenced from C:\ALUNOS\ALLAN\EVA\BUILDER2.0B\UNIT1.OBJ

Hi,
First of all I'm sorry about my English. I'm developing a software on Builder C++ by Borland and we bought an NI DAQ 5112 PCI. I'd like to know if is possible to use the high-level functions from niScope (such as niScope_init, _AutoSetup, _close...) on this plataform. I'm asking it 'cause I could run every "example program" on it whithout any problem. But when I try to use it on my own project the message below is shown: unresolved external "niScope_init" referenced from "path_of_my_project".
thanks,
Allan

Make sure you're linking to the niScope inport library.  I'm attaching the Borland import library from NI-SCOPE 2.9.1.
(These forums won't let me attach a .lib.  So download this file, and rename it "niScope.lib")
Attachments:
niScope.txt ‏72 KB

Similar Messages

  • Unresolved external "niScope_i​nit" referenced from "path_of_m​y_project"

    Hi,
    First of all I'm sorry about my English. I'm developing a software on Builder C++ by Borland and we bought an NI DAQ 5112 PCI. I'd like to know if is possible to use the high-level functions from niScope (such as niScope_init, _AutoSetup, _close...) on this plataform. I'm asking it 'cause I could run every "example program" on it whithout any problem. But when I try to use it on my own project the message below is shown: unresolved external "niScope_init" referenced from "path_of_my_project".
    thanks,
    Allan

       Hi Ayman K, thanks for your help.
    I bought this digitalizer which brings some examples in Visual C++ based. Fortunetly, there is a tool on Builder C++ (software that I use) that converts a VC++ project in a BC++ project. When i did it with each example code, it really worked (it run perfectly as a BC++ project), of course I needed to add the NISCOPE include and library directories to my project. My problem is that when I try to use this functions (such as niScope_init, niScope_ConfigureVertical, etc...), all of them high-level functions, into my own project, a message like these below is shown:
    [Linker Error] Unresolved external 'niScope_init' referenced from C:\ALUNOS\ALLAN\EVA\BUILDER2.0C\UNIT1.OBJ
    [Linker Error] Unresolved external 'niScope_AutoSetup' referenced from C:\ALUNOS\ALLAN\EVA\BUILDER2.0C\UNIT1.OBJ
    [Linker Error] Unresolved external 'niScope_ConfigureVertical' referenced from C:\ALUNOS\ALLAN\EVA\BUILDER2.0C\UNIT1.OBJ
    [Linker Error] Unresolved external 'niScope_ConfigureVertical' referenced from C:\ALUNOS\ALLAN\EVA\BUILDER2.0C\UNIT1.OBJ
    and so on
    I already tried to add every include and/or library path from the example projects (that works) to my project, but it haven't worked. Now I'm looking for someone who have gotten some trouble like this. I even don't know if I'm looking it on the right way but I hope so. I aprecciate every help ok?
        Thanks a lot
                  Allan Rocha

  • ERROR Consuming external Web Services from JDE E1

    Hello everybody,
    I am trying to consume external web services from JD Edwards Enterprise One. For that, I have followed "Consuming External Web Services Tutorial".
    I have followed all the steps successfully, but when the final test called from an interactive application to the business function that I had created in C get the following error messages in the log file:
    [WARN ] JDE - [RUNTIME] *ERROR CallObject@13d346d: CallObject.executeRequest(): Problem executing function [consumingWS] lib [CALLBSFN] GetProcAddress failed. Please see Enterprise Server log for details. Business function cannot be found user:JDE Env:DV900*
    [SEVERE] JDE - [RUNTIME] FormEngine.doEvent(): BSFN failed and need roll back!! | Form Name : P5500055_W5500055A com.jdedwards.runtime.base.SystemException: There was a problem with the sever while running the business function consumingWs.\nThe current transaction has been lost.\nPlease exit the application and restart it.\nButton clicked Line number 1\nP5500055_W5500055A
    com.jdedwards.runtime.base.SystemException: There was a problem with the sever while running the business function consumingWs.\nThe current transaction has been lost.\nPlease exit the application and restart it.\nButton clicked Line number 1\nP5500055_W5500055A
    at com.jdedwards.runtime.engine.form.FormEngine.doEvent(Unknown Source)
    at com.jdedwards.runtime.vtcomponent.form.VTForm.doEvent(Unknown Source)
    at com.jdedwards.runtime.engine.ButtonEngine.onClick(Unknown Source)
    at com.jdedwards.runtime.vtcomponent.VTButton.onClick(Unknown Source)
    at com.jdedwards.runtime.vtcomponent.VTButton.processVirtualEvent(Unknown Source)
    at com.jdedwards.runtime.virtual.OWVirtual.processVTEvent(Unknown Source)
    at com.jdedwards.runtime.virtual.OWVirtual.processEventLoop(Unknown Source)
    at com.jdedwards.runtime.virtual.OWVirtual.run(Unknown Source)
    at com.jdedwards.base.util.ThreadPool$WorkerThread.run(Unknown Source)
    I have tested:
    1) Incorrect OCM for BSFNs.
    Mapped to development Enterprise Server, so it was failing to find the BSFN.
    2) Increase heap space for Java.
    3) Business Function Location (C/S): "Both Client & Server Function"
    4) Link the Business function with its parent DLL (CALLBSFN.dll)
    I'm not sure I'd done well...
    5) Update Package
    From Buildlog.txt I can see the following error:
    Copying \\ORACLE-JDE\E900\DV900\package\DV900FB\lib32\sCALLBSF.lib to \\ORACLE-JDE\E900\DV900\package\DVU100427\lib32\sCALLBSF.lib
    Copying \\ORACLE-JDE\E900\DV900\package\DV900FB\work\jdertdll.c to \\ORACLE-JDE\E900\DV900\package\DVU100427\work\jdertdll.c
    Generating Makefile: E:\e900\DV900\obj\CALLBSFN.mak
    B5500055 : Not checked into pathcode, excluded from the build
    .Makefile generated.
    Building business functions.
    ************CALLBSFN************
    jdertdll.c
    Creating library \\ORACLE-JDE\E900\DV900\package\DVU100427\lib32\CALLBSFN.lib and object \\ORACLE-JDE\E900\DV900\package\DVU100427\lib32\CALLBSFN.exp
    CALLBSFN.exp : error LNK2001: unresolved external symbol _consumingWS@12
    \\ORACLE-JDE\E900\DV900\package\DVU100427\bin32\CALLBSFN.dll : warning LNK4088: image being generated due to /FORCE option; image may not run
    To not build the business function is not possible the package deployment for the server becomes aware of the presence of this business function...
    But I have not managed to solve the problem, do you have any idea?
    Thank you and regards.

    Hello again,
    I have modied OCM record with a correct BSSV (the name and the port number were wrong).
    And other thing that I have tested is change the parent DLL with a new DLL created by me (Object Name: CALLWS.dll, Product Code: 0, Product System Code:0) and the error is:
    *ERROR CallObject@25b780: CallObject.executeRequest(): Problem executing function [invocarWS] lib [CALLWS] LoadLib failed.Please see Enterprise Server log for details. Library in which business funtion resides cannot be loaded user:JDE Env:DV900*
    [SEVERE] JDE - [RUNTIME] FormEngine.doEvent(): BSFN failed and need roll back!! | Form Name : P5500055_W5500055A com.jdedwards.runtime.base.SystemException: There was a problem with the sever while running the business function invocarWS.\nThe current transaction has been lost.\nPlease exit the application and restart it.\nButton clicked Line number 1\nP5500055_W5500055A
    com.jdedwards.runtime.base.SystemException: There was a problem with the sever while running the business function invocarWS.\nThe current transaction has been lost.\nPlease exit the application and restart it.\nButton clicked Line number 1\nP5500055_W5500055A
         at com.jdedwards.runtime.engine.form.FormEngine.doEvent(Unknown Source)
         at com.jdedwards.runtime.vtcomponent.form.VTForm.doEvent(Unknown Source)
         at com.jdedwards.runtime.engine.ButtonEngine.onClick(Unknown Source)
         at com.jdedwards.runtime.vtcomponent.VTButton.onClick(Unknown Source)
         at com.jdedwards.runtime.vtcomponent.VTButton.processVirtualEvent(Unknown Source)
         at com.jdedwards.runtime.virtual.OWVirtual.processVTEvent(Unknown Source)
         at com.jdedwards.runtime.virtual.OWVirtual.processEventLoop(Unknown Source)
         at com.jdedwards.runtime.virtual.OWVirtual.run(Unknown Source)
         at com.jdedwards.base.util.ThreadPool$WorkerThread.run(Unknown Source)
    It seems like it is not possible to find the CALLWS dll... Althought it was built and compiled without errors and warnings...
    I would like to debug the Business Function in C from Microsoft Visual Studio 2005, but I can't, because breakpoints are disable.
    I have followed the following manual:
    E1: BSFN: Debugging Business Functions Using Visual Studio .NET 2003, 2005 and 2008 (I have founded it in Oracle Support (Metalinki)).
    And here they say:
    "It is a normal feature of visual studio 2003/2005 to disable break point at the start of a debug session and display a warning saying no symbol is loaded. Break point will only be activated on demand when the code to debug is loaded in to the runtime memory".
    I think is necessary add the referency with parent DLL (in my case, CALLWS.dll) but I don't know how can I do it. I have tested to insert in Business Function's source code the following line:
    "#pragma comment(lib,"CALLWS.dll")" to force to include it, but when it was built:
    ************CALLWS************
    B5500055.c
    Replacing B5500055.obj
    jdertdll.c
    Creating library E:\e900\DV900\lib32\CALLWS.lib and object E:\e900\DV900\lib32\CALLWS.exp
    LINK : fatal error LNK1104: cannot open file 'CALLWS.dll'
    Microsoft (R) Manifest Tool version 5.2.3790.2075
    Copyright (c) Microsoft Corporation 2005.
    All rights reserved.
    mt.exe : general error c10100b1: Failed to load file "E:\e900\DV900\bin32\CALLWS.dll". The system cannot find the file specified.
    Adjusting DLL load addresses . . .
    ************Build Finished************
    I don't understand nothing, because the path is totally right.
    Any help is appreciated!
    Thank you and regards.
    Edited by: user12085357 on 29-abr-2010 2:55
    Edited by: user12085357 on 29-abr-2010 3:02

  • Linker error using extern with 2 libs

    Hi,
      I have written two libraries, both libraries need to share access to a variable, GblVal. So in one lib, when GblVal is changed, the other lib should also see this change.
    I have tried to achieve this through extern in the following setup:
    lib1:
    lib1.c:
    int GblSum;
    void Do(){
    GblSum=1;
    lib1.h:
    extern int GblSum;
    lib2.c:
    #include "lib1.h"
    void check(){
    printf("%d",GblSum);
    finally I have a main process that has both compiled libs
    main.c:
    Do();
    check();
    obviously my code doesn't actually do the above, but this is just the gist of what I'm trying to do. I'm fairly certain that I am setting my extern variable up right, however I can't compile lib2 due to:
    Undefined symbol "_GblNum" referenced in lib2.c
     what am I doing wrong? I have suspicions that this is a linker error but I'm not really sure how to fix it.
    thanks

    Static libraries (usual file extension .lib) are simply collections of compiled object files. To use functions and data contained in a static library in an application, the library must be specified as one of the input files to the application. At link time, the linker searches the library to resolve unsatisfied function and data references and extracts the object modules required to satisfy them.
    Dynamic Link Libraries (usual file extension .dll) are compiled and linked code modules (that is, they contain their own run-time support) that expose the addresses of particular functions (and, less often, data items) contained within the module. If an application uses functions from a dynamic link library, the DLL is also loaded when the application is run and the function/data addresses made known to the application. DLLs are most often used to share common code between applications, but because they are self-contained they are also a common way of building applications using different technologies (e.g. a CVI application can use a DLL built using Delphi or VC++).
    Normally, a DLL is associated with an import library which is linked in with the calling application. This import library resolves references to functions and data in the DLL used by the calling application by 'telling' the application which DLL the functions are in and how to find them in that DLL. Applications can also explicitly load DLLs at run-time if required.
    Martin
    Certified CVI Developer

  • C++ builder 6 unresolved external error loading a dll

    Im using LabVIEW 6.1 and i'm trying to export a DLL that performs math routines (such as FFT and stuff..) to include it im my BC#B6 project. I chose the C Calling convention (because the Standard Calling Convention cannot be converted by the Coff2omf.exe tool (to get rid of the 0x21 error)). Still, i now get the following linking error (it searches for an underscore before the first letter of my function):
    [Linker Error] Unresolved external '_calcul' referenced from E:\WORK\PROJECT\CALLINGFORM.OBJ
    for now i only have a simple "multiply by 2" function that takes an int and returns an int :
    int16 __cdecl calcul(int16 Input);
    I would like to know...
    1 - How to get rid of this problem - where is the source
    of the problem (application builder i guess)?
    2 - Will I have this problem if i link dynamically the driver?
    3 - do i need to link the Run-time engine dlls to make it work in both static and dynamic loading?
    Simon Lapierre
    [email protected]

    Hello Simon,
    Thank you for contacting National Instruments.
    When you created your DLL in LabVIEW, a LIB file should also have been created. To call the DLL in C#, make sure that you include the LIB file in C#.
    In answer to your questions:
    1. You can solve this problem by including the LIB file in C#.
    2. You will not have this problem if you dynamically link the driver.
    3. You do not need to link the Run-time engine DLLs to make it work in both static and dynamic loading.
    I hope this helps. Let me know if this does not solve your problem.
    Sean C.
    Applications Engineer
    National Instruments

  • "Unresolved external"-- How do I compile NI-DAQ apps with Borland C++ ?

    I'm a newbie. I am attempting to resurrect some code which a former worker left behind.
    I am getting "Error: Unresolved external..." at link time for all the NI-DAQ calls.
    More info:
    I've installed Borland C++ 5.5 and its associated command line tools.
    I've added E:\Borland\Bcc55 and E:\Borland\Bcc55\bin to my path (NT, so I use Control Panel-->System)
    I have created bcc32.cfg and ilink32.cfg files per Borland's readme.
    I've tried various ways of adding -L"C:\Program Files\National Instruments\NI-DAQ\Lib" to the compile, both in the command line and in the .cfg files.
    What am I missing? More details available on request.
    Any help would be greatly appreciated.
    Since
    rely,
    Mike

    Mike,
    I was wondering if you ever found a solution to this issue, and if so what was it. I've run into a similar problem and the knowledgebase article which was suggested to you has not helped me.
    Any information you might have would be greatly appreciated.
    I'm using:
    Borland C++ Builder 5
    Ni-daq 6.9.1
    And I get the following error message when I build my project:
    [Linker Error] Unresolved external 'DIG_Out_Prt' referenced from
    C:\SCOTT\DLL_CODE\ELLIPSE_TEST1\WRITETOPB.OBJ
    Scott
    [email protected]

  • Unresolved external 'JNI_GetDefaultJavaVMInitArgs' error

    need help. i keep on getting
    Error : Unresolved external 'JNI_GetDefaultJavaVMInitArgs' referenced from D:\NATIVES\JNATIVEIMP.OBJ
    and
    Error : Unresolved external 'JNI_CreateJavaVM' referenced from D:\NATIVES\JNATIVEIMP.OBJ
    jnativeimp is the cpp file i'm using. i'm using the free borland compiler v5.5. jdk1.3.1_02
    JDK1_1InitArgs vm_args; _
    jint res; _
    jclass cls; _
    jmethodID mid; _
    jstring jstr; _
    jobjectArray args; _
    char classpath[1024]; _
    vm_args.version = 0X00010002; _
    JNI_GetDefaultJavaVMInitArgs((void*)&vm_args); _
    sprintf(classpath, "%s%c%s", vm_args.classpath, PATH_SEPARATOR, USER_CLASSPATH);
    vm_args.classpath = classpath; _
    res = JNI_CreateJavaVM(&jvm,(void**)&env,&vm_args); _

    hi,
    my code goes like this. i've already loaded the jvm.dll like what andrew said, but still getting the 'unresolved' error. i decided to just place jvm.dll in my current working directory. i think that shouldn't be a problem as long as its loaded and it did. what else have i missed out. pls help.
    #include <stdio.h>
    #include <stdlib.h>
    #include <jni.h>
    #include <windows.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    #ifdef _WIN32
    #define PATH_SEPARATOR ';'
    #endif
    #define USER_CLASSPATH "."
    #define DOTRELEASE "1.4"
    #define JRE_KEY "Software\\JavaSoft\\Java Runtime Environment"
    main(){
    HINSTANCE handle;
    JNIEnv *env = NULL;
    JavaVM *jvm = NULL;
    JavaVMInitArgs vm_args;
    JavaVMOption options[4];
    jint res;
    jclass cls;
    jmethodID mid;
    jstring jstr;
    jobjectArray args;
    char classpath[1024];
    if ((handle = LoadLibrary("jvm.dll"))==0)
    printf("unable to load jvm.dll\n");
    } else {
    printf("jvm.dll is loaded\n");
    options[0].optionString = "-Djava.compiler=NONE";
    options[1].optionString = "-Djava.class.path=c:\javanative";
    options[2].optionString = "-Djava.library.path=c:\borland\bcc55\lib";
    options[3].optionString = "-verbose:jni,class";
    vm_args.version = JNI_VERSION_1_2;
    vm_args.options = options;
    vm_args.nOptions = 4;
    vm_args.ignoreUnrecognized = JNI_FALSE;
    res = JNI_CreateJavaVM(&jvm,(void**)&env,&vm_args);
    if (res < 0){
    printf("Can't create java VM \n");
    exit(1);
    ........

  • VC++ 6 Linker Errors from converted CVI project

    I am getting numerous LNK2005 link errors for functions within the following .obj files: easytab.obj
    inifile.obj
    toolbar.obj
    The weird thing is that all of them say that the functions are like this:
    toolbar.obj : error LNK2005: _Toolbar_GetCtrlFromDescription already defined in toolbar.obj
    I also get several LNK2001 errors (unresolved external symbol)
    Any help will be greatly appreciated.
    Thanks,
    Richard

    It sounds like you have these OBJ files included twice in the VC++ project. Check and see in the Project->Settings... under the Link tab if they are listed twice. If they are, remove the duplicate entries. Even if they aren't you may want to try removing them from this list in case they are being linked again in another way.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • _OBJC_IVAR_$_        Referenced From Error while trying to deploy in iphone

    Hi All,
    I am facing one problem. any one who are aware of this project please help me.
    My problem is:
    i have Mac OS of 10.5.8 and xcode of 3.1.4
    while i am trying to implement a application of audio files i want the frame work called "AVFoundation.Framework" i didn't found that frame work in my library.
    so i added that framework from "MACOS10.4" .
    but in simulator 3.1 it works fine. while trying to deploy in my iphone i am getting error like:
    "-(avTouchcontroller updatecurrenttime)", referenced from:
    _OBJC_IVAR_$_ avTouchcontroller._ivlmeter_in in avTouchController.o

    Why don't you post here (again) and you might get some answers:
    http://discussions.apple.com/message.jspa?messageID=10512489#10512489

  • Linking error - JNI code

    Hi
    I am new to JNI.
    I am getting linking error as below:
    --------------------Configuration: InvokeJava - Win32 Debug--------------------
    Compiling...
    invoke.c
    invoke.obj : error LNK2001: unresolved external symbol __imp__JNI_CreateJavaVM@12
    invoke.exe : fatal error LNK1120: 1 unresolved externals
    Error executing cl.exe.
    InvokeJava.exe - 2 error(s), 0 warning(s)
    Please help me.
    Code is pasted below:
    #include<stdlib.h>
    #include <jni.h>
    #define PATH_SEPARATOR ';' /* define it to be ':' on Solaris */
    #define USER_CLASSPATH "." /* where Prog.class is */
    main() {
         JNIEnv *env;
         JavaVM *jvm;
         jint res;
         jclass cls;
         jmethodID mid;
         jstring jstr;
         jclass stringClass;
         jobjectArray args;
    #ifdef JNI_VERSION_1_2
         JavaVMInitArgs vm_args;
         JavaVMOption options[1];
         options[0].optionString =
              "-Djava.class.path=" USER_CLASSPATH;
         vm_args.version = 0x00010002;
         vm_args.options = options;
         vm_args.nOptions = 1;
         vm_args.ignoreUnrecognized = JNI_TRUE;
         /* Create the Java VM */
         res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
    #else
         JDK1_1InitArgs vm_args;
         char classpath[1024];
         vm_args.version = 0x00010001;
         JNI_GetDefaultJavaVMInitArgs(&vm_args);
         /* Append USER_CLASSPATH to the default system class path */
         sprintf(classpath, "%s%c%s",
              vm_args.classpath, PATH_SEPARATOR, USER_CLASSPATH);
         vm_args.classpath = classpath;
         /* Create the Java VM */
         res = JNI_CreateJavaVM(&jvm, &env, &vm_args);
    #endif /* JNI_VERSION_1_2 */
         if (res < 0) {
              fprintf(stderr, "Can't create Java VM\n");
              exit(1);
         cls = (*env)->FindClass(env, "Prog");
         if (cls == NULL) {
              goto destroy;
         mid = (*env)->GetStaticMethodID(env, cls, "main",
              "([Ljava/lang/String;)V");
         if (mid == NULL) {
              goto destroy;
         jstr = (*env)->NewStringUTF(env, " from C!");
         if (jstr == NULL) {
              goto destroy;
         stringClass = (*env)->FindClass(env, "java/lang/String");
         args = (*env)->NewObjectArray(env, 1, stringClass, jstr);
         if (args == NULL) {
              goto destroy;
         (*env)->CallStaticVoidMethod(env, cls, mid, args);
    destroy:
         if ((*env)->ExceptionOccurred(env)) {
              (*env)->ExceptionDescribe(env);
         (*jvm)->DestroyJavaVM(jvm);
    }

    Hi,
    you have to link jni.lib with your code. This lib is contained in the lib subdirectory of your JDK. Add jni.lib to the list of libraries and don't forget to add the directory where jni.lib is located to the library search path.
    Martin

  • Weird linking error - any ideas?

    I have a working project and am trying to add an edit screen. After I get the code for the edit stuff in place - before it's even hooked up to the buttons - I get this error when linking, after the compile:
    ".objcclass_nameSomeClassName", referenced from:
    literalpointer@__OBJC@__clsrefs@SomeClassName in SomeFileName.o
    symbols(s) not found
    collect2: Id returned 1 exit status
    Anybody have any idea which direction I should go to figure out what's up? As far I can tell (of course everything is set up right but clearly it's not.

    Well, hmm. I've gone over this several times with a fine-toothed comb and I am certain nothing is spelled wrong and the case is right.
    As far as I can tell, I have the @class BlahBlah declaration in the right place and the right #Include stuff.
    What else might be wrong, that I can look for?
    It's a custom table cell, and if I feed the view a generic table cell it all works.
    I have this structure - is there anything missing?
    ||||View.h
    @class CellClass;
    @interface ViewControllerClass : UIViewController <UITableViewDelegate, UITableViewDataSource> {
    CellClass *cellClass;
    (other stuff)
    @property (nonatomic, retain) CellClass *cellClass;
    (other stuff)
    @end
    ||||View.m
    #import "View.h"
    #import "Cell.h"
    @implementation ViewControllerClass
    @synthesize cellClass;
    (other stuff)
    @end
    ||||Cell.h
    @interface CellClass : UITableViewCell {
    (some stuff)
    @end
    ||||Cell.m
    #import "Cell.h"
    @implementation CellClass
    (stuff)
    @end

  • Link error in Workshop 6u2 with lib built by Studio 9

    I have a shared library built with Sun Studio 9.
    I'm trying to use it in an application that I build using Sun
    Workshop 6 update 2.
    This gives me a link error:
    Undefined symbol first referenced in file
    __rwstd::__null_string_ref_rep<char,std::char_traits<char>,
    std::allocator<char>,__rwstd::__string_ref_rep<std::allocator<char>
    >>::__null_string_ref_rep()
    /home/me/lib/libFoo.so
    std::basic_string<char,std::char_traits<char>,std::allocator<char>>::~basic_string()
    /home/me/lib/libFoo.so
    The lib is built using:
    JAVA_INCLUDE = -I${JAVA_HOME}/include -I${JAVA_HOME}/include/solaris
    JAVA_LIBS = -L${JAVA_HOME}/jre/lib/sparc -L${JAVA_HOME}/jre/lib/sparc/client
    CXX = g++
    CXXFLAGS = -g -w -fPIC -I./include ${JAVA_INCLUDE}
    LDFLAGS = -shared ${JAVA_LIBS} -ljava -ljvm
    $(CXX) ${LDFLAGS} ${LIBS} -o ../$@ ${OBJS}
    Any ideas what could be wrong?
    Thanks in advance,
    /Mikael

    You can use a binary created by an older compiler in a program built with a newer compiler. We take care not to invalidiate old binary interfaces in new compilers.
    You cannot use a binary created by a newer compiler in a program built with an older compiler. The newer compiler will in general use features from headers or system libraries that are unknown to the older compiler.
    If you have a set of binaries created by different compiler versions, you must build the final program using a compiler at least as new as the newest compiler that was used.
    Similar rules apply to verions of Solaris where the binaries are built. If you build a binary on an older Solaris version, you can use it on a newer Solaris version -- but not the reverse.

  • Linker Error: AudioToolbox MIDI

    I am making a random music generator. I got some code from some website but here is my error:
    Undefined symbols:
    "_MIDIDestinationCreate", referenced from:
    -[MyMIDIAppDelegate applicationDidFinishLaunching:] in MyMIDIAppDelegate.o
    "_MIDISourceCreate", referenced from:
    -[MyMIDIAppDelegate applicationDidFinishLaunching:] in MyMIDIAppDelegate.o
    "_MIDIClientCreate", referenced from:
    -[MyMIDIAppDelegate applicationDidFinishLaunching:] in MyMIDIAppDelegate.o
    "_MIDIReceived", referenced from:
    _MIDIPassThru in MyMIDIAppDelegate.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    If you need code just ask

    Hi ,
    You may need to link with libCrun.so.1 to get these symbols resolved.
    % nm libCrun.so.1 | grep rethrow
    [214] | 20324| 60|FUNC |GLOB |0 |12 |__1cG__CrunKex_rethrow6F_v_
    [216] | 20696| 276|FUNC |GLOB |0 |12 |__1cG__CrunMex_rethrow_q6F_v_
    Add this to the link line -lCrun and you should be good to go.
    HTH
    Gopinath.
    Sun Developer Technical Support.
    http://www.sun.com/developers/support/

  • "_main", referenced from:

    im trying to migrate my project from windows to mac , when i use xcode to compile my code , i get the following error
    Undefined symbols:
    "_main", referenced from:
    start in crt1.10.5.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    please help

    The short answer to your question is that the entry point to a Windows app is named 'WinMain', while the entry point to an OS X app is named 'main'. The linker message you reported just means that no main function was found, which is to be expected.
    Of course you can't simply change the name of WinMain to main, since everything from the parameters to the API calls are going to be entirely different. If your Windows app is built on one of the libraries intended for an OS X port, a lot of the problems may be solved for you. Otherwise I think it's safe to say that the changes to WinMain are going to be the very least of your challenges.
    Have you decided on whether to port to Carbon or Cocao? The choice might depend on whether your Windows program is written in "C" with direct calls to the Win32 API or written in C++ using MFC. I wish I could be of more help, but I've never moved a Windows program to OS X without a complete re-write.
    All the very best of luck!!

  • Undefined symbols: "_NewSpeechChannel", referenced from...

    Hello.
    I'm an absolute beginner in developing for OSX and C programming in general.
    I'm following the instructions step-by-step to writing a very simple program that makes use of the OSX Speech Synthesizer.
    However the program won't compile and instead it lanuches this error:
    >  Undefined symbols:
    >    "_NewSpeechChannel", referenced from:
    > >    _main in ccRRVBTR.o
    >  ld: symbol(s) not found
    >  collect2: ld returned 1 exit status
    I'm aware that the problem arises from the lack of proper linking to the actual implementation of the NewSpeechChannel function.
    However it is a system function and I guess it should be linked by default. In any case, what should I do next to make it compile properly?
    The simple program is this (so far):
    #include<stdio.h>
    #include<ApplicationServices/ApplicationServices.h>
    int main(int argc, char **argv, char **envp, char **apple) {
    SpeechChannel speechchannel;
    NewSpeechChannel( NULL, &speechchannel );
    The reference of the Speech Synthesis Manager (the C API for speech synthesis) sits here:
    https://developer.apple.com/library/mac/#documentation/Carbon/Reference/Speech_S ynthesis_Manager/Reference/reference.html
    None of the functions listed in the reference compile, along with NewSpeechChannel.
    I know it is a very basic question by any help is welcome, as I'm stuck at the very beginning of my project.
    Thanks!
    PS: I tried it on both OS X 10.6.8 and 10.7.5

    Add the Application  Services framework to your project.

Maybe you are looking for

  • Podcasts downloaded to "wrong" folder, then ITunes can't find it anymore

    Hi When I subscribe to a podcast or download the newest podcast, it will be saved not to the folder of itunesmusic/podcasts/name of podcast, but to /itunesmusic/downloads/podcasts/name of podcast, apparently as tmp-folder. Synchronising just then wit

  • Trouble updating iPhone 4 to iOS 5.1 software.

    I have tried updating my iPhone 4 to the new 5.1 software. I have tried updating from iTunes and also my phone and I can't get either to work. It says that an error occured when I try on my phone. And it a message comes up on my computer when I updat

  • Doubt for Scrap Costing

    Dear Friends, I Need help regarding Scrap costing - My views as follows, Operations would maintain Scrap % for components at MAterial Master level  MRP view, as well as in the Bill of materials. However, when you create Std Cost Estiamte, system will

  • HT4436 cannot access icloud on my microsoft windows 7 computer FAQ's don't help

    I cannot access icloud on my microsoft windows 7 computer FAQ's don't help Keefs coming up with an access error

  • Getting JCalendar to work

    I'm trying to use JCalendar and I downloaded the jar file from the site. It says to add that file to the classpath. So I added the file to the folder that contains the .class file.... is that the correct folder? Then, do I have to import something or