Error in header file

While i compile this code to create dll file using command line compiler , it shows error in "twain.h"
y it is showing error in twain.h?
#include <jni.h>
#include "Tmanager.h"
#include "twain.h"
JNIEXPORT jboolean JNICALL
Java_Tmanager_isvalidDriver(JNIEnv *env, jclass cla)
     return (m_hTwainDLL && m_pDSMProc);
Error :
twain.h(84):error c2146: syntax error : missing ';' before identifier 'TW_HANDLE'
twain.h(84):fatal error c1004:unexpected end of file found
can anyone help me?
Thanks,
Sri

twain.h(84):error c2146: syntax error : missing ';' before identifier 'TW_HANDLE'
twain.h(84):fatal error c1004:unexpected end of file found
can anyone help me?At least you could have shown us what's happening there around line 84 in
that twain.h file; normally I'm psychic but this is beyond my capabilities.
kind regards,
Jos
ps. this even isn't a Java question ...

Similar Messages

  • Error in header files on DMA using SDK

    I followed procedure as like as simple Hello_world mention in zedboard and chosen "OS Platform as Linux".check out this link i followed the procedure as
    http://zedboard.org/content/zedboard-create-planahead-project-embedded-p....
    Then replaced that Hello_world code by My program.I attached DMA program.while compling I faced error and post in the zedboard->support->s/w development application and then i added header files in the project explorer window in SDK to the include folder as a path.pls check out link below for header file inclusion as http://s1322.photobucket.com/user/Arunvision/media/sdk_bsp_zps99084a46.j...
    we got the error like as
    **** Build of configuration Debug for project Dma ****
    make all
    Building file: ../src/OCM2PL.c
    Invoking: ARM Linux gcc compiler
    arm-xilinx-linux-gnueabi-gcc -Wall -O0 -g3 -I"C:\Xilinx\14.4\ISE_DS\EDK\sw\XilinxProcessorIPLib\drivers\scutimer_v1_00_a\src\" -I"C:\Xilinx\14.4\ISE_DS\EDK\sw\XilinxProcessorIPLib\drivers\dmaps_v1_00_a\src" -I"C:\Xilinx\14.4\ISE_DS\EDK\sw\XilinxProcessorIPLib\drivers\scugic_v1_00_a\src" -I"C:\Xilinx\14.4\ISE_DS\EDK\sw\XilinxProcessorIPLib\drivers\common_v1_00_a\src" -I"C:\Xilinx\14.4\ISE_DS\EDK\sw\lib\bsp\standalone_v3_07_a\src\cortexa9" -c -fmessage-length=0 -MMD -MP -MF"src/OCM2PL.d" -MT"src/OCM2PL.d" -o"src/OCM2PL.o" "../src/OCM2PL.c"
    arm-xilinx-linux-gnueabi-gcc: fatal error: no input files
    compilation terminated.
    make: *** [src/OCM2PL.o] Error 1
    Pls provide solution as soon as possible.

    Ran into a very similar problem compiling code (on win7/64bit) for the zc702 board.    In our case it was due to the cygwin binaries being on the windows PATH.   You won't have to remove cygwin - just remove from the windows path.   
    Also can't take credit - John Zhao and his team at mathworks uncovered it - while we were tracking down a different issue.
    --Bart

  • Error Reading Header File When Creating a CIN

    Hello everyone. I am a college student new to LabView and Im using the
    software to create a real time data acquisition system for EMG signal
    analysis for a research project. However, Im having difficulty building
    a CIN for my C code. I am using Microsoft Visual Studio.NET 2003 and
    running LabView 7.1 on Windows XP. I am using the "Using External Code
    in LabView" (April 2003 Edition) manual and I am attempting to do the
    steps located in section 3-15 under Visual C++ IDE. However, I keep
    getting fatal error C1083: Cannot open include file: 'extcode.h': No
    such file or dir. I have followed all of the directions in the manual
    and even explicitly tried adding extcode.h to my project  but I
    still get this error. My version of Visual Studio is different then the
    one described so I was wondering if there is something different that I
    have to do in this process. Any help would be greatly appreciated.
    Thanks for your time.
    Pat

    Is there a particular reason you're not using a Call Library Function Node to call a DLL instead of using a CIN? Calling DLLs from Call Library Function Node are usually a much more user-friendly process, which I would recommend, unless you need to take advantage of the extra features listed on page 1-4 of Using External Code in LabVIEW.
    Jarrod S.
    National Instruments

  • MakePathNa​me error, though header file included

    I use the makepathname() function found in utility.h, which I did include at the top at my code, and have shown in my list of .h files.
    Also, Options>>Build Options...>>Require function prototypes is also checked.
    However, I keep getting this error: error: implicit declaration of function 'MakePathName' is invalild in C99. Make sure that you include the function prototype. I need help with this.
    Solved!
    Go to Solution.

    Another suggestion is to look at the sample userint\custctrl\hyperlinkctrl\simple.cws - it builds fine and should also work on your computer. If so, you can check the differences...

  • Compile error |gcc|header files

    I'm trying to compile my rf driver (8139D chipset).
    I did install SWFgcc.
    But when i'm trying to make the rf module, it says that mac.h isn't available.
    So i did download it from the opensolaris project, and put it into the /usr/include/sys/ directory.
    But i got errors like:
    gem.h:170: error: syntax error before "mac_t"
    gem.h:170: warning: no semicolon at end of struct or union
    gem.h:246: error: syntax error before ':' token
    gem.h:247: error: syntax error before ':' token
    gem.h:248: error: syntax error before ':' token
    gem.h:249: error: syntax error before ':' token
    .....Other people who are running solaris on x86 didn't have any problems with it?
    Is the support really that bad, or did i something wrong?
    //edit: Sorry that i posted it in the wrong area

    gem.h:170: error: syntax error before "mac_t"
    gem.h:170: warning: no semicolon at end of struct or
    union
    gem.h:246: error: syntax error before ':' token
    gem.h:247: error: syntax error before ':' token
    gem.h:248: error: syntax error before ':' token
    gem.h:249: error: syntax error before ':' token
    .....Yeah, read it. It's telling you what's wrong!
    First, it says there is a syntax error PRIOR to the "mac_t" - that means your INCLUDE ot whatever command is formed wrong, missing, etc.
    Obviously, everything after that error is going to be an error due to the chain effect. Fix that first syntax error and anything else will reveal itself. Just double check your syntax.

  • Obj. Error when compiling multiple C odules ncluding the nidaqex.h header file

    This is a C implementation.
    I have two modules. The main program includes a call nidaqex.h . My second module is shown below. cedriver.h is simply another header that contains the counter variables and function definitions.
    When I attempt to compile both source and the module I get the following errors:
    cedrivercomputeoutput.obj .text: undefined reference to '_GPCTR_Control@12'
    cedrivercomputeoutput.obj .text: undefined reference to '_NIDAQErrorHandler@12'
    cedrivercomputeoutput.obj .text: undefined reference to '_GPCTR_Set_Application@12'
    cedrivercomputeoutput.obj .text: undefined reference to '_GPCTR_Change_Parameter@16'
    cedrivercomputeoutput.obj .text: undefined reference to '_GPCTR_Watch@16'
    It seems as though the functions from the nidaqex header file are not being recognized. Any ideas?
    Attached is the module to be compiled with the main source code. I am using the commands xxx main.c cencoderdrivercomputeoutput.c . The main program also just calls the functions at predetermined times.
    /* ================================
    / edriver.h
    / ================================*/
    #include "nidaqex.h"
    extern u32 GpctrNum_0 = ND_COUNTER_0;
    extern u32 GpctrNum_1 = ND_COUNTER_1;
    extern i16 iDevice = 1;
    extern u32 ulGpctrNum = ND_COUNTER_0;
    extern u32 ulCount = 0;
    extern i32 ulTCReached = ND_NO;
    extern i16 iIgnoreWarning = 0;
    //i16 iYieldON = 1;
    extern i16 iRetVal = 0;
    u32 ReadCounter(void);
    void SetupCounter(void);
    void DisarmCounter(void);
    TIA.
    Klaus
    Attachments:
    cEncoderDriverComputeOutput.c ‏3 KB

    Attachments:
    cEDriverComputeOutput.C ‏2 KB

  • Session variable and Tracking in Header file

    Is there a way for me to keep track of the session and use a variable in my Header to pass around for this?
    I have a login.jsp, validate_login.jsp and other jsp's that have the same header file. Instead of me using the same code in all of the jsp's I thought it would be easier to put it in the header Please look at the example code below:
    // validate_login.jsp is passed username and password from the login.jsp.
    // validate_login then calls the logIn method in my Session class.
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@page import="uom.edu.rd.session.Session"%>
    <html>
    <head><title>Validate Login</title></head>
    <body>
    <jsp:include page="header.jsp" />
    <%
        String username = request.getParameter("username");
        String password = request.getParameter("password");
        this_session.logIn(username, password);   
        boolean b = this_session.getLoggedIn();
    %>
    ==================================================================
    // The logIn method in Session class
    public void logIn(String userName, String password) {
             Connection con = null;
             Statement stmt = null;
             ResultSet rs = null;
             try{
                con = db.getConnection();
                 stmt = con.createStatement();
                 String sql = "SELECT * FROM RD_USER WHERE USER_NAME = '" + userName +"' AND USER_PASSWORD = '" + password + "'";
                  rs = stmt.executeQuery(sql);
                  if(rs.next()){
                       loggedIn=true;
                  }else{
                       loggedIn=false;
             catch(Exception e){
                  // If something goes wrong, make sure
                  // the user is not logged in.
                  loggedIn=false;
              }finally{
                  try{
                       rs.close();
                       stmt.close();
                       con.close();
              }catch(Exception e){
         * Log the user out.
        public void logOut() {
             loggedIn = false;
         * Get the login status.
         * @return boolean
        public boolean getLoggedIn() {
             return loggedIn;
    ==================================================================
    // and this is part of my header.jsp
    <%@page import="uom.edu.rd.session.Session"%>
    <%
      Session this_session = Session.findSession(request);
      if ( this_session==null ) {
          /* Now, instead of redirecting, create a new Session
           * object and initialize it.
          this_session = new Session();
          this_session.makeSession(request);
          this_session.createQueryBuilder(config);     
    %>
    // This is the part I would like to pass around
    <!-- Session logged_in = new Session(); -->
    <%   
        boolean loggedIn = this_session.getLoggedIn();    
            if (loggedIn == false)
            { %>
                <A STYLE="color:#FFFFFF;text-decoration:none;" HREF="./login.jsp"><FONT COLOR="#FFFFFF">LOG IN</font></a>  <FONT COLOR="#FFFFFF"></font>
        <%  } else { %>
                <A STYLE="color:#FFFFFF;text-decoration:none;" HREF="./logout.jsp"><FONT COLOR="#FFFFFF">LOG OUT</font></a>  <FONT COLOR="#FFFFFF"></font>
         <% }
    %>
    // so if you are logged in  then you are able to view certain things on the jsp's if you are not logged in
    // then of course you cannot. I want to pass around this loggedIn variable to all the jsp's
    // after it checks  loggIn Status for each page I have tried running this but I keep getting an error: cannot resolve symbol this_session

    Use <%@ include file="header.jsp" %> instead

  • Header file entry for Text Channel

    I have taken an ASCII Text Data file, read the file, and created a Header File, then saved the data into a binary file. This is my attempt to speed up the loading of the text file. One of the columns is a text column, containing a flag for the state of the test. I can not figure out how to define the column as a Text Column in the Header File. If I define it as a numeric column, it returns an error for every entry in the data file. Normal (one of the states) is not a Numeric Value.
    The script file(s) I am using is a modification of a script listed on this board by Brad Turpin ( TimeSlice DAT Hdr Create.zip ) The only thing I have changed is the Test for the Channel Name to see if it contains on of 3 states. If Date is present in the Channel Name , it changes the field to a Time channel, if the channel contains Relay it changes it to a Text channel (which doesn't work), else the Channel is a Numeric.
    There must be a way to define a Text Channel in a Header File. I hope someone can show me the way.
    Thanks
    Bill Lane
    Test Engineer
    Takata, INC.

    Hello Bill!
    The DAT format was never able to store text channels (TDM is able today). Please refer to the DAT format description on your DIAdem CD or in this post.
    Your idea to convert it to a numeric value is the right way. The error message must come out of the header. Do you convert all properties to numeric values? See page 4-6 and following in the header description or search for the word 'normal' in the created header file.
    Matthias
    Matthias Alleweldt
    Project Engineer / Projektingenieur
    Twigeater?  

  • Problem while including the header file in C source code in CIN

    While Creating code interface node....
    In the C source code we are supposed to include the Header file "extcode.h".In my system i have installed
    Turbo C. I couldn't able to find the above header files.When i am trying to use the above header file i am getting error,what could be the reason

    Hi,
    You need to point your turbo C to ..\labview\cintools which is where you will find the extcode.h and other h file and also the lib file.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Winzip error for par file

    Hi,
    I have downloaded the winzip par file com.sap.portal.support.browse for the mast head and when i try to extract the par.bak file from it i get a winzip error. I am on windows vista with winzip 8.1. Also tried unzipping with winrar but get the same error. Wondering if there is a solution to this problem ? Error is below
    Extracting to "c:\unzipped\com.sap.portal.support.browse\"
    Use Path: yes   Overlay Files: no
    warning [C:\Users\amit.sharma\Documents\Electrolux\portal\com.sap.portal.support.browse.default\com.sap.portal.support.browse.default]:  extra 105 bytes at beginning or within Zip file (attempting to process anyway)
    Error in file #1:  bad Zip file offset (Error local header signature not found):  0
    (attempting to re-compensate)
    Error in file #1:  bad Zip file offset (Error local header signature not found):  0
    Help greatly appreciated.
    Amit

    Amit,
    Do not extract the com.sap.portal.support.browse, just rename it to the corresponding name with par.bak format.
    or
    You can directly get the par.bak file using below steps,
    System Admin -> Support -> Portal Runtime -> Browse Deployment -> press the link download -> press the button on the window "Open" -> extract the par.bak file
    Ram

  • Error in reciever file adapter , where i am getting file name dynamically

    hi all,
    error in reciever file adapter , where i am getting file name dynamically, please help me in this isssue , i am trying for a long time
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns0:MT_eINVOICE_RECV' found in document', probably configuration error in file adapter (XML parser error)': java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns0:MT_eINVOICE_RECV' found in document', probably configuration error in file adapter (XML parser error)'

    i am getting new error
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Channel has not been correctly initialized and cannot process messages
    this is my strcuture
    and i have changed my structure
    <HEADER>
    <ADDRESS1/>
    <ADDRESS2/>
    <ADDRESS3/>
    <ADDRESS4/>
    </HEADER>
    <HEADER_GST>
    <TAX1/>
    <TAX2/>
    <TAX3/>
    </HEADER_GST>
    <LINE>
    <QTY/>
    <UOM/>
    <UNIT_AMT/>
    <CHARGE_TO_DT/>
    </LINE>
    <FILENAME>
         <FILENAME/>
    </FILENAME>
    i have given the recordset structure as
    HEADER,HEADER_GST,LINE,FILE

  • Cannot Find Errors in Log File

    I can't seem to find where the Errors are stored in the Log File, I am trying to write a DataPlugin in VBS, and I'm getting runtime errors at the end of my script. It says to refer to the log file, but there isn't anything in the log file about my error. Where is the error log that this is referring to? Someone help.....

    Hi Garett,
    You can view the log file directly in DIAdem-SCRIPT, it's the bottom-most window with the gray background. I always have to scroll up a few lines to see the error, and usually there are two or three error events stored in the log file each time the DataPlugin fails to load. The last event, located at the bottom, almost always contains no useful information for DataPlugin debugging. You have to find the first event by scrolling up to find a reference to a line number in the DataPlugin which caused the error.
    Also note that the DataPlugin will throw an error if it runs through just fine but does not load any data. In other words, if you are building up your DataPlugin step by step (as you should), and are just at the early stages where you parse a few items in the file and look at their values, you can easily forget to create at least 1 group or channel. If the DataPlugin does not create at least 1 group or channel when it runs through, it will throw an error that the data loading failed, when really there is no error in the DataPlugin beyond that it loaded nothing.
    I like to output metadata values I'm parsing from the binary or header file as group properties when I'm building up the DataPlugin step by step, like this:
    Set ThisGroup = Root.ChannelGroups.Add(ThisGroupName)
    ThisGroup.Properties.Add MetaDataName, MetaDataValue
    Then I can look at a long list of metadata values in the Data Portal, and I never forget to load at least 1 group or channel in order to avoid that pesky error that nothing was loaded by the DataPlugin. You can also do the same thing with channel properties, of course:
    Set ThisChannel = ThisGroup.Channels.AddImplicitChannel(Name, 0, 1, 2, eI32)
    ThisChannel.Properties.Add MetaDataName, MetaDataValue
    Let us know if this doesn't help with your current issue,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Error While Control File Creation

    Hi Experts,
    i'm trying to create control file but i'm getting following error.
    SQL> CREATE CONTROLFILE
      2     SET DATABASE venk
      3     LOGFILE GROUP 1 ('C:\oracle\product\10.2.0\oradata\venk\redo01_01.log',
      4                      'C:\oracle\product\10.2.0\oradata\venk\redo01_02.log'),
      5             GROUP 2 ('C:\oracle\product\10.2.0\oradata\venk\redo02_01.log',
      6                      'C:\oracle\product\10.2.0\oradata\venk\redo02_02.log'),
      7             GROUP 3 ('C:\oracle\product\10.2.0\oradata\venk\redo03_01.log',
      8                      'C:\oracle\product\10.2.0\oradata\venk\redo03_02.log')
      9     RESETLOGS
    10     DATAFILE 'C:\oracle\product\10.2.0\oradata\venk\system01.dbf' SIZE 3M,
    11              'C:\oracle\product\10.2.0\oradata\venk\rbs01.dbs' SIZE 5M,
    12              'C:\oracle\product\10.2.0\oradata\venk\users01.dbs' SIZE 5M,
    13              'C:\oracle\product\10.2.0\oradata\venkemp01.dbs' SIZE 5M
    14     MAXLOGFILES 50
    15     MAXLOGMEMBERS 3
    16     MAXLOGHISTORY 400
    17     MAXDATAFILES 200
    18     MAXINSTANCES 6
    19     ARCHIVELOG;
    CREATE CONTROLFILE
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01163: SIZE clause indicates 384 (blocks), but should match header 60160
    ORA-01110: data file 1: 'C:\oracle\product\10.2.0\oradata\venk\system01.dbf'
    SQL>I'm search in google.
    ORA-01163:
    SIZE clause indicates string (blocks), but should match header string
    Cause:      The size specified in bytes in the SIZE clause of the CREATE CONTROLFILE statement does not equate to the number of blocks recorded in the header.
    Action:      Specify the correct filename and size ( in bytes ).But i don't know how to check the SIZE of header .. Pls Help

    Thanks for your help.
    @phaeus .. i really don't know enough or not ..i'm just learning in my own system.
    @mseberg Now getting below error.
    SQL> CREATE CONTROLFILE
      2     SET DATABASE venk
      3     LOGFILE GROUP 1 ('C:\oracle\product\10.2.0\oradata\venk\redo01_01.log',
      4                      'C:\oracle\product\10.2.0\oradata\venk\redo01_02.log'),
      5             GROUP 2 ('C:\oracle\product\10.2.0\oradata\venk\redo02_01.log',
      6                      'C:\oracle\product\10.2.0\oradata\venk\redo02_02.log'),
      7             GROUP 3 ('C:\oracle\product\10.2.0\oradata\venk\redo03_01.log',
      8                      'C:\oracle\product\10.2.0\oradata\venk\redo03_02.log')
      9     RESETLOGS
    10     DATAFILE 'C:\oracle\product\10.2.0\oradata\venk\system01.dbf',
    11              'C:\oracle\product\10.2.0\oradata\venk\rbs01.dbs',
    12              'C:\oracle\product\10.2.0\oradata\venk\users01.dbs',
    13              'C:\oracle\product\10.2.0\oradata\venkemp01.dbs'
    14     MAXLOGFILES 50
    15     MAXLOGMEMBERS 3
    16     MAXLOGHISTORY 400
    17     MAXDATAFILES 200
    18     MAXINSTANCES 6
    19     ARCHIVELOG;
    CREATE CONTROLFILE
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in identifying file
    'C:\oracle\product\10.2.0\oradata\venk\rbs01.dbs'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    SQL>@orafad     Thanks for your link :) .i'm referring this link
    http://docs.oracle.com/cd/E11882_01/server.112/e25494/control003.htm
    any way pls help to resolve this issue . So that in future if this kind of issue came i can solve my self.

  • How to include header files with different extensions

    Hi,
    When i include a header file with extension .ch (myincludefile.ch), the compiler gives error messages but when i change the extension to .h, the problem disappears.
    Can anyone help me getting rid of this problem?
    For example, for the line below, I get a warning such as, "attempt to redefine MY_CONST without #undef". Remember when i change the extension to .h, the problem disappears.
    #define MY_CONST 500 /* Constant */
    Thank you very much

    I don't see how the name of the file could cause or prevent error messages, except when template declarations are involved. So let's assume for now that the file has a template declaration.
    The Templates chapter of the C++ Users Guide explains about including or separating template declarations and their definitions.
    If you have only a template declaration in a file and the compiler needs the definition, it will look for another file with the same base name and include it automatically. For example, if you have files foo.h and foo.cc, and foo.h has a template declaration, the compiler will include foo.cc automatically, even if you didn't intend for that to happen. You can wind up with multiple delcaration errors that way.
    When looking for a file containing template definitions, the compile will not include a .h file, so as not to create recursive inclusion. If changing the file name to .h causes your problem to disappear, it seems like an unwanted automatic inclusion is the problem.
    You can try two things to find out:
    1. Compile with the -H option. The compiler will output an indented list of all included files. See if you are getting a file you didn't intend, or the same file twice.
    2. Compile with option -template=no%extdef. It disables the automatic search for template definitions.
    If you find an unintended included file this way, you will probably have to change the names or organizaiton of some of the files. Our implementation of the C++ standard library depends on NOT using the -template=no%extdef option, which might mean you can't use that option.

  • A question about /usr/include/sys/select.h header file

    good day! i hope i can get some help about this and i would be very grateful if my question will be answered. i have a question regarding the select.h header file that we include in our programs when we use the select(3C) function.
    * Select uses bit masks of file descriptors in longs.
    * These macros manipulate such bit fields.
    * FD_SETSIZE may be defined by the user, but the
    * default here should be >= NOFILE (param.h).
    29 #ifndef FD_SETSIZE
    30 #define FD_SETSIZE 1024
    31 #endif
    its says here in the header file that the value of FD_SETSIZE may be defined by the user and i need to know how. i've already tried declaring a constant at the beggining of the program but it didn't work...
    example:
    #undef FD_SETSIZE
    #define FD_SETSIZE 2048
    the FD_SET macro generates an error if a value larger than 1024 is passed from in the first argument. i need to increase its value in order for me to wait for more than 1024 socket descriptors on select function. how can i increase or modify its value? thanks in advance...

    AFAIK, the only way to change the FD_SETSIZE value is by building your own version of the libc.a and linking it statically to your executable. Not good at all IMHO.
    The sources of Solaris 8 contain the implementation of select(3C) with both standard and 'large' (64K) FD_SETSIZE.
    AFAIK, 64-bit version of the libc.so contains the 64K-descriptors version of the select(3C), so you may consider building your application with -xarch=v9 flag to get 64-bit application...
    As for poll(2) - there is a manual page (man -s 2 poll) and some notes in the Answerbook. poll(2) is the actual system call that is used by select(3C), which is an interface function, so there is no functional difference between these two.
    There is a potential problem with portability of your code if you are using poll(), but it looks like you have no choice... sorry about it...

Maybe you are looking for