Undefined external error messages compiling in Borland C++

I'm using:
Win95 machine
Ni-daq 6.9.1
NI PCI-6025e DAQ card
Borland C++ Builder 5.0.12.34
When I try to compile my C project I get the following error:
[Linker Error] Unresolved external 'DIG_Out_Prt' referenced from
C:\SCOTT\DLL_CODE\ELLIPSE_TEST1\WRITETOPB.OBJ
Here is the code I'm attempting to build:
#include
#include
#include
#include "c:\Program Files\National Instruments\Ni-daq\Include\nidaq.h"
__declspec(dllexport) long portWrite(void);
long portWrite(void){
long value;
long status;
value=(0x0001);
status=
DIG_Out_Prt(1,2,value);
return status;
It is some very simple code just to test that I can get these ni-daq functions to work in
a dll that I can then access from LabVIEW.
I found a knowledgebase article at the following location which seems to address my problem (but either I can't follow it or it just does not solve the problem):
http://digital.ni.com/public.nsf/ 3efedde4322fef19862567740067f3cc/ c1c5214a711a57
a2862562bb00067373?OpenDocument
Another thing that I found strange is that in nidaq.h the function is not DIG_Out_Prt
(as stated in the user manual, and the installed example) but rather DIG_Out_Port. I don't understand the discrepancy.
Any insight or help with these matters would be greatly appreciated.
Thanks,
Scott Allen

The document (0HMI568Z) you suggest is the one that I "specifically" stated in my question as the article which did not help my situation. Please read the post in its entirety before offering any suggestions. As this post has now been answered it is unlikely that anyone else who may know what's going on will take the time to look at it. This is unfortunate as I really need to figure out the solution to this problem.

Similar Messages

  • Undefined external error messages compiling in Borland C++ IDE

    I'm using:
    Win95 machine
    Ni-daq 6.9.1
    NI PCI-6025e DAQ card
    Borland C++ Builder 5.0.12.34
    When I try to compile my c project I get the following error:
    [Linker Error] Unresolved external 'DIG_Out_Prt' referenced from C:\SCOTT\DLL_CODE\ELLIPSE_TEST1\WRITETOPB.OBJ
    Here is the code I'm attempting to build:
    #include
    #include
    #include
    #include "c:\Program Files\National Instruments\Ni-daq\Include\nidaq.h"
    __declspec(dllexport) long portWrite(void);
    long portWrite(void){
    long value;
    long status;
    value=(0x0001);
    status=DIG_Out_Prt(1,2,value);
    return status;
    It is some very simple code just to test that I can get t
    hese ni-daq functions to work in a dll that I can access from LabVIEW.
    I found the knowledgebase article at this address (but either I can't follow it or it just does not solve the problem):
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/c1c5214a711a57
    a2862562bb00067373?OpenDocument
    Another thing that I found strange is that in nidaq.h the function is not DIG_Out_Prt (as stated in the user manual, and the example) but rather DIG_Out_Port. I don't understand the discrepancy.
    As well I'm not sure if I should be configuring the port in my C code if I've already configured it in MAX.
    Any insight or help with these matters would be greatly appreciated.
    Thanks,
    Scott Allen

    I can tell you that you do need to configure the board programmatically, not in MAX. The current C DAQ library does not support MAX configuration.
    This forum is for discussion of Measurement Studio for Visual C++ and not for general C++ discussion. You would get a better response to this question if you posted it in the Multifunction IO or Digital IO section of Developer's Exchange.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • Build Error Message "Compiler File Error"

    Whenever i try to burn a DVD in DVD studio pro i get this error message:
    "Starting DVD Build UNTITLED_DISC...
    Compiler File Error
    Build cancelled
    Formatting finished.
    Building was not successful. See log."
    This occurs no matter how big my project is, how many files i use, or what format. I thought originally the video files i were using to burn were corrupted, but i have since tried many different video files and many different formats. This message continues to come up. I have even reinstalled DVD Studio Pro and nothing has changed.
    I don't have any clue what's causing this message or how to fix it???
    I WOULD REALLY APPRECIATE THE HELP! THANK YOU!

    keentave wrote:
    Thanks for the help. I figured out the problem or at least one of the causes. I deleted the update: user->library->preferences->com.apple.dvdstudiopro.plist and it fixed it.
    That does not delete the update, it is deleting the preferences (which is one of the things always to do when things go nutso

  • Why does cool edit pro saying undefined external error when i try to preview my waves plugin

    please help

    Cool Edit Pro as far as I recollect could only use Direct X audio plugins. Perhaps your Waves plugins are VST which Cool Edit didn't support.

  • Why is 1.5 giving an error message on opening.wav files?

    I have recently bought an Olympus VN-8500PC Digital Voice Rrecorder but when I try to open the .wma files it creates into Audition I get an output device error message "undefined external error" the files will open into WMA just fine. I am running Windows 7 but have been lucky so far in that Audition 1.5 is fine.

    AA1.5 should be able to open these files without difficulty, certainly. You have several options here - firstly, try reinstalling it; this has been known to cure all sorts of problems that on the face of it, don't make sense. Secondly, post a small file somewhere so that somebody else can try opening it, because it's just possible that it's a non-standard file (although it shouldn't be). Thirdly, it's possible that it is a legitimate file, but the header isn't recognised correctly. To test this out, try opening it as a RAW file and then telling Audition that it's actually  WMA data - if it opens then, it's definitely the header at fault.

  • Undefined is not an object error message

    Hi there.
      I'm just new to scripting in illustrator.  actually, i'm new to illustrator too!
    but i do have a programming background.  right now, i'm just trying to familiarize myself with scripting for illustrator files.
    i have an svg file that was created by our artist.  i've opened that file in illustrator.  i've also opened a sample javascript from adobe called "makelineargradient" and i'm trying to run this script against the svg file.
    it worked fine the first time. but on subsequent compiles / runs, i'm getting the error message "undefined is not an object"
    the line it's failing on is line 1:
    if (app.documents.length > 0)
    can someone point me in the right direction?  I'm using the extendscripts tool to open and run the javascript file.

    Be sure that you are targeting Illustrator, and not the Extendscript application (there is a dropdown menu at the top left.). I'll bet that yours is still set to Extendscript (it will default to this when opened.)
    Also, you can add the line:
    #target illustrator
    at the beginning of the code to set Illustrator as the target.

  • ERROR MESSAGE: Why do I get "'VarHTMLHelp' is undefined" error message?

    I'm using Robohelp 10.
    I compile my HTML help file after adding a few new topics. The file compiles without any error messages. But when I open the help file and try to perform a search, I get the "'VarHTMLHelp' is undefined" error message.
    How can I get rid of this?

    It seems something is going awry during compile. Do you see any errors when creating the CHM?
    Greet,
    Willam

  • Error message appear when I compile the HelloWorldImp.c in JNI tutorial

    I have followed the JNI tutorial to study JNI.
    When I followed 'Step 5: Create a Shared Library' to compile the HelloWorldImp.c, following error message appears:
    $gcc -g -I/usr/local/java/include -I/usr/local/java/include/solaris \
    HelloWorldImp.c -o libhello.so
    /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function `_start':
    /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18):undefined reference to `main'
    collect2: ld return 1 exit status
    What's the problem?

    gcc was trying to link your code into a runnable application. This is the default behaviour. Hence, it was looking for main() which is the entry point in a c/c++ application. By telling gcc to compile a shared library instead, with the -shared option, the linker did not try to produce a runnable program, and hence (that two hence's now, sorry) did not look for the main() function. Therefore (this is getting too formal!), there is no need to provide a main() function in a shared library.

  • Undefined error message in email home page

    Hi folks!
    I get an 'undefined' error message - yes that's what it says! - when I check for new messages in mail.
    if I click ok, i get sent to the options tab and possibly to the external accounts bit, making me thing that I have a problem with my pop forwarding from another account. However, I do get emails from this account being forwarded and displayed correctly.
    uh?
    So the only thing I can seethat is not filled in is the password box. I type in my <correct> password and hit save, the password dissappears and nothing seems to happen - exceopt the 'undefined' message dialogue box again when I check email.....
    here it is:
    Any ideas Brains?
    Cheers
    John

    Refinedtita, thank you for sharing your concerns about your Droid Razr. I'm sad to hear that the only thing you like about the phone is the Gorilla Glass, because this is a great device. As the other forum members have posted, your email account seems to be setup strangely. You say you have all three email accounts synced so that the same emails go to each account? Do you have the emails forwarded from one email account to the others? Do your emails also show duplicated if you login to each Hotmail or Gmail account from your Browser or a computer?
    I would suggest removing email accounts also, starting with the two Hotmail accounts since removing the Gmail account generally requires a hard reset. If you have any forwarding setup on your home computer, remove that setting.
    Let us know if you need additional assistance.
      MarquiaF_VZW
    Follow us on Twitter @VZWSupport

  • I tried to compile the SDL port, but i got an Undefined sym error again..

    I tried to compile the SDL port, but i got an Undefined sym
    error again, like in an other project yestarday.. Maybe the problem
    is not with alchemy but me? Any Tips?

    You just use FlashCS4?The first thing you need to check
    quote:
    Posted By: joesteele (Member)
    Alchemy is a technology preview and its features are not
    supported in the FlexBuilder or Flash authoring environments yet.
    This issue looks like it is caused by interaction between the Flash
    CS4 compilers optimization pass and Alchemy-specific bytecodes.
    Checking the "Export SWC" option skips this optimization pass and
    avoids the problem. Be aware that this issue impacts other tools
    which can generate SWCs containing Alchemy-specific bytecodes (e.g.
    Haxe).
    Describe the problem in more detail, you can copy and paste the
    error message directly as it is.

  • I moved itunes file to external hard drive and want to move the file on my pc to recycle bin. When I move i get an error message that it cannot delete ituneshelper.dll access is denied. Can I move that file to the recycle bin?

    I am trying to free up space on my pc and moving itunes files to external hard drive. I have followed instructions and believe I have file copied to new drive, but I am having trouble moving file to recycle bin as the instructions say. I am getting the following error message: cannot delete ituneshelper.dll:access denied, make sure disk is not full or write protected and file not in use. I know the file is not in use when trying to move. Any help would be most appreciated. I am on Windows XP.

    Yes. And you should not have moved that folder. Put it back. To move your iTunes library move the folder from User's Music.
    tt2

  • External Hard drive/Time Machine backup error message

    On a sidenote, I posted a question a week ago about what external hard drive would be compatible with my Macbook, and I so happened to get a WD My Passport Studio hard drive as an unsuspecting gift, so I didn't have to buy one.
    Anyways, I started the backup on this hard drive and I had an error message: "Unable to complete backup. An error occurred while copying files to the backup volume." I searched this on the Apple Support Communities and found that I wasn't the only one who had this problem. So, I came upon one discussion that suggested downloading Time Machine Buddy (link:http://pondini.org/TM/A1.html) (link that prompted me to download: http://pondini.org/TM/C3.html). I downloaded it and found out that the error was occurring in my Library folder, specifically in the folder entitled "db" in the "Receipts" folder. There's one file in the "db" folder entitled "a.receiptdb" <----can someone please explain what the heck this is??? Lol. Anyways, I decided to exclude the whole "Receipts" folder from being backed up and now my external hard drive is backing up my files fine. My MAIN question is this: What is wrong with my receipts folder that is causing the error?
    P.S. here are the error messages in the Time Machine Buddy log:
    Error: (-36) SrcErr:YES Copying /Library/Receipts/db/a.receiptdb to (null)
    Error: (-36) SrcErr:NO Copying /Library/Receipts/db/a.receiptdb to /Volumes/My Passport Studio/Backups.backupdb/Josh Brew’s MacBook/2012-01-29-162450.inProgress/D9F83053-7FE1-4EBE-991A-F400C35D37CC/Macin tosh HD/Library/Receipts/db
    Stopping backup.
    Error: (-8062) SrcErr:NO Copying /Library/Receipts/db/a.receiptdb to /Volumes/My Passport Studio/Backups.backupdb/Josh Brew’s MacBook/2012-01-29-162450.inProgress/D9F83053-7FE1-4EBE-991A-F400C35D37CC/Macin tosh HD/Library/Receipts/db
    Copied 246 files (277.4 MB) from volume Macintosh HD.
    Copy stage failed with error:11
    Backup failed with error: 11
    As you can see, iy is located in the "db" folder. I have no idea what's wrong. Thank you for your time! It is MUCH appreciated.

    The connection to 10.6.7 may just be a coincidence.  I had a similar problem with a disk and was about to throw it out but decided to try a different USB cable.  That fixed the problem and the drive is still in use.
    Try a new cable if you have not already done so.
    Dave

  • When I try to log on to my ichat I get the error message "An undefined AIM socket error has occurred.". How do I resolve this?

    The error message "An undefined AIM socket error has occurred." comes up when I try and log on to ichat.

    I have the same issue. Does anybody know why this has happened

  • Problem with JDK 6 update 5 - Error Message says cant find java compiler

    Hi i am a complete beginner to programming and i am having trouble with the latest java development kit. jdk 6 update 5.
    The problem is i have set the path and the program cant find my compiler.
    I have installed the latest java development kit 6 update 5 on my windows xp machine.
    I have created a simple program as shown below:
    class Hello
         public static void main(String[] args)
                   System.out.println("Hello from java");
    saved the file to my desktop as Hello.java
    I have set the path variable like so:
    Go to control panel then click system icon then click advanced tab then click environmental variables.
    Now in system variables the path is shown as this - %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Java\jdk1.6.0_05\bin;C:\Program Files\QuickTime\QTSystem\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\
    I then add this to the end;C:\Program Files\Java\jdk1.6.0_05\bin
    This is the location to the things like compiler, applet viewer etc.
    No in the command prompt i type javac Hello.java and i get this error message:
    C:\> javac Hello.java
    javac: file not found: Hello.java
    Usage: javac <options> <source files>
    use -help for a list of possible options
    The jdk is installed properly im sure but it can find my compiler.
    What mistake have i made in setting the path because im guessing that is related to the problem?
    Could someone out there please help me?
    Thank You
    Rafeeq

    saved the file to my desktop as Hello.java
    C:\> javac Hello.javaC:\ is not the desktop!
    The jdk is installed properly im sure but it can find my compiler.Of course it can! It just can't find the file you are trying to compile, because that's not in the root directory.
    I suggest you make a directory C:\java and save your source file there rather than on the desktop. In the command prompt, enter cd \java to make it the current working directory and then enter javac Hello.java.
    @Pravin: The question is about compiling, not running. CLASSPATH has nothing to do with this problem.
    db

  • Error Message: Number is not in external Interval (Testing Schedule)

    Hii ,
    Iam working on Stability study process. I have maintained stabity test with materiial (QS) & performed my test upto Initial test of Inspection lot. But when i click create Testing Scheudle in the Notification (QM02) , system asks for testing schedule data for
    Maintenane strategy, scheduling period.
    On clciking create testing schedule , system throws error message "Number is not in external interval". I have maintained all the prerequite setting on number range in following spro path stability study>testing schedule for stability study> Category--> no range.
    For Group ST   600000000- 6999999999 for Intenal & 70000000-7999999999 for external. But still iam facing with error message ""Number is not in external interval".  It throws message no "IP324" . Even I had cross checked with maintenance setting, but error message remains . How to resolve this issue?
    with regards,
    K.Lokesh.
    Edited by: Lokesh K on Mar 11, 2010 1:13 PM
    Edited by: Lokesh K on Mar 12, 2010 5:55 AM

    Hi Lokesh,
    did you actually enter a number ( i.e. 70000001)?
    Usually Stability studies are created using the external number range so that ringing names can be used for the studies:
    Example:
    Material: 000000000000000001  acetylsalicylic acid
    Stability study: ASA1
    I hope that this information proves usefull.
    Regards
    Isabelle

Maybe you are looking for