Fighting linker errors when building Qt app manually

Hi all,
some time I was using Qt and building apps in IDE (Code::Blocks). Now I need to find a way to build manually - an app must be built on a machine without IDE or anything similar. I followed official manual, but project failed at linking. I'm now using test project, it consists of two files, and still fails:
main.cpp:
#include <QApplication>
#include "header.hpp"
int main(int argc, char* argv[])
QApplication app(argc, argv);
TestClass asdf(0);
asdf.show();
return app.exec();
header.hpp:
#include <QWidget>
#include <QtGui>
class TestClass : public QWidget
Q_OBJECT
public:
TestClass(QWidget* parent);
protected:
void paintEvent(QPaintEvent* event);
TestClass::TestClass(QWidget* parent) : QWidget(parent)
setWindowTitle( tr("Testing window") );
resize(200, 200);
void TestClass::paintEvent(QPaintEvent* event)
QPainter ps(this);
ps.drawLine(10, 10, 100, 100);
Then I ran qmake -project; qmake test1.pro; make. The following error occured:
moc_header.o: In function `TestClass::paintEvent(QPaintEvent*)':
moc_header.cpp:(.text+0x80): multiple definition of `TestClass::paintEvent(QPaintEvent*)'
main.o:main.cpp:(.text+0xc0): first defined here
moc_header.o: In function `TestClass::TestClass(QWidget*)':
moc_header.cpp:(.text+0xf0): multiple definition of `TestClass::TestClass(QWidget*)'
main.o:main.cpp:(.text+0x0): first defined here
moc_header.o: In function `TestClass::TestClass(QWidget*)':
moc_header.cpp:(.text+0xf0): multiple definition of `TestClass::TestClass(QWidget*)'
main.o:main.cpp:(.text+0x0): first defined here
collect2: ld returned 1 exit status
make: *** [test1] Error 1
It generated the following test1.pro:
# Automatically generated by qmake (2.01a) Fri Sep 10 16:42:10 2010
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
# Input
HEADERS += header.hpp
SOURCES += main.cpp
It's quite strange since in Code::Blocks it builds flawlessly. Is it error in code, or configs need to be corrected?

falconindy wrote:Add #include guards to header.hpp
Include guards made nothing. Still the same error.
stqn wrote:
I don't know why it builds in Code::Blocks, but I would do as the error message suggests and move the functions definitions from the header to a cpp file.
Or move them into the class declaration.
It solved the problem, but I simply can't understand, why definitions in header are causing an error. Basically it is correct, since in C99 aren't any rule rejecting it, only a recommendation. E.g., Boost is made the same way - definitions are put in headers.

Similar Messages

  • Link errors when building with librfc.a from RFCSDK 7.00 for z/OS 32 bit

    There is a disparity between the documentation and the contents of the RFCSDK for z/OS 32 bit.
    The documentation included with the SDK is for older versions of the RFCSDK and discusses the librfc dll and librfc.x sidedeck file. However, the new SDK no longer includes the rfclib dll and rfclib.x sidedeck file. Instead, it includes the librfc.a library file.
    Simply compiling and linking with librfc.a is not enough. Numerous link errors occur. It appears that an SAP specific define must be required in order to properly decorate rfc functions. Below is an excerpt of the link errors I am receiving.
    Any help on this issue would be greatly appreciated.
    Thanks,
    Bob
    IEW2456E 9207 SYMBOL ItDelete UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM
    THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL RfcClose UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM
    THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL RfcReceive UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM
    THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL RfcListen UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM
    THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL RfcCall UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE
    DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL RfcGetAttributes UNRESOLVED. MEMBER COULD NOT BE INCLUDED
    FROM THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL RfcOpenEx UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM
    THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL ItCreate UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM
    THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL RfcLastErrorEx UNRESOLVED. MEMBER COULD NOT BE INCLUDED
    FROM THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL RfcInstallStructure UNRESOLVED. MEMBER COULD NOT BE
    INCLUDED FROM THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL ItGetLine UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM
    THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL ItFill UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE
    DESIGNATED CALL LIBRARY.

    Here is a link to the info on how to access the 4200 set up pages and how to do Port Forwarding with it
    http://portforward.com/english/routers/port_forwarding/Siemens/4200/iChat.htm
    Use the Access info and then see if you have it doing UPnP to open the ports.
    If it is then the Port Forwarding does not need setting.
    Next, if you did originally set it to do Port Forwarding this should have pointed to an IP (The one your computer has/had)
    Check the Port Forward that is set is pointing to the IP the computer has now by Looking in System Preferences > Network
    QUite a way done the log your end suddenly switches the port it sends the SIP part of the invite on
    INVITE sip:user@rip:61042 SIP/2.0
    Via: SIP/2.0/UDP sip:60442;branch=z9hG4bK672a7283709f480e
    Max-Forwards: 70
    To: "u0" <sip:user@rip:61042>
    From: "0" <sip:user@lip:16402>;tag=2100237526
    Call-ID: 5c6e32e2-2788-11dd-904a-8c2872d74012@lip
    CSeq: 1 INVITE
    Contact: <sip:user@sip:60442>;isfocus
    User-Agent: Viceroy 1.3
    Content-Type: application/sdp
    Content-Length: 744
    This is not an iChat port and it messes up where iChat then says to send the Video and Audio data.
    The log from the other end implies the ports are not even open.
    10:42 PM Wednesday; July 9, 2008

  • Pro*C Link Errors when Building with VC++6

    After a successful precompile with the Oracle precompiler for Pro*C, and a successful compile using Visual C++ 6.0, I could not build the executable, and got the following error:
    Linking...
    b110a_1.obj: error LNK2002: unresolved external symbol _sqlcxt
    Debug/b110a_1.exe: fatal error LNK1120: 1 unresolved externals
    Error executing link.exe
    Any help would be greatly appreciated.
    Ara Jeknavorian

    Did you inlcude the oraSQL9.LIB into the project files?

  • Icon path restricted error when building release version for ipad3

    Hi,
    i get the following error when building the release build ipa file for ipad 3: "The path icon.png is restricted. If you were trying to package Icon.png you should correct the case."  In debug mode everything works. My icon is under assets folder and added in the app-xml with:
    <icon>
    <image72x72>assets/icon_72.png</image72x72>
    </icon>
    Did I missed something in configuration? Seems to be that the problem is known but cant find a solution for it. If i try to packegae per command line despite the fact building works I could not install the app. When I change the icon tag to use no icon everything works fine. Any ideas?
    Greetz and thanks in advance!

    I solved it. When you export the release build you can choose package contents to be compiled in the ipa. When I tried to add an icon at first I named it icon.png, which seems to be a reserved name. The configuration to include this icon.png was still saved though i deleted it. Wired... After unchecking the ceckbox for icon.png not to be compiled in the ipa, the release build was build.

  • "Not an executable or is a link" errors when starting Messaging Server

    "Not an executable or is a link" errors when starting Messaging Server
    <P>
    If Calendar Server 3.x has been installed to the same server root
    as Messaging server, it is possible that the command 'NscpMail start'
    to restart the server will return a string of errors:
    # /etc/NscpMail start
    19971207145610:Dispatch:Notification:Local Module
    (Account-Handler) is not a n executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Local Module
    (Account-Manager) is not a n executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Local Module
    (AutoReply-Handler) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Local Module
    (Configuration-Manager) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Local Module
    (Error-Handler) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Local Module
    (Mailbox-Deliver) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Local Module
    (Program-Deliver) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Local Module
    (SMTP-Deliver) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Local Module
    (SMTP-Router) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Local Module
    (UNIX-Deliver) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Network Module
    (Finger-Server) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Network Module
    (IMAP4-Server) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Network Module
    (POP3-Server) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Network Module
    (SMTP-Accept) is not an executable or is a link.
    Module not loaded.
    Startup Problem:
    Module Error-Handler is required for proper operation.
    Netscape Messaging Server Exiting!
    The Calendar server 3.x installation may have changed the permissions
    on [server-root]/bin directory from 755 to 750. Simply issue the
    command (as root) 'chmod 755 [server-root]/bin' and then start
    the server with the 'NscpMail start' command, and it should start
    without a problem.

    "Not an executable or is a link" errors when starting Messaging Server
    <P>
    If Calendar Server 3.x has been installed to the same server root
    as Messaging server, it is possible that the command 'NscpMail start'
    to restart the server will return a string of errors:
    # /etc/NscpMail start
    19971207145610:Dispatch:Notification:Local Module
    (Account-Handler) is not a n executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Local Module
    (Account-Manager) is not a n executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Local Module
    (AutoReply-Handler) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Local Module
    (Configuration-Manager) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Local Module
    (Error-Handler) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Local Module
    (Mailbox-Deliver) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Local Module
    (Program-Deliver) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Local Module
    (SMTP-Deliver) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Local Module
    (SMTP-Router) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Local Module
    (UNIX-Deliver) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Network Module
    (Finger-Server) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Network Module
    (IMAP4-Server) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Network Module
    (POP3-Server) is not an executable or is a link.
    Module not loaded.
    19971207145610:Dispatch:Notification:Network Module
    (SMTP-Accept) is not an executable or is a link.
    Module not loaded.
    Startup Problem:
    Module Error-Handler is required for proper operation.
    Netscape Messaging Server Exiting!
    The Calendar server 3.x installation may have changed the permissions
    on [server-root]/bin directory from 755 to 750. Simply issue the
    command (as root) 'chmod 755 [server-root]/bin' and then start
    the server with the 'NscpMail start' command, and it should start
    without a problem.

  • Linking errors when using ibsta

    Hello,
    I have been trying to write C code to automate a Keithley 2410 through GPIB.  I am using Windows XP 32-bit, and VC++.
    I believe I was successful in getting a handle to the gpib-32.dll. However, I am getting a linking error when I try to use ibsta:  1>helloworld.obj : error LNK2001: unresolved external symbol _ibsta
    1>C:\Documents and Settings\Prober\My Documents\C Programs\helloworld\Debug\helloworld.exe : fatal error LNK1120: 1 unresolved externals
    However, when I look through the ni488.h, I see that ibsta is a global variable.  Therefore I am confused as to why I am getting a linking error
    I am following this guide: http://na.tm.agilent.com/pna/help/latest/Programming/GPIB_Example_Programs/GPIB_using_Visual_C++.htm
    My code is attached
    Attachments:
    code.c ‏3 KB

    Check out the 4882query.c example located on your computer at National Instruments > NI-488.2 > Examples > Standard C > 4882query.  The National Instruments folder might be in a sub-folder of Public or Public Documents.  Look at the ReadMe.txt file first.  It contains a C++ section.  Then try compiling the example and see what happens.
    Jeff Munn
    Applications Engineer
    National Instruments

  • Error occurred in deployment step 'Install app for SharePoint': There were errors when validating the App manifest.

    Hi everyone,
    I `m getting error message like this  "Error occurred in deployment step 'Install app for SharePoint': There were errors when validating the App manifest.". when i try to debug the application with "Start Action"="Internet Explorer".This
    application  is  an apps for office application with Oauth with Office 365
    Any help in this regard is greatly appreciated 
    Thanks!!
    Santosh Sutar

    Thanks Fei for your time.
    >>>I would suggest that you create a new project and set it start action with 'Internet Explorer'
    to see whether this issue could be reproduced.  If no, we can compare the difference between the two menifest files.
    As per your suggestion above ,With new project,I can debug with with start action "Internet Explorer" and I
    could not see much difference between the manifest files.
    Please find below my manifest file for the reference .
    <?xml version="1.0" encoding="UTF-8"?>
    <!--Created:cb85b80c-f585-40ff-8bfc-12ff4d0e34a9-->
    <OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TaskPaneApp">
      <Id>084cd6cd-2908-44d1-a5cf-4fa029aec211</Id>
      <Version>1.0.0.0</Version>
      <ProviderName>[Provider name]</ProviderName>
      <DefaultLocale>en-US</DefaultLocale>
      <DisplayName DefaultValue="Office 365 MVC" />
      <Description DefaultValue="Office 365 MVC"/>
      <AppDomains>
        <AppDomain>https://login.microsoftonline.com</AppDomain>
      </AppDomains>
      <Hosts>
        <Host Name="Document" />
        <Host Name="Workbook" />
      </Hosts>
      <DefaultSettings>
        <SourceLocation DefaultValue="~remoteAppUrl/Home/Index/" />
      </DefaultSettings>
      <Permissions>ReadWriteDocument</Permissions>
    </OfficeApp>
    Please suggest on this.
    Thanks !!
    Santosh Sutar

  • 'Install App for SharePoint' There were errors when validating the App Package

    Hello,
    When testing with an app, I tried to add an
    app event receiver before learning that remote event receiver are not allowed with
    Sharepoint-hosted app. So I reseted the Handle app installed and
    Web Project properties of my project and tried to redeploy and this error occurred :
    'Install App for SharePoint' There were errors when validating the App Package
    Something other than the project's properties have been modified but I don't know what.

    I think the best way to figure real reason out is to look at ULS logs.
    This is example, what I had:
    Unexpected        App Packaging: CreatePackage: Unexpected exception: There were errors when validating the App package: There were errors when validating the App Package. Other warnings / errors associated with this
    exception:  The current version of SharePoint is less than the SharePointMinVersion specified in the app manifest. CurrentVersion='15.0.4693.1000', SharePointMinVersion='16.0.0.0'.

  • Error When building ess/tra/tre and ess/tra/tre/trs DC's

    I had customized the ess/tra/tre and ess/tra/tre/trs DC's and had them working, but I do not know what I did or what happened that am now getting the following errors when building, can anyone help tell what the problem could be?
    Error                                     
    -     The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.xss.tra.model.openccmodel.OVSOpenCostcenterModel. Fix the classpath then try rebuilding this project.               
    -     HDI_HNS15.02_Desstratresap.com                              
    Error                                     
    -     This compilation unit indirectly references the missing type com.sap.xss.tra.model.openccmodel.OVSOpenCostcenterModel (typically some required class file is referencing a type outside the classpath)        
    -      InternalVcTreReview.java          
    -      HDI_HNS15.02_Desstratresap.com/gen_wdp/packages/com/sap/xss/tra/tre/vc/review/wdp      
    -     line 0

    For anyone who might need to know, I managed to fix this by adding tra to the required projects on the build path. On the Navigator View, right click -> Properties -> Java Build Path -> Projects tab -> check dependant project.

  • TS1702 unknown error when using the app store

    unknown error when using the app store

    Im sorry I will try to be more clear.. and I appreciate all of ur input. Wi-fi works fine.. everything opens and functions fine on the I pad. The problem is I will click on app store or the I tunes store...it opens fine and I am able to look at and download apps  etc... but after being in the appstore or I tunes store for a couple of minutes I get kicked out to the I pads home screen. Its like pushing the home button but I didn't. It only seems to do this when im in the app store or I tunes store. I have been using the chrome browser and other downloaded apps such as ebay just fine with out this problem occurring. Not sure about safari as I dont use it and use chrome instead. Um I don't think the home button its self is faulty because it works fine and as stated before this only happens when I am in the appstore or I tunes . I've only had this I pad 1 64gb wi-fi for a few days .. I got it off of ebay it was stuck in restore mode getting error code 1611.  I was able to successfully Restore it with I tunes and it running ios 5.1. Seams to work great besides the problem being mentioned.

  • Why do I get 'ResolveManifestFiles task failed' error when building a WPF app that references WinRT API?

    0
    down vote
    favorite
    I am working on a WPF app that I want to create for Windows 8. I followed steps mentioned in
    Hansleman's blog to make some manual modifications using WinRT functions in a WPF app. Everything worked well, until I tried to publish the app. When I clicked on publishing the app I got error "The 'ResolveManifestFiles' task failed unexpectedly.
    System.ArgumentException: Value does not fall within the expected range."
    Afterwards, it will produce the same error when attempting a simple solution build.
    Even if you create a simple WPF project and add the references mentioned in blog to access WinRT functions and publish, this issue can be reproduced.
    I think it would be common scenario to call WinRT functions from WPF and someone should have done it. Is anyone aware what should be done to fix this issue?

    I am having the same problems and came across this article while researching a workaround. 
    It is surprising more people aren’t talking about this.
    Here are the steps to reproduce the problem; Using Visual Studio Express 2012 (x64) create a new VB Windows Forms Application. 
    Unload the project and edit the [ProjName].vbproj in the solution explorer. 
    Add <TargetPlatformVersion>8.0</TargetPlatformVersion> to the <PropertyGroup>. 
    Save and reload the project.  In Add Resource/Reference Manager add the Windows.minmd found under Windows/Core. 
    This WinRT/Desktop solution will run as expected.  Now try to Publish this solution. 
    It will FAIL with the following ERROR; “The ResolveManifestFiles task failed unexpectedly, Value does not fall within the expected range.” 
    Attempting to build or run the solution again now will fail with the same Error. 
    The only way to build the project now is to remove the “Enable ClickOnce security settings” option under the project properties Security settings. 
    Occasionally using this trick, the solution will build but not run. 
    When that happens jiggle around with Debug/Release Solution Configurations and the Any CPU/x64 Solution Platforms then rebuild and try the run again. 
    This fussing around will get you through development however any attempt to publish with restore the ClickOnce security setting and create the previous Error.
    The first question here is how do you publish a WinRT app for the desktop with VS2012 Express. 
    Then secondly, if that is not possible can we publish this Express solution with a 3rd party deployment tool like InstallShield Limited Edition or the WIX Toolset. 
    Neither however seems functional in a VS Express environment. 
    Then thirdly, are there ways to access hardware sensor devices from a desktop solution without resorting to the WinRT API.
    Any ideas or new research directions would be greatly appreciated.

  • Error when building the Java pricing userexit manual code

    I went throught the manual for the pricing userexit manual... it tells you to ignore the errors when you do an ant build but I want to remove all the errors since they dont let the rest the code compile.... where are the jars for these errors: 
    [javadoc] C:\DEV\PRC_UE_CUSTOMER\lib_src\src\com\sap\spc\document\DocumentConstants.java:16: package com.sap.vmc.logging does not exist
         [javadoc] import com.sap.vmc.logging.Category;
         [javadoc]                            ^
         [javadoc] C:\DEV\PRC_UE_CUSTOMER\lib_src\src\com\sap\spc\document\DocumentConstants.java:26: cannot resolve symbol
         [javadoc] symbol  : class Category
         [javadoc] location: class com.sap.spc.document.DocumentConstants
         [javadoc]     public static final Category CATEGORY = Category.getCategory(Category.APPLICATIONS, "/AP/SPC/Document");
         [javadoc]                         ^

    See the [SAP note 809820 - Userexit concept for pricing|https://service.sap.com/sap/support/notes/809820]
    Use ZIP file the attached to the above note - PRC_UE_CUSTOMER_V105.zip
    ZIP file contains an Eclipse .project file that has the required build path. If you read the documents carefully, it does refer this project file.
    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
         <classpathentry kind="src" path="src"/>
         <classpathentry sourcepath="lib_src/src" kind="lib" path="lib_api"/>
         <classpathentry kind="lib" path="lib_vmc_api/base_services_stripped_api.jar"/>
         <classpathentry kind="output" path="bin"/>
    </classpath>
    Again read the documents thoroughly. They are neither fictions nor non-fictions, but technical documents written with care. So, we must also read them with care. If we don't follow them, then it is time to engage someone who does. )
    BTW, coming back to the Java basics - One must have a class and source files to debug. You won't get a class file unless it is compiled. The Java file won't compile correctly if it has syntax / reference errors. Unfortunately or fortunately, all these apply to the IPC java userexit development as well.
    Easwar Ram

  • Linker errors when linking OCCI 10.1.0  statically on RH AS 3.0 platform

    Hello All,
    I was trying to build an OCCI program on a Red Hat AS 3.0 Update 4 Platform, statically linking to OCCI libraries of Oracle 10.1.0 version. The g++ compiler version is 3.2.3.
    The Makefile and the errors that got generated is mentioned below. However, I could able to build the program when linking through shared library version of OCCI. My requirement is to build the program statically.
    I had been stuck up with this for almost a week and tried checking the previous postings in the forums/newsgroups, but not of much help. I added the following libraries :
    -lnbeq10 -lnhost10 -lnus10 -lnldap10 -lldapclnt10\
    -lnsslb10 -lntcp10 -lntcps10 -lnsslb10 -lntcp10 -lntns10
    to the Makefile, based on somebody's posting in OCI/OCCI forum. If I didn't provide
    -lpthread I get linker errors in pthread_xxx functions.
    Any help/pointers on this would be really appreciated.
    Makefile (static link)
    ======
    CXX=/usr/bin/g++
    ORA_HOME=/u01/app/oracle/product/10.1.0
    ifndef CXXFLAGS
    # Define C++ compiler flags to locate third-party header files as well as
    # any other options you may want.
    CXXFLAGS=-I${ORA_HOME}/rdbms/demo \
    -I${ORA_HOME}/rdbms/public \
    -I${ORA_HOME}/plsql/public \
    -I${ORA_HOME}/network/public
    endif
    # Include any header files in the current directoryj
    CXXFLAGS:=$(CXXFLAGS) -I . -g -static
    ifndef LDFLAGS
    # Define link paths for Oracle libraries.
    LDFLAGS=-L${ORA_HOME}/lib/ -L${ORA_HOME}/rdbms/lib/
    endif
    LIBS=-locci10 -lclntst10 -lnsl -ldl -lm \
    -lnbeq10 -lnhost10 -lnus10 -lnldap10 -lldapclnt10\
    -lnsslb10 -lntcp10 -lntcps10 -lnsslb10 -lntcp10 -lntns10 -lpthread
    #LIBS=${ORA_HOME}/lib/libocci10.a ${ORA_HOME}/lib/libclntst10.a -lpthread -ldl
    OCCIPROG=SCDBUtilTest
    OCCIOBJ=SCDBUtil.o SCDBUtilTest.o
    debug: ${OCCIPROG}
    ${OCCIPROG}: ${OCCIOBJ}
    ${CXX} ${CXXFLAGS} -o $@ ${OCCIOBJ} ${LDFLAGS} ${LIBS}
    clean:
    -rm -f $(OCCIPROG) $(OCCIOBJ)
    When ran make, below is the output generated.
    /usr/bin/g++ -I/u01/app/oracle/product/10.1.0/rdbms/demo -I/u01/app/oracle/product/10.1.0/rdbms/public -I/u01/app/oracle/product/10.1.0/plsql/public -I/u01/app/oracle/product/10.1.0/network/public -I . -g -static -c -o SCDBUtil.o SCDBUtil.cpp
    /usr/bin/g++ -I/u01/app/oracle/product/10.1.0/rdbms/demo -I/u01/app/oracle/product/10.1.0/rdbms/public -I/u01/app/oracle/product/10.1.0/plsql/public -I/u01/app/oracle/product/10.1.0/network/public -I . -g -static -c -o SCDBUtilTest.o SCDBUtilTest.cpp
    /usr/bin/g++ -I/u01/app/oracle/product/10.1.0/rdbms/demo -I/u01/app/oracle/product/10.1.0/rdbms/public -I/u01/app/oracle/product/10.1.0/plsql/public -I/u01/app/oracle/product/10.1.0/network/public -I . -g -static -o SCDBUtilTest SCDBUtil.o SCDBUtilTest.o -L/u01/app/oracle/product/10.1.0/lib/ -L/u01/app/oracle/product/10.1.0/rdbms/lib/ -locci10 -lclntst10 -lnsl -ldl -lm -lnbeq10 -lnhost10 -lnus10 -lnldap10 -lldapclnt10 -lnsslb10 -lntcp10 -lntcps10 -lnsslb10 -lntcp10 -lntns10 -lpthread
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sqmul.o)(.text+0xab): In function `sqmul_dlopen':
    : Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sntp.o)(.text+0x1089): In function `sntpcall':
    : Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sntp.o)(.text+0x10a1): In function `sntpcall':
    : Using 'endgrent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sntp.o)(.text+0xfa1): In function `sntpcall':
    : Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(si.o)(.text+0x14f): In function `sigunmu':
    : Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sniq.o)(.text+0x224): In function `snigun':
    : Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(snlpc.o)(.text+0x1427): In function `snlpcgthstbyad':
    : Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(slputcp.o)(.text+0x245): In function `slputcpsockaddr':
    : Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sgslun.o)(.text+0x2ef0): In function `sgslunGetHostName':
    : Using 'gethostbyname_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(snlpc.o)(.text+0xe90): In function `snlpcgthstent':
    : Using 'gethostent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(snlpc.o)(.text+0x1945): In function `snlpcgtsrvbynm':
    : Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(snlpc.o)(.text+0x1b8b): In function `snlpcgtsrvbypt':
    : Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(snlpc.o)(.text+0x1702): In function `snlpcgtsrvent':
    : Using 'getservent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiStatementImpl.o)(.text+0x6ffb): In function `oracle::occi::StatementImpl::getObject(unsigned int)':
    : undefined reference to `OCIPAnyDataSetFlag'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiResultSetImpl.o)(.text+0xf99): In function `oracle::occi::ResultSetImpl::getBFloat(unsigned int)':
    : undefined reference to `lfpinit'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiResultSetImpl.o)(.text+0x10d9): In function `oracle::occi::ResultSetImpl::getBDouble(unsigned int)':
    : undefined reference to `lfpinit'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiResultSetImpl.o)(.text+0x1ca8): In function `oracle::occi::ResultSetImpl::getObject(unsigned int)':
    : undefined reference to `OCIPAnyDataSetFlag'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiResultSetImpl.o)(.text+0x48b6): In function `oracle::occi::ResultSetImpl::defineConvertBFloat(oracle::occi::ResultSetImpl::Define*, float*, unsigned int*, int)':
    : undefined reference to `lfpinit'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiResultSetImpl.o)(.text+0x49e2): In function `oracle::occi::ResultSetImpl::defineConvertBDouble(oracle::occi::ResultSetImpl::Define*, double*, unsigned int*, int)':
    : undefined reference to `lfpinit'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiTimestamp.o)(.text+0x1aa): In function `oracle::occi::Timestamp::Timestamp(oracle::occi::Environment const*, int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    : undefined reference to `OCIPGetTZI'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiTimestamp.o)(.text+0x256): In function `oracle::occi::Timestamp::Timestamp(oracle::occi::Environment const*, int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    : undefined reference to `OCIPGetTZI'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiTimestamp.o)(.text+0x302): In function `oracle::occi::Timestamp::Timestamp(oracle::occi::Environment const*, int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, std::basic_string<unsigned short, oracle::occi::utext_char_traits, std::allocator<unsigned short> > const&)':
    : undefined reference to `OCIPGetTZI'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiTimestamp.o)(.text+0x3be): In function `oracle::occi::Timestamp::Timestamp(oracle::occi::Environment const*, int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, std::basic_string<unsigned short, oracle::occi::utext_char_traits, std::allocator<unsigned short> > const&)':
    : undefined reference to `OCIPGetTZI'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiTimestamp.o)(.text+0x48a): In function `oracle::occi::Timestamp::do_TimestampConstruct(oracle::occi::Environment const*, int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, void*)':
    : undefined reference to `OCIPGetTZI'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiTimestamp.o)(.text+0xb42): more undefined references to `OCIPGetTZI' follow
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiSQLExceptionImpl.o)(.text+0x91): In function `oracle::occi::SQLExceptionImpl::getNLSMessage(oracle::occi::Environment*) const':
    : undefined reference to `OCIPGetErrorMessageNLS'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiSQLExceptionImpl.o)(.text+0x15b): In function `oracle::occi::SQLExceptionImpl::getNLSUStringMessage(oracle::occi::Environment*) const':
    : undefined reference to `OCIPGetErrorMessageNLS'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x56): In function `oracle::occi::AnyDataImpl::AnyDataImpl(oracle::occi::Connection const*, OCIAnyData*, bool)':
    : undefined reference to `OCIPAnyDataSetUCIOptMode'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x156): In function `oracle::occi::AnyDataImpl::AnyDataImpl(oracle::occi::Connection const*, OCIAnyData*, bool)':
    : undefined reference to `OCIPAnyDataSetUCIOptMode'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x3ae): In function `oracle::occi::AnyDataImpl::AnyDataImpl(oracle::occi::AnyDataCtx const*)':
    : undefined reference to `OCIPAnyDataSetUCIOptMode'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x4e6): In function `oracle::occi::AnyDataImpl::AnyDataImpl(oracle::occi::AnyDataCtx const*)':
    : undefined reference to `OCIPAnyDataSetUCIOptMode'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x780): In function `oracle::occi::AnyDataImpl::setNull()':
    : undefined reference to `OCIPAnyDataSetNull'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x1cc5): In function `oracle::occi::AnyDataImpl::setObject(oracle::occi::PObject const*)':
    : undefined reference to `OCIPAnyDataSetFlag'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x2d6f): In function `oracle::occi::AnyDataImpl::getAsObject() const':
    : undefined reference to `OCIPAnyDataSetFlag'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstclo.o)(.text+0x39): In function `lstclo':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstclo.o)(.text+0x52): In function `lstclo':
    : undefined reference to `__ctype_tolower'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstclo.o)(.text+0x6f): In function `lstclo':
    : undefined reference to `__ctype_tolower'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstmclo.o)(.text+0x46): In function `lstmclo':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstmclo.o)(.text+0x5f): In function `lstmclo':
    : undefined reference to `__ctype_tolower'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstmclo.o)(.text+0x7c): In function `lstmclo':
    : undefined reference to `__ctype_tolower'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lxhcnv.o)(.text+0x366): In function `lxhcnv':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lxpname.o)(.text+0xc5): In function `lxpname':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sl.o)(.text+0x405): In function `sltln':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kge.o)(.text+0x2b19): In function `kgespf':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kge.o)(.text+0x2d12): In function `kgespf':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kgh.o)(.text+0x10d48): more undefined references to `__ctype_b' follow
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kpuini.o)(.text+0x1d70): In function `kpufhndl0':
    : undefined reference to `wtcsrfre'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kpuini.o)(.text+0x7e00): In function `kpuinit0':
    : undefined reference to `wtcsrin'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lcvb24.o)(.text+0x45): In function `lcvb24':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lcvb24.o)(.text+0x9a): In function `lcvb24':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lcvb2w.o)(.text+0x45): In function `lcvb2w':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lcvb2w.o)(.text+0x9a): In function `lcvb2w':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lpu.o)(.text+0x1c5): In function `lpuparse':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lpu.o)(.text+0xf62): more undefined references to `__ctype_b' follow
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstlo.o)(.text+0x44): In function `lstlo':
    : undefined reference to `__ctype_tolower'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstmup.o)(.text+0x43): In function `lstmup':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstup.o)(.text+0x28): In function `lstup':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstup.o)(.text+0x44): In function `lstup':
    : undefined reference to `__ctype_toupper'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lsxv.o)(.text+0x54f5): In function `LsxvParseDecimal':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lsxv.o)(.text+0x6da8): In function `LsxValidateBinary':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lsxv.o)(.text+0x7710): In function `LsxValidateLong':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lsxv.o)(.text+0xb274): In function `LsxvIsLanguage':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lsxv.o)(.text+0xb316): In function `LsxvIsLanguage':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lsxv.o)(.text+0xb3ac): more undefined references to `__ctype_b' follow
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kpucc.o)(.text+0x271): In function `kpuccCacheErr':
    : undefined reference to `wtcLerr'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kpucc.o)(.text+0x2a6): In function `kpuccMainErr':
    : undefined reference to `wtcMerr'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kpucc.o)(.text+0x2e1): In function `kpuccGoRemote':
    : undefined reference to `wtclkm'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kpucc.o)(.text+0x326): In function `kpuccGetStats':
    : undefined reference to `wtcstu'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lpxbuf.o)(.text+0x2a4f): In function `LpxbufSingleProcess':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstmlo.o)(.text+0x43): In function `lstmlo':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(nldt.o)(.text+0x9a1): In function `nldtstr2lv':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(nlfi.o)(.text+0x42f): In function `nlfifpf':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(nlfi.o)(.text+0x462): In function `nlfifpf':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(nlfi.o)(.text+0x4d4): more undefined references to `__ctype_b' follow
    collect2: ld returned 1 exit status
    make: *** [SCDBUtilTest] Error 1
    Thanks & Regards,
    Karthik D

    Hi ,
    Oh! Anyway, thanks for the information. However, the glibc version I use is glibc-2.3.2-95.30.
    There is a bit of story behind the reason we tried to use static linking. Actually, the application around which we use to develop solutions supports only Oracle 9i. We were developing some components using the C++ SDK provided by application vendor and that components need some information from DB for processing. So, we needed to write a DB class to do that. Since, we found Oracle supports C++ DB interface(OCCI), we thought to use that.
    We had to use RH AS 3.0 platform and the gcc compiler 3.2.x+ for compiling our component code. But Oracle 9i OCCI code doesn't get compiled with gcc/g++ 3.2.x+ compilers. So, we planned to use Oracle 10g OCCI libraries for building the DB class and link it to the custom component we had developed.
    In the run-time environment, we had to install both Oracle 9i clients and Oracle 10g clients since the app requires Oracle 9i and the custom component requires Oracle 10g. We did some kind of tweaking (by providing symbolic links to Oracle 10g OCCI libraries from Oracle 9i client directory) so that both the app and the component gets started.
    I know this is not a good idea. But we didn't want to spend much time on this at that time since we were doing a proof-of-concept. Later, we thought what could be done. We thought ,first we can try lthe custom component linked to static library version of OCCI. That's the reason we tried of static linking.
    The other option is to use OCI interface. But this is a bit of work since we need to write lot of wrapper methods to handle intricacies with OCI and OCI code is cumbersome compared to OCCI.
    Hope now you could have got the problem, I am talking about. Any other better ways?
    Thanks
    Karthik

  • I get a "vi is not executable" error when building an application.

    I have an ongoing project that has worked fine in the past when building an application. I have recently added some report generation toolkit vis(Excel) and get an error for some of the ni vis and some of my own that call lower level excel vis. The error is that he vi is not executable, however they run fine in the development environment. I do not get this error if I save all vi's into one llb with save with options command and then build. However, when I try to run the app, this error re-appears. Also, do I have to add the dynamically loaded vi's that are part of the toolkit in my build script? Could this be the cause of the problem? If so, what's the best way to find all of them? Any suggestions?

    You have hit in on the nail! You do need to add the dynamically loaded VIs when you are creating an executable from your VI. You need to add _wordsub.lib and _exclsub.lib as dynamically loaded VIs into your executable. Try this and let us know if you have any more problems with it.
    J.R. Allen

  • Linker Error while building files refering to NI-DAQ API

    Software: MATLAB 5.3
    O/S : Windows 98
    C Compiler : Microsoft VC++ 6.0
    We are trying to make an executable of an Application involving both of MatLab and C Files
    The file SCANsingleBufSync2.c is C program calling National Instruments NI-DAQ API's. This C program is called by displayCnt3.m,a MatLab Program. Both of the files are individually compiled using
    mcc -x SCANsingleBufSync2.c, ...
    That works fine.
    When trying to make a build , using
    mcc -B sgl displayCnt3 SCANsingleBufSync2.c
    it is throwing the following error.(pl. refer section at end)
    Basically it is not able to do Link. The MatLab path has been set to look into the NI-DAQ .dlls
    C:\Program Files\National Instruments\Ni-daq\Includes and
    C:\Program Files\National Instruments\Ni-daq\Lib
    Also the Windows path has been set to the above two directories through the autoexec.bat.
    Suggestions Please,
    Thanks in advace,
    MOHANDAS
    � mcc -B sgl displayCnt3 SCANsingleBufSync2.c
    SCANsingleBufSync2.obj : error LNK2001: unresolved external symbol _DAQ_VScale@40
    SCANsingleBufSync2.obj : error LNK2001: unresolved external symbol _SCAN_Demux@16
    SCANsingleBufSync2.obj : error LNK2001: unresolved external symbol _SCAN_Op@40
    SCANsingleBufSync2.obj : error LNK2001: unresolved external symbol _NIDAQErrorHandler@12
    SCANsingleBufSync2.obj : error LNK2001: unresolved external symbol _Timeout_Config@8
    displayCnt3.obj : error LNK2001: unresolved external symbol _MdisplayCnt3_SCANsingleBufSync2
    displayCnt3.exe : fatal error LNK1120: 6 unresolved externals
    MBUILD.BAT: Link of 'displayCnt3.exe' failed.
    mcc -B sgl displayCnt counter.c
    counter.obj : error LNK2001: unresolved external symbol _Select_Signal@16
    counter.obj : error LNK2001: unresolved external symbol _GPCTR_Change_Parameter@16
    counter.obj : error LNK2001: unresolved external symbol _GPCTR_Set_Application@12
    counter.obj : error LNK2001: unresolved external symbol _NIDAQErrorHandler@12
    counter.obj : error LNK2001: unresolved external symbol _GPCTR_Control@12
    counter.obj : error LNK2001: unresolved external symbol _GPCTR_Config_Buffer@20
    counter.obj : error LNK2001: unresolved external symbol _Set_DAQ_Device_Info@12
    counter.obj : error LNK2001: unresolved external symbol _NIDAQYield@4
    counter.obj : error LNK2001: unresolved external symbol _GPCTR_Read_Buffer@36
    displayCnt.exe : fatal error LNK1120: 9 unresolved externals
    MBUILD.BAT: Link of 'displayCnt.exe' failed.

    I'm not very familiar with MATLAB, but you are getting link errors most likely because you aren't linking in the .LIB files for NI-DAQ properly. They are nidaq32.lib and nidex32.lib in the NI-DAQ\lib directory. They need to be linked in with the code to resolve these symbols.
    Best Regards,
    Chris Matthews
    National Instruments

Maybe you are looking for

  • How do I reduce the file size of a pdf to email?

    I have a 260 MB pdf file generated from Photoshop 6.  I can't seem to reduce the size in Photoshop.  Is there anyway to reduce the pdf outside of Photoshop?  Thanks in advance for any help.

  • An error occurred while connecting to the FTP server '127.0.0.1:14147'

    HI Experts, I have been tried Content Conversion by using the FTP. Under Adapter Monitoring --> Communication Channel monitoring i found this error: An error occurred while connecting to the FTP server '127.0.0.1:14147'. The FTP server returned the f

  • HT1430 unlock a disabled Ipod touch

    How do I enable a disabled Ipod Touch?  It tells me to connect to Itunes and I am, but what now?

  • Output type EK00 pickng list error

    hi all, while issuing a delivery doc to o/p in vl02n. i get a message 'output cud not be issued'. i have chckd all cond recodrds and config is in place. we are using SAP script for this purpose.  the processng status is also 2 tht is 'incorreclty pro

  • Change the mouse icon.

    Hi all I need to change the mouse icon. I'm using: setCursor(Cursor.WAIT_CURSOR); buet the problem is that this only works inside the application. If the mouse cursors does out of the application (f.e. to the windows desk) the mouse changes into the