C in XCODE build problems with VISAS / NOR


I'm developing a C program to connect with my oscilloscope Tektronix. I inherited this project from a friend (who is currently in the secret), so I can't talk to him on this subject.

On my system: I'm running OS X 10.8.4, development in XCODE 4.6.3. Initially, I had problems with NI-VISA 5.3, and they are repeated when I upgraded to 5.4 (I thought the upgrade would solve the problem).

It's also a position of the cross. I posted on the forum of developers to Apple without success (https://discussions.apple.com/message/22681139#22681139). If my problem is solved it there first, I'll post the solution here as well. I don't take sides.

In fact, my problem is that my program will not be built because of a linker issue. I use the functions of the NI-VISA 5.4 for OS package X 10.8. However, the linker can't find the correct functions for my system:

Undefined symbols for x86_64 architecture:

"_viClose", referenced from:

_setupVI in oscilloscope.o

_getData in oscilloscope.o

_closeInstr in oscilloscope.o

"_viOpen", referenced from:

_setupVI in oscilloscope.o

"_viOpenDefaultRM", referenced from:

_setupVI in oscilloscope.o

"_viRead", referenced from:

_setupVI in oscilloscope.o

_getData in oscilloscope.o

"_viStatusDesc", referenced from:

_setupVI in oscilloscope.o

_getData in oscilloscope.o

"_viWrite", referenced from:

_setupVI in oscilloscope.o

_getData in oscilloscope.o

LD: symbol not found for architecture x86_64

Clang: error: the linker command failed with exit code 1 (use - v see invocation)

This is all pretty basic VISA functions. I struggled in just, including the appropriate header file


did not work. When I went to the detailed shape, it worked:

#include "/ Library/Frameworks/VISA.framework/Versions/A/Headers/visa.h".

However, then the problem began to occur that I have now - links in the object editor cannot find the code for the functions of the VISA. I tried to change build architctures x86_64 for only x 86, without success. I am currently building in i386 x 86. I also tried (to the title of the Phases of construction-> link binary with libraries) to link the VISA.framework to the project, but this simply gives the error of the linker 'not found VISA framework '. I also tried option-clean.

I feel I am missing something very obvious. I'm still operating under the notion that either NI-VISA has not been installed in the correct location, or that my configuration settings are incorrect.

Does anyone have any idea to lend? I searched through various forums for help for almost 2 days now, with nothing doesn't.

resolved cross wire https://discussions.apple.com/message/22682742#22682742

copied settings from: Instruments/NI-VISA/Examples/C/ExamplesProject.pbproj National

done with:

I ended up using the final settings:



Build the Active Architecture only: No.

Valid architectures: i386, x86_64

Search paths

Unframed search paths

No library search path

Build Phases

Link binary with libraries: VISA.framework

I think it's now/Library/Frameworks in the search paths, what was causing my problems when you try to link binary.

Thanks to xnav and Frank (had the idea of original law, which I tried but just the wrong way).

Tags: NI Software

Similar Questions

  • PhoneGap build problem with Graple, Pushplugin, and Safariviewcontroller

    Hi all

    I am facing a few problems these days when I Isaiah to compile my app for Android. The following Exception exhibits after the build:

    : preDexRelease

    : dexRelease


    com.android.dex.DexException: multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$ AccessibilityServ iceInfoVersionImpl;

    at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:591)

    at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:546)

    at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:528)

    at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:164)

    at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)

    at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:504)

    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)

    at com.android.dx.command.dexer.Main.run(Main.java:277)

    at com.android.dx.command.dexer.Main.main(Main.java:245)

    at com.android.dx.command.Main.main(Main.java:106)


    But last week, all was fine. In one of my tests, I noticed that if I remove one of these plugins below, the build works:

    < name of the ditch: plugin = "cordova-plugin-safariviewcontroller" source = "MNP" / >

    < name = "com.phonegap.plugins.pushplugin plugin" spec = "2.5.0" source = "CDP" / > "

    Some people on the internet told me that I have to remove the support for v4. Just as this topic on stackoverflow: android - multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat - battery on...

    But is it possible to exclude dependence on config.xmlv4, so I can build on the website phonegap without problems?

    Thank you for your attention.


    Source plugins bmp - they are old and obsolete. Use instead of the MUSEUM: phonegap-plugin-push

    In addition, SafariViewController should be does not interfere somehow, since it is not supported on Android (it is iOS only).

    Also, make sure to pin your app to a specific version of BMPS. See: Adobe Build PhoneGap

  • Problems with secondary after building the application .exe

    Hi people,

    as I like am a self taught Newbie on LV and TestStand I have some problems with the construction of an exe file.

    I don't know if it is a question of LabVIEW and TestStand, so I posted this question in the two Forums.

    I use the interface simple chart that came with Teststand and added a secondary. TestStand is supposed to open the called VIs dynamically in this secondary.

    I used the code from the tutorial respective http://zone.ni.com/devzone/cda/epd/p/id/6278

    Everything works fine until I build the application. The screws are then open in pop-up windows clean AND in high school, but only the popup version is usable.

    I hope that I am too dumb to find the answer and that there will be a quick solution.

    If you have built the exe in LabVIEW 2009 selected in the configuration of your adapter TestStand and LabVIEW 2009 and your screws have been opened and saved in 2009 LV?

  • I get the message: Photoshop has encountered a problem with the display driver and has temporarily disabled GPU enhancements. Visit the Web site of the manufacturer of the video card for the latest version of the software.

    Photoshop has been giving me the warning:

    Photoshop has encountered a problem with the display driver and has temporarily disabled GPU enhancements. Visit the Web site of the manufacturer of the video card for the latest version of the software.

    Also other programs are affected.  I suspect a recent download of Adobe.  Can anyone HELP.

    No, it has nothing to do with updates of Adobe. There is a problem with your video card driver.

    Go directly to the Web site of the manufacturer of the GPU for updates (not Microsoft, not a System Builder).

  • Problem with Web Builder and MySQL connection


    I created a web service VI (see picture attached) to connect my Web Builder application with a MySQL database. The problem is that I get nothing on my exit signs during the call to the web service VI.

    Some tests I've done:

    (1) this web service VI works perfectly (I mean indicators 'value', 'status' and 'data_hora' give the desired result) when the VI run directly through LabVIEW. MySQL connection and my VI are OK...

    (2) I know my web service VI was successfully built and deployed because the indicators give me some value if I sign something for them other than my SQL output

    (for example: if I put a string constant "Hello" on indicator "valor" I get "Hello" when calling the web service VI)

    I suppose that the database connectivity kit is not supported when a VI is integrated with a web service VI. In my case, kit screws are inside the subVIs 'start', 'exec 2d' and 'stop' showed in the picture as an attachment.

    Any idea?

    Thank you


    I'm using LabVIEW 2001 Wesley, but I solved my problem.

    It was just a MySQL data source problem: I just had to add my info DB through C:\Windows\SysWOW64\odbcad32.exe.

    Thank you


  • problem with loopback test base with NOR-6008

    I recently started to use DAQmx in c# .NET 4.0 with NOR-6008 USB DAQ. I tried a loopback test by connecting output to an analog input analog and tried readign the signal from the output to the entrance but did not send the signal (or maybe a problem with the code). The analog input readign reads a random value rather than the value entered by the user for the output. I connected ao0 and ai3 on data acquisition. Here's the code.

    private void button1_Click (object sender, EventArgs e)


    Task analogOutTask = newTask();

    AOChannel myAOChannel = analogOutTask.AOChannels.CreateVoltageChannel ("Dev1/ao0", "myAOChannel", 0, 5, AOVoltageUnits.Volts);

    AnalogSingleChannelWriter writer = newAnalogSingleChannelWriter (analogOutTask.Stream);

    Double analogDataOut;

    analogDataOut = Convert.ToDouble (AnalogOut.Text);

    writer. WriteSingleSample (analogDataOut, true);


    Private Sub button2_Click (ByVal sender As Object, EventArgs e)


    Task analogInTask = newTask();

    AIChannel myAIChannel = analogInTask.AIChannels.CreateVoltageChannel ("Dev1/ai3", "myAIChannel", AITerminalConfiguration.Differential, 0, 5, AIVoltageUnits.Volts);

    AnalogSingleChannelReader reader = newAnalogSingleChannelReader (analogInTask.Stream);

    Double analogDataIn is reader. ReadSingleSample();

    AnalogIn.Text = analogDataIn.ToString ();



    I built an application using your code (with task.verify) and it works beautifully.

    Have you tried different channels of inputs/outputs?


  • With Fuzzy Toolkit App Builder problem


    Today, I wanted to build an application (via LV2009) with functions of 'PID and Fuzzy Control Toolkit'.

    Now the app Builder is looking for a type definition in vi.lib (as shown in the photo), but it does not find the CTL file - but the path used for research is correct! Then I do the search manually, tap the CTL asked in the right place (and with the name correct, of course), and the build will succeed.

    What is happening here?


    There seems to be a problem with the lvlib of fuzzy logic tool. I filed the #348498 against her CAR.

    This issue is obviously for 2009 has been and remains in the LV 2011 SP1.

    hope this helps,


  • M1000e with M610 Blade. iDRAC6 problems with the upgrade of the firmware 3.50 (Build 4) - "image downloaded missed the check" error

    I have the blade that is a M610. its current 3.30 iDRAC6 Firmware version (Build 17), his version of BIOS is 6.0.7. I am trying to upgrade the firmware to 3.50 iDRAC (Build 4). I am upradging by the MCC on the M1000e chassis. I choose the slot of in that the blade is and then start the IDRAC GUI. I choose firmware update and select the firming.imc file that I used successfully on some other M610 blades. After about 30 seconds, he returned with the following error.

    The uploaded image has no verification


    I came across the same problem (with a refurb M610, iDRAC firmware has been 2.20).

    I tried to upgrade the iDRAC6 firmware to 3.60 via the web interface of iDRAC6 and it was a no go.

    I tried several browsers (chrome and firefox) and same problem each time.
    I tried to go to firmware (as shown in the accompanying note) 2.31 instead of 3.60 and same question every time.

    I finally managed to update the firmware of the iDRAC6 by upgrading the web interface M1000e and not in the iDRAC6 web interface.

    It worked the first time (using Chrome).

  • problems with my application Simulator in Builder 4.6


    I just all of a sudden on a problem that I can't seem to understand.  I can build a Release version of my application without problem, but try to do some tests on the Simulator annoys me instant app closes with 8 error on the Simulator and this message in flash builder:

    Failure of deployment: Info: request shipment: launch
    Info: Action: launch
    Info: Launch of com.babware.CribbageCompanion.debug.testDev_anion_debugcffb4b91...
    Info: done

    In most of my research, it has had problems with Debug chips, but I have regenerated and made sure they are all valid on my device and in Flash Builder.  Any other ideas?

    problem was the Simulator. Tried to hang my PB appear as a target and everything works fine. * shrug *.

  • Adobe InDesign CC 2014 Custom Panel Built With Extension Builder - problem: cannot tab field one entry to another; Hit the tab hides instead all pallets; Is there a solution? It didn't happen in Adobe Indesign CC

    Adobe InDesign CC 2014 Custom Panel Built With Extension Builder - problem: cannot tab field one entry to another; Hit the tab hides instead all pallets; Is there a solution? It didn't happen in Adobe Indesign CC

    This should be corrected in the next version.

  • also problems with the visa information

    Like many others I'm not able to update my VISA information.

    I don't know why it was changed and chrome, firefox and IE tell me that there is a problem with the Adobe. So please check it for me...

    BTW the support chat is really really really disappointing. think that they have no idea what they are talking...

    Hi FrankDelporte,

    Please follow knowledge base article: http://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting-creative-cloud.html and try to update again.

    If still the same issue please let me know and I will arrange you a reminder of our experts.

    Kind regards

    Romit Sinha

  • Problem with DPS App Builder and iPhone

    Anyone else see a problem with launcing is a 'DPS App Builder"App on the iPhone 4S. The app will launch, shows the splash screen and then close. Closing the application or the phone and launch new doesn't make any difference. He arrived with version 22 or 23. The same app launched on an iPad 2 has no problem.

    Anyone else seeing this?

    Ok. I built a new version of 22 App from scratch rather than update the 21 to 22 version I already had my DPS App Builder. This time it worked, no crash at launch on the iPhone. Also downloaded an edition in the sandbox and it worked fine.

    I would caution anyone to spend 21 to 22/23 with this new version of the App Builder. Take the extra few minutes and build it from scratch.

    Thanks for the pointer to Nathan.

  • Problems with tutorial building a website with Web Premium CS4 – part 2: creating a local site

    I have problems with

    Building a website with Web Premium CS4 - part 2: creating a local site

    Since after taking all the steps in the tutorial and choosing Localhost from the menu to open the homepage of the Apache server in a web browser, IIS7 opens instead of the home page of the Apache server...

    I use Google Chrome as the default webbrowser...

    Looks like you have IIS as the Web server 'by default'.

    Try this http://localhost: 8080

    If that takes you to the Apache Web server, then you must set it as your default.


    News added: it is possible that both are listening on port 80 and IIS is a winner. To reconfigure IIS, open it and site web by default, you must change the site link. Http must be on port 8080.

    If Apache is already set to port 80, then you will not need to do anything else. I think that is fair. I don't know how to set up Apache to listen on port 80 if it is defined on port 8080. I do not have to look at.

    Make sure that you stop and restart your web services.

  • Problems with the resource of labview execution 2 visa

    I use two loops in a labview code all-in - connects to a motor controller and other is used to connect to a multimeter agilent. As soon as I run this VI, the loop to connect to the controller stop working and only used to configure agilent machine works. If I remove the second loop (connecting to the computer of agilent), the code works fine. I guess it's a problem with the execution priority. Could you please review the attached code and let me know any problems with it.

    COM1 and Com3 share an interruption.

    Go to the BIOS of the computer and set the port to Com3 to the Com2 port, then they will be on their own interrupt and see if that helps.


    COM1 and Com3 share IRQ3

    COM2 and Com4 share IRQ4

  • Error message: this isn't a problem with intellectual property. Board of Directors, but rather with your SQL Server when you visit a Web site.

    Original title: an error occurred in SQL server?

    Hello, I just wanted to go to this site, but this error pops up: error SQL

    An error occurred in SQL server:

    This isn't a problem with intellectual property. Board of Directors, but rather with your SQL Server. Please contact your host and copy the above message.

    «Back to index »

    Please help me, I just moved my computer so I had to disconnect from the internet, but now he has problems.

    Is the site I tried to go to: http://www.minecraftforum.net/topic/227822-166-millenaire-npc-village-076c-duplicate-villager-fix/

    Hey Brainiac,

    1. are you encounter problems with this site?

    2. are you able to connect to this site from a different computer?

    3. were you able to connect to this website before?

    4. you remember to make changes to the computer before this problem?

    The problem seems to be, with the site that you are visiting. You can check if you can access the site from another computer.

    Hope this information is useful.

Maybe you are looking for