Link error: Undefined symbol '_profi_get_cntrl_info' referenced in 'main.c '.

Hello.

I am trying to solve my problem of error connecting for a few days, but I can't find the right answer. I have already searched the forum and read some threads with "undefined symbol link error", but they are not fitting to my problem.

What I'm trying to do: I want to communicate with my Softing profibus card. I includes all the header files in my source code and also I have included both .lib for the project files. But the mentioned error will not leave.

It is curiously when I choose "Go to definition" in the context menu, CVI is the good statement in the right header file.

Who can help? What's wrong?

Best regards

der_Ben

Hey,.

one of the LIB provides this function, Yes.

But now I got it. I checked the Options 'building' and change the 'default calling convention' to '__cdecl' (should be default) '__stdcall' and now everything works fine with this function.

I would like to say thanks for your advice =)

Concerning

Ben

Tags: NI Software

Similar Questions

  • project link error - undefined symbol 'Random@16 '?

    Hello

    I get an error of link project - Undefined symbol 'Random@16' referenced in 'main.c '.

    There is no reference to where the error occurs, someone at - it a trick?

    Thank you!

    Hello-

    The Random function is defined in the programmers tool box.  "You need to add toolbox.fp (\toolslib\toolbox\toolbox.fp) to your project, or add it to your list of libraries loaded automatically thanks to the Library" customize the menu.

    NickB

    National Instruments

  • Project link error: Undefined cadquã with TreeView macros

    Hello world

    I am facing a problem of "Link error - Undefined simbol project" with TreeView, TreeView_GetCheckState() and TreeView_GetCheckState() macros that I use in my project. When I compiled in 2009 it worked, but now that I have compiled for an update later in 2010, it does not work.

    Info on these macros in https://msdn.microsoft.com/en-us/library/windows/desktop/bb773810(v=vs.85).aspx

    These macros are supposed to be set in ComCtl32.lib. I think that since this is a WINAPI it is automatically included in the project, but I have this compilation error. I have included in my project by hand and I can see it now in my project tree, but the same error persists. I have the #include commctrl.h.

    Does anyone know what I am doing wrong that my project does not have these features?

    Hi again,

    I discovered that this macros are defined in CommCtrl.h and they are dependent on the _WIN32_IE, so I wrote in the /D_WIN32_IE of compiler options sets = 0 x 0500 and now the compiler take these macros into account and, therefore, the problem disappeared. For some reason, the value of _WIN32_IE isn't the same thing in my CVI2009 and CVI2010 compiler...

    #if (_WIN32_IE > = 0 x 0500)
    tvm_? etitemstate uses only the State and stateMask mask.
    Unicode or ansi is therefore irrelevant.
    #define TreeView_SetItemState (hwndTV, hti, data, _mask).
    {_Ms_TVi structure TVITEM; \}
    _ms_TVi.mask = TVIF_STATE; \
    _ms_TVi.hItem = (hti); \
    _ms_TVi.stateMask = (_mask); \
    _ms_TVi.State = (data); \
    SNDMSG ((hwndTV), TVM_SETITEM, 0, (LPARAM,)(TV_ITEM *) & _ms_TVi); \
    }

    #define TreeView_SetCheckState (hwndTV, hti, fCheck).
    TreeView_SetItemState (hwndTV, hti, INDEXTOSTATEIMAGEMASK ((fCheck)? 2:1), TVIS_STATEIMAGEMASK)

    #define TVM_GETITEMSTATE (+ 39 TV_FIRST)
    #define TreeView_GetItemState (hwndTV, hti, mask).
    (UINT) SNDMSG ((hwndTV), TVM_GETITEMSTATE, (WPARAM) (hti), (LPARAM) (mask))

    #define TreeView_GetCheckState (hwndTV, hti).
    ((((UINT) (SNDMSG ((hwndTV), TVM_GETITEMSTATE, (WPARAM) (hti), TVIS_STATEIMAGEMASK))) > 12) - 1).

    .....

  • The linker error: undefined reference to the mmr_

    The IDE is shredded beyond ,.

    How can I add an additional library in the linker?

    Is the library - lmmrndclient?

    Help?

    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:46: undefined reference to `mmr_error_info'
    src\main.o: In function `main':
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:164: undefined reference to `mmr_connect'
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:166: undefined reference to `mmr_context_create'
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:168: undefined reference to `mmr_output_attach'
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:170: undefined reference to `mmr_output_parameters'
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:172: undefined reference to `mmr_input_attach'
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:174: undefined reference to `mmr_play'
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:235: undefined reference to `mmr_stop'
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:236: undefined reference to `mmr_input_detach'
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:237: undefined reference to `mmr_context_destroy'
    C:\PlayBookProjects\SoundTest\Device-Debug/..\src/main.c:238: undefined reference to `mmr_disconnect'
    

    Resolved: Should link against:

    \bbndk-1.0\target\qnx6\armle-v7\lib\libmmrndclient.so

    In the project settings, under the paths and symbols-> libraries

  • The linker error multiple symbol definitions

    Hello

    I brought a DAQmx project based on Linux to LabWindows CVI 2012 PXI. After completing all the requirements of the conversion and compile successfully, I'm getting tons of the following linker errors for different modules files (just stick

    a subset of these here):

    Several definitions of symbol '_PtrToPtr64' in modules X and Y

    Several definitions of symbol '_Ptr64ToPtr' in modules Z and Y

    Several definitions of symbol '_HandleToHandle64' in modules X and Y

    Several definitions for the "_HEAP_MAKE_TAG_FLAGS" symbol in the modules X and Y

    Several definitions for the symbol '_TpInitializeCallbackEnviron' in modules X and Y

    .....

    I found this message: http://forums.ni.com/t5/LabWindows-CVI/CVI2010-clang-link-errors-with-Windows-SDK/td-p/1425690

    that points to a known issue in CVI 2010. However workaround (allowing the C99 compilation option) is already defined in my project, so this solution does not apply.

    Any idea what could cause these symbols windows.h get redefined?

    Thank you

    Some of the Windows SDK functions, can have the same name as the functions of LabWIndows/CVI. Is your Windows.h file before all the other header files? See the following article for more information: http://digital.ni.com/public.nsf/websearch/69C82671913CAA4986256E9400676E17?OpenDocument

  • error link undefined symbol pilot agilent Ag34970

    Hello

    I use the Ag34970 driver

    I had errors of link project: undefined symbol...

    for all the fuction of this driver.

    the instrument is loaded, the .dll file is located in the project directory, the .h and .fp is added to the project.

    What is the problem?

    Thank you

    Hello

    You should check the .fp is properly connected.

    Got to tool > menu editing, select the instrument and click View Info...

    If the file is empty, this means that the public service is not attached to a program file. It should contain a .obj file, .lib or .c

    See here how CVI seeks the program file driver Intsrument and set the file to a suitable location.

    Constantin

  • I get Undefined symbol '_Ivi_QueryInstrStatus@4' referenced in & quot; hp34401a

    I use CVI7.1 and when I try to compile my app, I get 57 errors of link all Undefined symbol referenced in "hp34401a.c".related to the DVM hp34401.a I use.

    I've updated PKI 3.3 and now I'm able to compile without error

  • ___Cvi_toolbox_smart_type_default_types undefined symbol

    Hello

    I have a project that was built to be modified using CVI Version 9.1.0 (Build 427).

    I need to change and want to use the latest version of the CVI.

    The build will fail with a linker error:

    Undefined symbol '___cvi_toolbox_smart_type_default_types' referenced in "toolbox.obj".

    I assume that one of the functions of Toolbox that I used has been changed or depeciated, but which?

    Does anyone know what this error is associacted with? I'd rather not search funtion of all programmers Toolbox in my project.

    Kind regards

    John

    You can get these types of errors of link if the toolbox.obj in your project or your CVI environment (ADE) is from a newer version of the CVI the CVI ADE you use to compile the project. Verify the path of the toolbox.obj file in your project / ADE and make sure it is the same version of the CVI.

  • excelreportdemo project link error with CVI2010 on windows 7, 64-bit operating system

    I try to run the project for excelreportdemo in CVI2010 on windows 7, 64-bit operating system. I have the Excel2013 installed as well. I chose the build configuration release or debug for 32 bits of the system in order to be compatible to the test for the production platform.

    However, I get errors in link project 12 as follows:

    Undefined symbol '_ExcelRpt_RangeBorder@24' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_WriteDataFromTableControl@16' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_SetCellValue' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_SetCellRangeAttribute' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_ChartAddtoWorksheet@40' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_ChartWizard@52' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_SetChartAttribute' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_WorkbookNew@8' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_ApplicationNew@8' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_ApplicationQuit@4' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_WorkbookClose@8' referenced in "excelreportdemo.c".
    Undefined symbol '_ExcelRpt_WorksheetNew@12' referenced in "excelreportdemo.c".

    I found a previous discussion in 2007. Unfortunately, it did not help for the same problem on my new machine and CVI2010. Could someone give me help on that.

    Thank you!

    Yuwei

    I get it worked after that I removed the excelreport.fp in the Menu library customize. The excelreport.fp has been added to the Menu library customize to my other work on the project, which, but had similar problems. It seems CVI is getting better and better, so that you don't need extras like it was before. Do not add reduntant libs.

  • The linker error while packaging iOS app with my DONKEY

    While trying to write a Native Extension for ZXingObjC iOS (https://github.com/TheLevelUp/ZXingObjC), the following error link appears when exporting in Flash Builder 4.x:

    --------

    Error occurred during the application of packaging:

    For architecture armv7 httpd Undefined symbols:

    "___divmodsi4", referenced from:

    + [ZXEncoder numDataBytesAndNumECBytesForBlockID:numDataBytes:numRSBlocks:blockID:numDataBytesInBlock: numECBytesInBlock:error:] in libcom.google.zxing.ZXingNativeExtension.a (ZXEncoder.o)

    + [Encode ZXAztecEncoder: len:minECCPercent:] in libcom.google.zxing.ZXingNativeExtension.a (ZXAztecEncoder.o)

    + [ZXAztecEncoder generateCheckWords:totalSymbolBits:wordSize:] in libcom.google.zxing.ZXingNativeExtension.a (ZXAztecEncoder.o)

    LD: symbol not found armv7 architecture

    Compilation failed during execution: ld64

    --------

    This happens in Flash Builder 4.6 or 4.7 using AIR SDK 3.7

    This isn't my first Native Extension for iOS. No amount of fiddling around with the addition of frameworks or libraries in Xcode for static library.

    Looking for advice on what must then try to resolve this linker error...

    I'll let the foregoing for SEO to the further research about this error, but by adding the following fixed my error Undefined Symbol

    ...

    5.0 is probably fine, another random Googling showed that by default to 4.0 which is probably a source of the issue.  Also of note, I don't have to add a linkerOption for one of the 3rd libraries part that uses the side of XCode.

  • Undefined symbol ' _Timeout_Config

    Hey, I'm working on a real-time acquition program and I have several problems:

    10 mistakes of project link

    Undefined symbol '_DIG_DB_Config@20' referenced in "acq #3.c.

    Undefined symbol '_Timeout_Config@8' referenced in "acq #3.c.

    Undefined symbol '_DIG_DB_HalfReady@12' referenced in "acq #3.c.

    Undefined symbol '_Align_DMA_Buffer@24' referenced in "acq #3.c.

    Undefined symbol '_WriteToDigitalLine@24' referenced in "acq #3.c.

    Undefined symbol '_DIG_DB_Transfer@16' referenced in "acq #3.c.

    Undefined symbol '_DIG_Grp_Config@20' referenced in "acq #3.c.

    Undefined symbol '_DIG_Block_Clear@8' referenced in "acq #3.c.

    Undefined symbol '_DIG_Block_In@16' referenced in "acq #3.c.

    Undefined symbol '_DIG_Grp_Mode@28' referenced in "acq #3.c.


  • Error when packaging app for iOS - Undefined symbols for armv7 architecture

    First time trying to package an AS3 Air application for development.

    App works fine on Android and is available on the Google/Amazon etc. store. The version I try to package a all references to DONKEY I use removed for simplicity.

    I use Flash Builder 4.7, AIR v4.0 and developed on a PC in Windows 8.

    When you use fast packaging no error is thrown, but the app shows just a black screen on my test Ipad (v3).

    Using standard packaging, I get the following error at 57%:

    Error occurred during the application of packaging:

    For architecture armv7 httpd Undefined symbols:

    "__Z15abcOP_nullcheckIPN7avmplus6AbcEnvEEvPNS0_9MethodEnvET_", referenced from:

    _abcMethod_builtin_2_2_function public::global21.describeType in AOTBuildOutput - 3.o

    _abcMethod_builtin_3_3_function public::global21.describeTraits in AOTBuildOutput - 3.o

    _abcMethod_builtin_6_6_function public::global21.describeParams in AOTBuildOutput - 3.o

    _abcMethod_builtin_5_5_function public::global21.describeMetadata in AOTBuildOutput - 3.o

    _abcMethod_builtin_4_4_function public::global21.finish in AOTBuildOutput - 3.o

    _abcMethod_builtin_26_26_function public::Object$ ._dontEnumPrototype in AOTBuildOutput - 3.o

    _abcMethod_builtin_30_30_null IŠ¬:_init. in AOTBuildOutput - 3.o

    ...

    LD: symbol not found armv7 architecture

    Compilation failed during execution: ld64

    Any help you can offer would be very welcome.

    Please try with the latest version of the AIR 15 Download Adobe AIR beta 15 - Adobe Labs , as it contains many corrections of bugs for the new quick links Manager. Let us know if you still faces questions.

    -Nimisha

  • ORA 12 c install error on openSuse: reference to the "__tls_get_addr@@GLIBC_2.3" undefined symbol

    Hello world

    I know that Oracle does not support the OpenSuSE, but all previous versions of the database has worked.

    With Oracle 12 c, the installation fails. I get the error below.

    No doubt someone has a useful idea?

    Yours, user8632123.

    NEWS: make f /home/oracle/base/rdbms/12.101/precomp/lib/ins_precomp.mk to reissue EXENAME = proc

    INFO: make [1]: Entering directory ' / home/oracle/base/rdbms/12.101/precomp/lib'

    INFO: Link /home/oracle/base/rdbms/12.101/precomp/lib/proc

    INFO: usr/lib64/gcc/x86_64-suse-linux/4.7/... /... /.. /.. (/ x86_64-SUSE-Linux/bin/LD: home/oracle/base/rdbms/12.101/lib//libnls12.a(lxhlang.o): reference to the "__tls_get_addr@@GLIBC_2.3" undefined symbol
    usr/lib64/GCC/x86_64-SUSE-Linux/4.7/... /... /.. /.. / x86_64-SUSE-Linux/bin/LD: Note: '__tls_get_addr@@GLIBC_2.3' is defined in OSR /lib64/ld-linux-x86-64.so.2 try so add to the linker command line
    /lib64/ld-linux-x86-64.so.2: could not read symbols: invalid operation

    INFO: collect2: error: ld returned 1 exit status

    INFO: / bin/chmod: can't access to ' / home/oracle/base/rdbms/12.101/precomp/lib/proc'
    INFO: no such file or directory

    INFO: make [1]: leaving directory ' / home/oracle/base/rdbms/12.101/precomp/lib'

    INFO: make [1]: * [/ home/oracle/base/rdbms/12.101/precomp/lib/proc] error 1

    NEWS: make: * [proc] error 2

    I use opensuse 12.3 and I have this error too.

    My solution is

    (1) backup (ORACLE_HOME) / lib/stubs, and then delete.

    (2) change RMAN_LINKLINE in the {ORACLE_HOME}/rdbms/lib/env_rdbms.mk file

    TO

    RMAN_LINKLINE = $(LINK) $(OPT) $(S0MAIN) $(SSKRMED) $(SKRMPT).

    $(LLIBDBTOOLS) $(LLIBCLIENT) $(LLIBSQL) $(LLIBPLSQL).

    $(LLIBSNLSRTL) $(LLIBUNLSRTL) $(LLIBNLSRTL).

    $(LLIBSLAX) $(LLIBPLSQL) $(LIBPLCN) $(LINKTTLIBS) - lons

    (3) all reissue them.

  • / usr/lib/VMware/bin/VMware: symbol lookup error: /usr/lib/vmware/lib/libssl.so.0.9.8/libssl.so.0.9.8: undefined symbol: EVP_ecdsa

    Hello

    After a few package update/install vmware (7.0.1 build 227600 x86_64) has stopped working.  When you try to start, I get an error:

    / usr/lib/VMware/bin/VMware: symbol lookup error: /usr/lib/vmware/lib/libssl.so.0.9.8/libssl.so.0.9.8: undefined symbol: EVP_ecdsa

    ameeba 06:38 & gt; md5sum /usr/lib/vmware/lib/libssl.so.0.9.8/libssl.so.0.9.8

    8ee5d0ab909cbf5604ab025f836f5cc0 /usr/lib/vmware/lib/libssl.so.0.9.8/libssl.so.0.9.8

    System is Fedora Core 11 with all updates with a few multimedia tools and the rpmfusion Nvidia drivers.

    ameeba 06:41 & gt; less /tmp/vmware-pasi/setup-9349.log

    Mar 15 06:41:15.938: app-140707592353520 | Journal for VMware Workstation pid = 9349 version = 7.0.1 build = build-227600 option = output

    Mar 15 06:41:15.938: app-140707592353520 | The process is 64-bit.

    Mar 15 06:41:15.938: app-140707592353520 | Host codepage = UTF-8 encoding = UTF-8

    Mar 15 06:41:15.938: app-140707592353520 | Login to /tmp/vmware-pasi/setup-9349.log

    Mar 15 06:41:16.077: app-140707592353520 | Mark modconf initialized interface

    Mar 15 06:41:16.077: app-140707592353520 | modconf initialized library

    Vmware reinstalling did not help.

    Any ideas?

    -Pasi-

    We can suspect that your libcrypto.so were captured earlier a comes with vmware, try: export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libcrypto.so.0.9.8 & vmware & command line

  • Error 5000: The class 'Particle' must subclass 'flash.display.MovieClip' because it is linked to a symbol in the library of this type.

    Running Flash CS3, I looked at the tutorial from lynda.com on strengthening the systems of particles in ActionScript 3.0 to create a few sparks shooting in an animation.  I'm stuck to what I think is a point really basic, but I can't seem to cross it.  Basically, all I'm doing at this point is to create a class called particle (that I'll learn to do things that the particles to make a little later) bind it to a MovieClip on the stage in my .fla file and use the function to update the particle to move it around the stage in a way defined in the instance (so I can later give properties of different movement to) each as an instance generated the MC).  I know there are easier ways to accomplish my basic task without loading an external module, but this seems to makes it so I have to hurt something very simple, that I can't see so I thought I'd post the code here and see what I'm missing.

    I start with a file called Particle.as in the same folder as my file Test.fla Spark.

    In Particle.as, I have the following code:

    package
    {
    import flash.display. *;

    Particles/public class extends MovieClip
    {
    public xVelocity:Number;
    public yVelocity:Number;

    public void Particle()
    {
    xVelocity = 0;
    yVelocity = 0;
    }

    public void update (): void
    {
    This.x += xVelocity;
    This.y += yVelocity.

    }
    }
    }

    So, I declare that all the particles are built with no movement, but if they are explicitly granted an x or y velocity, they will pass by there a lot when updating the instance function is called in the timeline panel.

    Then in my file Test.fla spark, I have a small shape in a MovieClip called Spark.  In the properties of binding of spark, I chose to export for ActionScript and export in first frame.  The class is called Spark and the Base class is the particle.  For testing purposes, I dropped an instance on the stage and called spark.  Then in the layer actions in the first image (the timeline is just the spark layer and the layer actions, a long frame each with no "stop();" so it should run forever), I have included the following code:

    spark.xVelocity = 5;
    spark.yVelocity = - 1;

    function updateSpark(event:Event):void
    {
    Spark.Update ();
    }

    addEventListener (Event.ENTER_FRAME, updateSpark);

    Is what it seems that this should be on every Flash ENTER_FRAME should call updateSpark, which is a function that handles the event update() for the instance of the spark which is a movieclip instance that has an update event that moves x and y of the position of their relative velocity variables.  It seems simple enough to me, but when I ctrl-enter to test the movie, I get the following compiler 3 errors:

    Particle.As line 1: 5000: the class 'Particle' must subclass 'flash.display.MovieClip' because it is linked to a symbol in the library of this type.

    Particle.As line 7:1071: syntax error: expected a keyword (for example function definition) after the public attribute, not xVelocity.

    Particle.As line 7:1084: Syntax error: expecting rightbrace before the semicolon.

    Since I imported flash.display. * and declares the class public particle so it extends MovieClip I have no idea why I get this error of 5000.  I see this issue come up a lot when searching Google and forums, but none of the resolutions that I could find have suggested an approach that applies to me or solve the problem.

    Any help to fix this would be appreciated.  I enclose a zip of the FLA a files as described above in case there is something in the settings of publication that I messed up inadvertently.  In addition, if you can get this to compile without error, then the problem may be due to my Flash CS3 Pro install which will result in the problem isn't with my code and start looking at me in a different direction.

    Thank you

    Scott

    Yes, 'var '.

Maybe you are looking for

  • What happened to link previews in Firefox 25.0.1?

    Firefox versions prior to the current one (25.0.1 for Windows) displays a pop-up URL when you hover your mouse over a hyperlink in a Web page. This feature seems to have disappeared (or disabled) on my Windows 7 laptop, but it still works on my Win X

  • How to remove a name from uninstall?

    Hello everyone. I have a problem with a program that I want to delete but I couldn't remove it the normal way by uninstall so I decided to remove it manually. I removed it, but the name of the program is still stuck in uninstall thingy I have no idea

  • Re: Very slow laptop

    Hello, this has probably been posted CIHI thousands of times, but can t find a thread that connects directly to my problem. I have a Toshiba basic laptop that is only 5 months old, but it's really slow. When I turn the laptop on, it takes about 15 mi

  • How many times a key can be used?

    I want to test a key I bought on eBay and want to ensure proper operation with the iso of windows 8, that I downloaded but I don't want to use my activation because I want to install it on my mac

  • Clock loses time to computer HP G62 laptop but battery OK

    Clock keeps losing time. All messages say that the battery must be faulty, but when I run the battery (with or without the external power supply) check the status is always good. What is the reliability is the battery check and he would take the flaw