In which header file does BOOL type defined

All,
Can anyone tell in which system header file does 'BOOL' type got #define'd or typedef'ed.
Because i get the following error, while doing a make.
parse error before 'BOOL'.
Regards,
venkat

Hi There,
The C language is case sensitive,
so if you are looking for the definition, you need to use lowercase bool or uppercase BOOLEAN
type.
The best way to search is
cd /usr/include or /usr/include/sys
and grep for the word pattern. These are
the standard header files.
eg. grep BOOL /usr/include/*.h
If you use grep -i BOOL /usr/include/*.h,
this will ignore the case and prints everything that
it finds that matches BOOL.
...jagruti
Developers Technical Support
Sun Microsystems, http://www.sun.com/developers/support

Similar Messages

  • JNI generated header file does not match the class file

    We have had a JNI project for many years and all has been fine. Within our libraries we have several classes that have inner enum classes.
    Recently we have moved to JDK1.7. Up to now when JNI generated the methods where the signature used the inner enum class, and it was an oveloaded method, we would get something like the following as the signature:
    Java_PackageName_ClassName_methodName_OuterClass_00024InnerEnum_2
    And the class file result of the build would look like the following:
    methodName(OuterClass$InnerEnum)
    Since we have moved to JDK 1.7 the header file looks like the following:
    Java_PackageName_ClassName_methodName_OuterClasss_InnerEnum_2
    The class file is still the same, and because of that when we run the program we get an UnsatisfiedLinkError. I understand that this error is because the VM cannot find the implementation. So why JDK 1.7 generates a header file that does not match the class file?
    Thank you in advance.

    I don't have 1.6 to verify but your statements about what is generated for 1.7 for the header appear correct.
    The 000024 represents the '$' and for 1.7 the inner class is still named using '$'. So for example after compiling in 1.7 the inner class file is named the following...
    MyClass$InnerEnum.class
    So a one to one conversion should have kept the 000024 (presuming it does in fact do it that way in 1.6.)
    You might want to look at the release notes for 1.7.
    If you need a solution you could add a post javah step that renames the file.

  • Which control file does RMAN use?

    On March 1, full backup along with control file was taken
    On March 3, full backup along with control file was taken
    On March 5, there is a media failure (some datafile is corrupt, but control file is intact).
    So, RMAN restores March 3 full back up, and applies archived logs. But my question is: which controlfile does it use? The one on march 3? The one on march 5? Or Both?

    The first choice is always the actual,current controlfile. Backed up controlfiles are only used, when all current controlfiles are lost.
    Werner

  • What's This Help not working for one entry in each header file

    I have a large RoboHelp project that I have imported into Version 8 from a previous version. Prior to the import into Version 8, all of the What's This Help in the project was working perfectly; now, post-import, I have a problem.
    Firstly, some background information.
    My project contains a large number of individual header (.H) files, one for each dialog within the software. These header files, which have been generated and provided by our developers, contain one entry for each field on the dialog to which the header file relates. The header files are all contained within a \HTML Topics\Fields\ folder (going from the root of my Help project).
    Each header file has a corresponding text (.TXT) file. These text files contain entries that correspond to the entries in the relevant header file. The text files are also contained within the \HTML Topics\Fields\ folder.
    Below is an example of the contents of a header file:
    #define IDH_HIERARCHY_APPEARANCE_HIEARCHY_LIST          16811
    #define IDH_HIERARCHY_APPEARANCE_ADD_APPEARANCE         16812    
    #define IDH_HIERARCHY_APPEARANCE_REMOVE_APPEARANCE      16813
    Below is the contents of the corresponding text file:
    .topic IDH_HIERARCHY_APPEARANCE_ADD_APPEARANCE
    Click this button to add a new row of hierarchical appearance settings to the grid.
    .topic IDH_HIERARCHY_APPEARANCE_HIEARCHY_LIST
    Use this grid to define hierarchy appearance settings. Each row in the grid represents a level of the hierarchy. For example, the appearance settings you define for the first row apply to the top level of hierarchy, the settings you define for the second row apply to the second level, and so on.
    .topic IDH_HIERARCHY_APPEARANCE_REMOVE_APPEARANCE
    Click this button to delete the selected row of hierarchical appearance settings from the grid.
    The What's This Help that was part of the original project still works perfectly. However, after upgrading the project to RoboHelp Version 8, I have had to update the project to reflect changes to the software. As part of this work, I have imported some new header files and updated some existing ones - and edited the corresponding text files accordingly.
    The What's This Help that is covered by the header files that I have imported since the upgrade to RoboHelp Version 8 does not work correctly; in each case, the What's This Help does not work for whichever field appears at the top of the appropriate text file. The position of the entry in the corresponding header file does not make a difference.
    If I manually edit a text file to move a different entry to the top then recompile the Help project, the What's This Help does not work for the field that now appears at the top of the text file - and the What's This Help for the field that used to appear at the top of the text file now works.
    I've tried everything I can think of to fix this, but nothing has worked. It seems as if there is a problem in the way RoboHelp is compiling the header and text files.
    If I use Microsoft HTML Help Workshop to decompile the CHM file, then view the contents of the resulting, decompiled text files, the affected files appear as follows:
    .topic IDH_HIERARCHY_APPEARANCE_ADD_APPEARANCE
    Click this button to add a new row of hierarchical appearance settings to the grid.
    .topic 16811
    Use this grid to define hierarchy appearance settings. Each row in the grid represents a level of the hierarchy. For example, the appearance settings you define for the first row apply to the top level of hierarchy, the settings you define for the second row apply
    to the second level, and so on.
    .topic 16813
    Click this button to delete the selected row of hierarchical appearance settings from the grid.
    Note how the entry at the top - which relates to the What's This Help that doesn't work - appears differently to the other entries which do work. The name of the ID appears after ".topic" rather than the appropriate ID number.
    Any help that anyone can provide me with would be very much appreciated.
    Thank you,
    Mark

    Its working now. We just kept trying to reinstall the tools and restarting indesign. On the 4th time the buttons started working. I can't explain why it finally worked, just that it is working now.

  • 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?  

  • How to use preprocess​or directives (#define) in C++ header file with LabVIEW 8.2

    I have a C++ header file that contains around 2000 preprocessor directives:
    #define MEM_1   0xC
    #define MEM_2   0xD
    #define MEM_3   0x18
    I want to be able to "access" these memory offsets by identifier name (MEM_1) in my LabVIEW program like I would in a C++ program.  I do not want the overhead of parsing through the header file and storing all the offsets into an array or similar structure. 
    I've written a simple Win32 console program to return the memory offset given the identifier (see code below), and created a DLL to use with my LabVIEW program.  In the console program, you notice that I can call a function and pass in the identifer name, and get the offset back correctly:
    getOffset(MEM_1);
    In LabVIEW, I was hoping to be able to pass in the identifier (MEM_1) but was unsure what datatype to use.  In my C++ code, I defined the parameter as an int.  But in LabVIEW, I can't enter in MEM_1 as an int.   Can someone advise on how to do this?  Or if there is an alternate way to use #define's from external code inside LabVIEW?
    #include "stdafx.h"
    #include "scrmem.h"
    #include "stdio.h"
    void getOffset (int var);
    int _tmain(int argc, _TCHAR* argv[])
     getOffset(MEM_1);
    canf("%d");
     return 0;
    void getOffset (int var)
     printf("The address of MEM_1 is %x", var); 

    kaycea114 wrote:
    Hi,
    Where do you think I should use the string? 
    The way that getOffset is currently defined in the DLL, I have to connect an integer input into the LabVIEW function.  This prevents me from entering in: MEM_1 as the input to the LabVIEW function.
    Are you suggesting that I change getOffset to receive a String parameter ("MEM_1")?  Does that mean I need to do a string compare (line by line) through the header file to get the offset?  It seems like doing this search through the header file would degrade performance, but if that's the only work around, then I'll do it.
    Please advise.
    Well, what you want to do is indeed entering a string and getting back the assigned integer. That is what the C preprocessor is doing too although there it is done only once at the preprocessor stage of course and not at runtime anymore. But LabVIEW is not a C preprocessor.
    What you did so far seems to be to define getOffset() that accepts an enum that needs to be created from the C source code to then return the assigned constant. That's of course not very helpful.
    And writing a VI that could parse the C header file and create a name/constant array is really a lot easier than doing the same in C. You don't even need to parse the file each time again, but can instead cache them in an uninitialized shift register (LV2 style global).
    Even more easy would be to create from that data a ring control using property nodes and save it as custom control and voila you have the most direct lookup you can get in LabVIEW and it works just as comfortable as using the define in C code. It would mean that you need to seperate your header file possibly into several different files to only get related constants into the same ring control, but that is easily done.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • VS2010: Why does my C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include does not get all the needed header files?

    Hello,
    I have installed VS2010 Professional. I have done a full install. The I install the 2010 redistributable and 2010 SP1. So I think I have installed all the needed products. But my include files has only 3 files :(. anmintrin.h, srv.h, wmiatlprov.h. My colleagues
    who have installed the same three products have some 200 header files. My guess these header files are coming from some SDK or so. I have 5.0, 6.0A, 7.0A. 7.1A, 8.0, 8.0A SDKS installed. What am I missing? 
    Please check this http://stackoverflow.com/questions/13656856/cant-get-visual-studio-c-include-file-excpt-h-to-get-installed and there the person tells to practically remove all and install all and another answer says just copy it. My hope is Microsoft
    might have a more logical and technical answer than doing something blindly without rhyme or reason
    A clear cut answer might help the community. 
    thanks
    ananda

    Hi Ananda Vardhana,
    What about your issue now?
    If you have resolved it, you can share the solution here, which will be beneficial for other members with the same issue.
    If you did not, whether you can provide us more information as Barry said for resolving this issue?
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • From which file does oracle tells you that a session has connected success

    Hello,
    From which log files that Oracle tells you that a session has successfully connect or unsuccessfully connected. Does the listener.log contain this information? Thank you.

    902029 wrote:
    Hello,
    From which log files that Oracle tells you that a session has successfully connect or unsuccessfully connected. Does the listener.log contain this information? Thank you.It depends upon how exactly "success" is defined.
    Listener reports status = 0 (success) in listener.log,
    even though connection to DB fails with incorrect password.

  • Does arch install library and header files into system when using abs?

    In traditional make way, when compiling a package, I must install some library or header file or tool packages to satisfy its depends, but after compilation, I do "make install", and run it. At runtime, library and header file and tool packages are not needed....
    This make a lot of unuseful packages are left in the system.....
    In arch linux , when I using abs to make a package, does these packages are left in the system ?
    How abs separates the compile-time depends and the runtime depends ????
    Last edited by iamybj (2010-03-22 01:24:57)

    tomk wrote:
    The PKGBUILD has a depends array and a makedepends array. Anything that's required at runtime goes in the depends array, and must be installed for the application to run successfully. Anything that's only required at buildtime foes in the makedepends array, and can be removed from the system after the application has been built.
    man PKGBUILD and various wiki pages for more details.
    Anything that's only required at buildtime foes in the makedepends array, and can be removed from the system after the application has been built.
    ==================
    Who remove them ? user or the abs ??
    I think the best method is file dependence , not package dependence.....
    Software is arranged by package. but its dependence is file. When Install a package, pacman check its file dependence, and install the packages which include those files....
    If a  not explicit installed package 's file does not required by any other packages , it can be removed automatically !
    In this situation ,pacman can find packages that not needed after compilation, and remove them.
    Last edited by iamybj (2010-03-22 03:15:06)

  • Which SIM card does the iPad mini take? Does it have to be specific type of SIM for the iPad mini?

    Which SIM card does the iPad mini take? Does it have to be specific type of SIM for the iPad mini?

    Welcome to the Support Communities. The answer to your question is available in Apple's website — see the Input/Output section here:
    http://www.apple.com/ipad-mini/specs/

  • The file may be corrupt. The file header checksum does not match the computed checksum.

    I just put Vista Home Premium on a computer I was going to give to my son. Upon adding some hardware I kept getting the above screen. "The file may be corrupt. The file header checksum does not match the computed checksum.' When I booted in safe mode and slow boot, it hung on crcdisk.sys. I removed everything except the keyboard hhd dvd and fdd and it still does the same thing. I tried to reinstall Vista but it keeps hanging. From reading a lot of other threads this seems to be a big problem. I doubt if the product should have been marketed. But.... If anyone can help me get it booted I would like to try XP instead. I tried to install XP on the same drive and it hungs there too.

    Hi ballen6721,
    Thank you for the post.
    This issue can occur if the newly installed hardware device is incompatible with the system.
    Based on the current situation, I suggest trying the following steps to troubleshoot the issue:
    Method 1 Device Clean Boot
    ============================================
    Please unplug all unnecessary devices such as sound card, printer, network card and TV card.
    Method 2: Startup Repair from the Windows Recovery Environment (WinRE)
    ============================================
    1. Insert the Windows Vista installation disc into the disc drive, and then start the computer.
    2. Press a key when the message indicating "Press any key to boot from CD or DVD …". appears.
    3. Select a language, a time and currency, and a keyboard or input method, and then click Next.
    4. Click Repair your computer.
    5. In the System Recovery Options dialog box, choose the drive of your Windows installation and click Next.
    6. At the System Recovery Options Dialog Box, click on Repair your computer.
    7. Click the operating system that you want to repair, and then click Next.
    8. In the System Recovery Options dialog box, click Startup Repair.
    Method 3: Use the Windows Recovery Environment (WinRE) to run System Restore ============================================
    1. Insert the Windows Vista installation disc into the disc drive, and then start the computer.
    2. Press a key when the message indicating "Press any key to boot from CD or DVD …". appears.
    3. Select a language, a time and currency, and a keyboard or input method, and then click Next.
    4. Click Repair your computer.
    5. In the System Recovery Options dialog box, choose the drive of your Windows installation and click Next
    6. At the System Recovery Options Dialog Box, click on System Restore.
    7. Follow the System Restore Wizard instruction and choose the appropriate restore point.
    8. Click Finish to restore the system.
    Note: If you computer is an OEM one, the method to enter WinRE can be different, you may contact your OEM to consult how to enter WinRE.
    Can we start the computer now?
    If the issue persists, please help confirm the following points:
    1. What hardware changes have you made recently?
    2. Can we enter Safe Mode now?
    I look forward to hearing from you.
    Best regards,
    Tim Quan
    Microsoft Online Community Support

  • "the file header checksum does not match the computer checksum." Pavilion P6000

    HP Pavilion P6000
    Windows 7 64-bit
    The file is possible corrupt.  The file header checksum does not match the computer checksum
    I was previously getting blue screens saying things like "Memory_Management"

    I see you have damaged both your hardrive(hardware) and your operating sytem (corrupted too, software)
    You may want to run an diagonstic test of your hard drive complete before trying to reinstall windows.
    Press ESC right after power button and repeatdley and look for Diagnostic test and start up test and hard drive test.
    Please report results.
    Sorry because of different timezone I might not be able to help/reply you right away.IF that happens I deeply apologize!
    **Click the White thumb if you like the answer.**
    **Please mark Accept As Solution if it solves your problem and only solves your problem, if you have any more questions please ask, this also helps others to solve related issues.**
    Feel yourself like home here, we are all happy to help, if you have an question reply or start a topic or pm me or an expert.

  • Using live HTTP header get This XML file does not appear to have any style information associated with it. The document tree is shown below

    Im using ReloadEvery 3.6.3 & Live HTTP Headers 0.16 plugin's for playin mobsters on myspace. After capturing the the script, editing & placing in the address bar I recieve a message: Failed Security. This XML file does not appear to have any style information associated with it. The document tree is shown below. There was nothing on the Tree. I know the script was edited correct cause it works on the other PC's. Operating system is win7 & Firefox is current. Thx.
    == The first time

    yea I got the same error for playing files on filestube and its just not that, ever since 2 days ago when I updated firefox everything have just started to ..uck up all the time, high cpu memory load without any addons and it wont terminate for another 20secs after I close it... I think I'll just reinstall with an older version, everything worked just fine then

  • Which file does possess the class Swing??

    When I try to compile a program a mistake it is generated in the line:
    import javax.swing. *;
    I possess jdk1.4. Which the file that possesses the class swing to add in the classpath??

    I guess, that is not the problem.
    Is there a space between javax.swing. and the * ? - there must be none
    greetings Marsian

  • Which 3D file formats does PDF support?

    Which 3D file formats can I insert (import) into a PDF?

    Universal 3D (.u3d) and Product Representation Compact (.prc)

Maybe you are looking for