What package contains /usr/include header files?

(Sorry for the x-post; put it in the wrong place originally.)
I'm trying to find out which package contains the header files located in /usr/include/. I'm trying to compile some stuff and these headers aren't found. Any ideas? This is Solaris 10 x86 8/07.

Alan, thanks for the reply -- I've sorted it out.
I was looking for the "standard" headers in /usr/include/ such as stdio.h, sys/stat.h, to name a few. Found them in the SUNWhea package.

Similar Messages

  • Including Header files

    Hi
    Am a mainframe guy and new to these stuffs.
    Now ,I want to compile a C++ program in Sunstudio.
    My question is how & where to add the header files ?
    What is the extension to be used for the header files ?
    Please someone help me in this regard.

    [I had replied to this yesterday but it didn't appear to show up in the thread]
    The header file is added to the 'Header files' in the same project For Sun Studio, I am pretty sure that the header files listed in the project
    is not used by the compiler to find the header files.
    That list of header files is merely a convience for the programmer
    as a reference and to quickly find and open header files used in the project.
    You need to tell the IDE which directories to search for header files
    (that are not standard header files)
    I am presuming that the header file(s) the compiler is complaining about is not a standard library header file,
    but instead is a header file associated with the source code you are compiling or are associated with
    a 3rd party library required by the program.
    The #include semantics, as ralphw mentioned, can be a little complex.
    As a quick follow up to ralphw's response
    generally #includes of the form
    #include "foo.h"
    indicates that the header file is in the same directory as your project source files.
    Normally the compiler can find this file with some simple seach heuristics so
    I suspect the offending include line is of the form:
    #include <foo.h>
    The <> brackets indicates that the header file is in a directory to be specified
    in one of the listed include directories.
    Include directories may be intrinsic to the compiler implementation
    such as standard libraries and/or libraries added by the compiler vendor;
    or they may be header files for 3rd party libraries or your own libraries
    stored in some directory other than the application program you are compiling.
    For 3rd party libraries or your own libraries, provide a list of
    directories to seach for included header files.
    for command line mode, in almost all c/c++ compilers these directories are listed with
    the -I command line argument.
    In SunStudio 12, you list the include directories in
    your project properties / Parse configuration / Sun C++ compiler / General / Preprocessor definitions
    If you have further questions on this, it would be helpful to know
    if you are attempting to compile some preexisting code
    or are you creating code from scratch.
    (It sounds like you are compiling preexisting code that
    presumably has been compiled correctly in some other implementation
    and are trying to port it to Sun Studio.
    If this is the case, it sounds like you simply need to add the
    path of the directory containing the offending header file to
    this list of include directories.)
    It would also be helpful to know the fully qualified
    file name of the offending .h file,
    and the form of the #include line in the file that is being compiled.
    If the #include line is of the form
    #include <dir/foo.h> then you need to add the
    path of the 'dir' parent directory to the include directories list.

  • /usr/include header library

    Hi,
    In Solaris 5.6, header files such as time.h and setjmp.h can be found in the /usr/include directory. I have an application running on 5.7 that tries to link to these header files. However, they are not located here on the box in question. I'd like to know if this is normal. I suspect that there may be some sort of option in the Solaris install that allows you to omit the files.
    I would be very greatfull for any help.
    Chris

    Chris,
    Files time.h and setjmp.h on 2.7 are in same directory. While installing Solaris what option you have selected? If you do deafult installation it will do only end user
    support . Please do custom installation and choose option entire distribution.
    Please check on same. Hope this helps you.
    Thanks,
    Santosh

  • How to include header files from different directories?

    Hi,
    Sorry for the newb question, but I can't figure this out. I'm trying to compile a simple piece of code (C++) that uses header files in a directory different from the Project directory; header files are in /opt/csw/postgresql/include/pqxx. I've tried a few different things, adding that directory to the include directives under Resource Files, add existing files from a folder, etc etc. Whenever I try to build, dmake bails with status -1. I can't seem to get this working, can someone explain how to use header files from different directories?
    Thanks,
    SlowToady

    Header files are usually specified relative to a base directory. If the base directory is not a system directory -- /usr/include or the compiler installation directory -- add a command-line directive
    -I path/to/base/dirfor each such directory.
    The path can be absolute, such as
    -i /opt/csw/postgresql/includeor relative, such as
    -I ../../my/includeIn your source code, specify the header file relative to the base directory, and be sure to use quotes, not angle brackets. Example:
    #include "header.h"  // right
    #include <header.h>  // wrongThe angle brackets are used for system headers, like <iostream> or <stdlib.h>.
    The rules above are common to all compilers on Unix and Linux, and generally to all C and C++ compilers.
    For more details, read about the -I option in the C++ Users Guide. You can find the guide by pointing your browser to the "docs" directory in the compiler installation, or go here:
    http://docs.sun.com/app/docs/doc/819-5267
    All command-line options are described in Appendix A.

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

  • What is syntax to include a file ??

    Hi,
    I am trying to include a JSP file using below syntax .
    <%
    String corFile="sample/cat/01.jsp";
    corFile="/"+corFile;
    %>
    <%= corFile %>
    <%@ include file=corFile %> ==> It throws error.
    <%@ include file= "/sample/cat/o1.jsp " %> works.
    If I output the corFile in JSP it gives me ""/sample/cat/o1.jsp".
    If somebody in the forum can tell me what I am doing wrong here???
    Thanks
    jack

    Try this:
    <jsp:include page="<%= corFile %>" />
    or
    <%@ include page="<%= corFile %>" %>
    Although, I'm not sure you can use expressions in either, so they may not work. You might just have to use a string (the one you posted that works.

  • SRM 4.0 Business package contains only an .SCA file?

    I am trying to implement the necessary BP into EP 6.0 SP2 so that I can access SRM 4.0 content(EBP 5.0).  In looking at the contents, the zip file only includes a single sca file.  I'm confused on how to import this so that I get all of the Iviews.

    Hi,
    you have to use the SDM-Tool to deploy the SCA-File.
    Greets
    Daniel

  • Solaris 10 include files? what package?

    Two parts to this...
    1. I downloaded the Solaris 10 8/07 CDs and burned them. I started installing and when it asked for CD3 and CD4, and I inserted them, the % meter jumped from 1 to 100 and it appeared that nothing was installed from those two. I selected "Everything" or "All" or whatever from the package selection screen. I was in text mode if this matters.
    2. Main question: what package contains the /usr/include/ *.h files? I've got gcc installed and working but I can't compile anything. What SUNW* package are these in?

    At a minimum, SUNWhea. But other packages may be necessary as well.
    Check this entry from the Solaris 2 FAQ:
    http://www.science.uva.nl/pub/solaris/solaris2.html#q6.2
    Darren

  • Java package and c++ header files

    What is the difference between importing java package and including header files in c++?

    I do not know .. have been away from C/C++ for a long time...
    As much as I remember you can only import one header file each time... also when you import a header file you can just call methods from the header file automatically ...
    However I could be very wrong on this .. really lost touch from C/C++ ...
    regards,
    Sim085

  • C header files include environment setting

    Hi, Guys
    When I try to compile a directory applicatoin that should use header file located in /usr/ucbinclude/sys/dir.h on solaris 8.
    If I just code in my C code as:
    #include <sys/dir.h>
    The compiler can't find it.
    If I code in my C code in full path name as:
    #include </usr/ucbinclude/sys/dir.h>
    compiler can find it.
    Who can tell me, how I can set export include header file in my profile to support
    #include <sys/dir.h> to work?
    I know I can set LD_LIBRARY_PATH to support share lib, but how I can set include environment?
    Thank you!

    The normal way to handle this is with the -I option on the compile line:
    cc -I/usr/ucbinclude -c myprog.c ...
    Is there a reason you can't use the -I option?

  • Virtualbox - install build and header files for your current kernel

    I have initially installed virtualbox before upgrading the Arch
    Also took backup of the kernle before upgrading since kernel26 2.6.30 is having problem with virtualbox
    After upgrading I have configure the grub to use the previous kernel i.e 2.6.28
    Later  installed xorg and want to install the video drivers from VBox additions
    but running
    sh VBoxLinuxAdditions_x86.run
    i get the following
    install build and header files for your current kernel
    The current kernel version is 2.6.28 Arch
    What are the build and header files I have to install or search with pacman
    And since i have upgraded the system will I able to look up the header and build files needed for kernel 2.6.28

    dmartins - he's talking about his kernel's headers, not the kernel-headers package - they are two very differnet things.
    sant527 - when you backed up the 2.6.28 kernel, did you remember the files in /usr/src/linux-2.6.28-ARCH/ ? They're what VBox is looking for.

  • Jni unable to open header file

    Hi,
    I am new to convert java code to .h file and using in c or c++.
    I got this code from net
    which i implement but i not get success.Please guide me where i am wrong.
    code taken from this url:
    http://www.pacifier.com/~mmead/jni/cs510ajp/example_details.html
    //HelloWorld.java
    class HelloWorld {
      public native void displayMessage();
      static
        System.loadLibrary("HelloWorldImp");
    }after using javac compilation
    javah -jni HelloWorld
    file created
    HelloWorld.h
    //HelloWorldImp.cpp
    #include <stdio.h>
    #include "HelloWorld.h"   // this header file was generated by javah
    JNIEXPORT void JNICALL Java_HelloWorld_displayMessage(JNIEnv *env, jobject obj)
      printf("Hello World!\n");
    }but in turbo c error is coming
    unable to open HelloWorld.h file.
    I don't understand what is wrong.
    I have to set any kind of path or what.
    I kept this header file in same folder but its not working.
    If u know how to call this header file please help me.
    Or i have to use any other compiler please suggest me.
    I am using turbo c compiler.
    Thanks and regards,
    Rakesh Kumar.

    If the include is speicfied with quotes (include "file.h") then it is expected to be in the same directory as the C/CPP file. If hte include is specified as <file.h> then the compiler will look for it in a defined path.Rubbish.
    The compiler will look along the paths defined in the -I argument in both cases. If the file is specified on quotes it will also look in the same path as the.c/.cpp file.
    In this case, the file should be in the same location as the CPP file.
    This is very basic stuff.

  • Missing header files when importing a shared library with labview 8.6?

    Hi all,
    I want to import a .dll into my .vi program but I am not able to do it...
    I have created the dll  following the ni website tutorial
    http://zone.ni.com/devzone/cda/tut/p/id/3303#toc2
    Once the dll has been created, I have tried to import it with
    Tools-Import-Shared Library(dll)
    After parsing the header file appears an error like this one:
    void __cdecl Zdmt(LVBoolean *stop, double P, char channelName[],
        TD1 *errorIn, TD14 *FFTOptions, TD12 *Calibration, char FileName[],
        int32_t minRecordLength, TD26 *InstrumentHandler, LVRefNum sessionRefArray[],
        LVRefNum *queueIN, TD1 *errorOut, LVBoolean *averagingDone,
        HWAVES LastRecordFetched, TD24 *Impedance, TD17 *ColeColeCluster,
        TD18 *FFTcluster, TD5 *InstrumentHandleOutputCluster, LVRefNum *queueOut,
        int32_t *Acquired, TD6 *FreqTimeInfoCluster, double *averagesCompleted,
        int32_t len);
    The following symbols are not defined:
    LVBoolean; int32_t; LVRefNum;
    Undefined symbols can prevent the wizard from recognizing functions and parameters. To correct this problem, check the header file to determine if you must add predefined symbols. Click the Back button to return to the previous page of the wizard to add a preprocessor definitionsl (for example, "NIAPI_stdcall = __stdcall" or "NIAPIDefined = 1").
    The following header file was not found in the specified header file or one of the referenced header files:
    -  extcode.h
    To fix, click the Back button to go to the previous page and add the header file path to the Include Paths list.
    I have replaced the first line #include "extcode.h" of the dll header file for #include "C:\Program Files\National Instruments\LabVIEW 8.6\cintools\extcode.h" that is the full path where the header file is located. However, new libraries seems to be missed:
    -  stdint.h
    -  MacTypes.h
    Does anybody know what I have to do??
    Any help will be really appreciated,
    Regards,
    Benjamin

    If you use any of the LabVIEW cintools headers, they reference other headers too. The import wizard is written in a way that it simply skips parsing datatypes that can not be resolved due to missing header files.  If your functions you want to import references such datatypes then you get an according error about any include files the wizard could not load, otherwise not. The wizard can not know which of the missing header files is the problem since it obviously doesn't know what would be in those header files.
    The LabVIEW cintools headers are multiplatform, meaning they evaluate various compiler predefined defines to determine which platform they are included in. The import library wizard does not define any specific defines, since it is not really a compiler. So you have to define them. And they get adapted with each new LabVIEW version to support new compilers and compiler versions, so the defines described in the link in the first post do not have to be correct for cintools headers in newer LabVIEW versions.
    All in all writing DLLs that interface to LabVIEW cintools headers should not be done by writing them and then importing them using the wizard but instead you should write the VI and create the Call Library Node, then let LabVIEW create a template C file from the context menu of the Call Library Node and copy that into your C sources and fill in the functions from there.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • What's the largest header file in /usr/include/sys?

    Just noticed this,
      $ ls -l /usr/include/sys | sort +4n | tail -3
      -rw-r--r--   1 root     bin        59151 Jul  4 03:39 dtrace_impl.h
      -rw-r--r--   1 root     bin        76941 Jul  4 03:39 sunddi.h
      -rw-r--r--   1 root     bin        83768 Jul  4 03:39 dtrace.hwhich is great because dtrace.h is so rich with comments, and dtrace_impl.h has plenty of ASCII art. Hooray!
    This more than makes up for the sins of /usr/include/sys/tnf_probe.h! ;-)
    .... now if you guys are ever bored, feel free to update /usr/include/sys/swap.h, /usr/include/vm/anon.h ... :-)
    Brendan

    Sorry I was really busy the last few days. Thank you for your answers!
    I probably should have left out all the specifics of what the software was that I was packaging, because I think what I was really asking did not come across clearly. What I really wanted to know is:
    Why do I have to provide the "-I /usr/include/headers_dir" compiler option for some libraries but not for others, although the header files for each lie in a level 1 subdir of /usr/include?
    I thought that maybe there was some kind of index of installed libraries that I didn't know about, which I could have updated from within PKGBUILD (so I guess that's why I included it originally). Seems to me now, though, that this is not the case.
    I did put in some google time (but not lots b/c 1. hard to google and 2. busy) to find an answer, but to no avail and it's not really top priority right now (and quite honestly never will be, since there is the -I option), so I guess it'll have to wait, unless someone knows...
    ---EDIT---
    So, right after I posted this (stupid me) I had a little think and I finally understand, whats happening.
    1. Headers are not found without specifying the directory they are in.
    2. I need the -I option because easykf headers are not well formed.
    Thanks a lot!
    Last edited by maximax (2013-09-27 00:26:03)

  • Where to get header files under /usr/include/snmp

    My source codes relate to SNMP subagent. Currently mu codes is conpiled in a SOlaris 7 machine. I can find the needed header files in /usr/include/snmp. Now I want to build another compiling machine with SOlaris 9. But after I installed Solaris 9, I can not find the header files under /usr/include/snmp/. Is there some specific packages I need to install? Or Solaris 9 has removed or changed the name of these files?
    Thanks!
    Yong

    So say if My page ProjectPG.xml has main controller ProjectPGCO then I have to write a class xyzProjectPGCO which extends ProjectPGCO .
    Write me logic here ....in ProjectPGCO
    After that I have to modify ProjectPG.xml and set its controller as xyzProjectPGCO
    Please let me know if this is right way of doing ?
    Thanks,
    Milind

Maybe you are looking for

  • Set current record to uppercase

    Hi, How can i set a particular item in the current record to uppercase at runtime. Set_item_property is setting the item in all the records to uppercase. Thanks in advance. Phebe

  • COMM_SRTUCTURE is uknown when migrating data flow bw 3.x to 7.4

    Dear ALL, 2LIS_13_VDHDR data flow migrating 3.x to 7.x , ABAP syntax error COMM_STRUCTURE is unknown infosoure transformation level, present we are using 7.4 sp5 . after migration ABAP code TYPES:       BEGIN OF _ty_s_TG_1_full, *      InfoObject: 0C

  • Can I password protect access to Time Machine??

    Hey guys .. Ive just switched over from PC to mac. So far Im loving it and doubt Ill ever use a PC again. I do have a question about Time Machine though. Is there a way to password protect access to the Time Machine interface ? Cheers Darren

  • 10g on Windows XP

    HI Gentlemen, I installed 10g on my XP Pro; however, it claimed that "Could not install OCR". Is it very important or can I skip the problem? Thanks, kind regards from Miklos HERBOLY

  • How to concatenate string with a numeric control ?

    Hi, How to concatenate string with a numeric control ? Thankyou. Solved! Go to Solution.