Header file changes

I am trying to build a library that built fine in 10.4.x (ppc). Now the build breaks because INT_Min and INT_MAX aren't defined. These variables are defined in /usr/include/i386/limits.h which gets included by including /usr/include/limits.h. Does anyone know what changed to make this fail now. I am running 10.5.1 on an 8 processor intel machine.
Thanks,
Doug Reeder

Steve,
Thanks so much!!! Your answer is solid gold!!
Gracias,
JC

Similar Messages

  • Concerning header files and include files

    I presently have a site I created in Frontpage 2003, Gunshows-USA.com.  It has seperate pages for each state and month.  I had a header file called head.shmtl that I included on each page.  This allowed me to create one file and reuse it on 50 different pages.  I was also able to place it on the page in such a way that I could include it under the Title of the page and even iinsert an indiviual banner above the header.shtml.  Will I be able to do basically  the same thing with Dreamwaver 5.5s header and footer function?  If so, is there anything special I need to be aware of?

    I guess I didn't quite explain myself as well as I should have. 
    1st I had used include files on my site for a header and a footer but the site broke and when I got it back up it was necessary to load code for each header file to each page to get it to appear.  I am not presently using include files on the site.  The site was created in FrontPage 2003 and I intend on migrating it to Dreamweaver as soon as I know a little more about what I'm doing with DW
    2nd.  When I had the include files working I did NOT have to change everything on every page when I wanted to change something in the header or footer.  The way I have it set up now I do.
    3rd.  Going through different tutorials books, etc I see that I can create a file with a header, a body, and a footer from the templates that are built into the program.  An example is the 3 column fixed, header and footer. My question is, if I use this layout will that layout follow throughout the site and will I be able to basically do the same as I did when I was using includes?  Will a change to the header file change every header file?
    4th.  Can I position the header file sot that it has space above it.  Or another words can I have the header file appear in the middle of the page?
    5th.  Is if possible to have more than one header or footer file and be able to call the one I want or use all one after another?

  • 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

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

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

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

  • Xcode not finding header files

    Xcode can be incredibly frustrating. I have a C++ project and created a command tool target in it. In editing the target the only things I changed were:
    Added a directory to the header search path
    Added a directory to the library search path
    Problem is when I build, the header search path that I added is not included, so the compile does not find the header files it needs. To make matters more puzzling, the same project has another almost identical target that does not have this problem. Is there any voodoo to perform that will get xcode to use the search paths specified in the target dialogue?
    I could revert to using a makefile but then what good is the fancy xcode IDE?
    Tony

    I did import the library but at this stage, it is not the problem. I cannot get past the compile stage because it does not include the header search path I specified. I tried adding it to the header search path. When that didn't work, I tried putting it in the user search path, with always search user paths checked, then when that didn't work, unchecked.
    Something might be corrupted with the project (although there are no other symptoms - just guessing). It cannot be the target because I have tried (many times) deleting the target and creating a new one. Same bad result.

  • Import c struct from dll header file into TestStand?

    Hi,
    I'm writing a TestStand sequence to call some CVI functions I have compiled into a dll. One header file in the CVI code is the interface to the dll and declares some functions and some C structs which are to be passed into the functions as pointers. These structs are populated with test results as the CVI code executes. I want to import these structs into TestStand.
    TestStand seems to have properly imported my function calls because I can select them from a drop-down list. But it doesn't seem to recognize my struct definitions, because it just says "unknown __struct 617*" -- it knows it's a C struct pointer but doesn't know what fields exist in the struct.
    How do I get TestStand to recognize the fields that are in my structs?
    The C functions and structs are declared with DLLEXPORT in the header file. I compile the CVI code into a dll, with the target settings set to export marked header files and symbols. The only header file marked in the target settings dialog is the header file declaring these functions and structs. So I think they're being exported properly into the dll.
    Any ideas to help?
    Thanks!

    I'm using typedef struct {...} MyStruct; to make life easier in CVI world, so rather than changing that throughout my CVI code I think I'll just live with the fact that TestStand doesn't know what struct type it is.
    But typedef or not, is it ever possible for TestStand to import the struct definitions (ie so that it knows what fields and types exist within the struct)? Or do I have to make containers in TestStand that match the format of the structs I'm using in CVI, and pass those container pointers into my CVI function calls?
    Thanks!

  • Database file changed ora-01251   how to solve?

    hai all,
    database file changed ora-01251 how to solve?
    suddenly changed when i try to connect Oracle Management server(OMS)
    thanks
    rcs
    =======
    os:winxp
    db:Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
    SQL> Recover database
    ORA-00283: recovery session canceled due to errors
    ORA-01110: data file 9: 'F:\ORACLE\ORADATA\BIMPEX\BIMPEX.ORA'
    ORA-01122: database file 9 failed verification check
    ORA-01110: data file 9: 'F:\ORACLE\ORADATA\BIMPEX\BIMPEX.ORA'
    ORA-01251: Unknown File Header Version read for file number 9
    WRONG FILE TYPE
    F:\ORACLE\ORADATA\BIMPEX\BIMPEX.ORA
    ========

    Hi..
    Would like to know if any changes were done before this error popped up..
    From metalink :--
    >
    Error:     ORA-1251
    Text:     Unknown File Header Version read for file number %s
    Cause:     Read of the file header returned a record but its version cannot be
         identified. Either the header has been corrupted, or the file is not a
         valid database file.
    Action:     Have the operating system make the correct file available to the
         database, or recover the file.
    >
    If the file is corrupted, then take the datafile offline and open the database.If it was renamed, then you can check metalink Doc ID:      230449.1
    if the database is in archive log mode, you can refer to metalink Doc ID: 333620.1
    HTH
    Anand

  • Header File Not Found

    I installed the TestU01 Suite for testing some random number generators I am working on, but when I use the #includes in my code, the systems says it can't find them at compile time. I followed the instructions for downloading and installing the library from Dr. Richard Simard's site . Its in the MinGW repository for the Linux environment MSYS. I point Eclipse straight at it for the project and Eclipse says it can't find the file upon compiling. See attached images.
    From the attached images you can see that I have gone in and for this project added a custom path to where the include files were installed with MSYS. You can also see that Eclipse did add those paths as a valid path for includes in the project folder. However when I go to build the project Eclipse says there is an error, S4, and the error specifically states that the file can't be found. However, it is listed in the path of the includes so Eclipse should be able to see it.

    So I got Eclipse to find the header files, and I believe I have set up the library additions appropriately. I have even changed \ to / in all the areas that a library or the includes folder was added.
    Eclipse in the file now sees the header and even allows me to make variable of the struct type that is in the header. However when I go to use several of the functions from the header I am getting an "undefined reference" error. I have checked, and the function names are correct.
    Will not compile with these errors, and I really need to use this tool set/library for a project I am working on. Any help would be appreciated.

  • Header file for GUI in CVI

    Hi
            I have created the GUI by adding different controls. When I make some changes in that
    xxx.uir file and save it, it automatically do the changes in xxx.h file.
    But If want to #define the values for all the controls, how to do that.
    For eg :
    Autogenerated xxx.h file has
    #define  PANEL                                          1
    #define  PANEL_CHECKBOX_1                   2      
    #define  PANEL_CHECKBOX_5                 3      
    #define  PANEL_LED_1                              4
    #define  PANEL_CHECKBOX_2                  5      
    #define  PANEL_CHECKBOX_3                  6      
    #define  PANEL_LED_2                             7      
    #define  PANEL_CHECKBOX_4                  8
    But I want to edit it like
    #define  PANEL                                          1
    #define  PANEL_CHECKBOX_1                   2      
    #define  PANEL_CHECKBOX_2                   3      
    #define  PANEL_CHECKBOX_3                   4      
    #define  PANEL_CHECKBOX_4                   5      
    #define  PANEL_CHECKBOX_5                   6
    #define  PANEL_LED_2                               11
    #define  PANEL_LED_1                              12
    Is it possible to do that?
    Please any one help me on this
    Regards
    NB
    Solved!
    Go to Solution.

    Hi Nagraj,
    The autogenerated gui header files should not be edited directly.
    CVI assigns control IDs according to their tab order in the UIR panel.
    To modify the tab order, activate the panel you want to edit and press Ctrl + T.
    This opens a tab-order-editor where you can set the tab order simply by clicking the controls in that desired order.
    After you save the file, the header gets refreshed with the new control IDs.
    Hope this helps,
    P.S: If you want to change these control IDs just to access them in a loop,
    I suggest you to put the control IDs in an array and then use the for loop variable as the array's index.
    e.g:
    int i;
    int ctrlArr[5] = {PANEL_RUN_BUTTON, PANEL_LED, PANEL_RING,  PANEL_TABLE, PANEL_STOP_BUTTON};
    for (i=0; i<5; i++)
    // good
    SetCtrlAttribute (panel, ctrlArr[i], ATTR_DIMMED, 0);
    // bad
    // SetCtrlAttribute (panel, i, ATTR_DIMMED, 0);
    S. Eren BALCI
    www.aselsan.com.tr

  • URLconnection.getLastModified cannot identify file changes after connection

    In my code, I am using URLconnection.getLastModified to watch for file changes. Unfortunately, when the file changes after the URLconnection is made, it does not recognize the file changes. Any ideas on how to make this work?
    Thanks
    public FileChangeMonitor(URL fileURL) throws IOException {
    targetURLconnection = fileURL.openConnection();
    targetURLconnection.setUseCaches(false);// This didn't seem to help - can be deleted.
    public static void main(String[] args) throws InterruptedException {
    FileChangeMonitor testFileChangeMonitor = null;
    try {
    URL MyDataFile = new URL("http://localhost/MyDataFile.xml");
    testFileChangeMonitor = new FileChangeMonitor(MyDataFile);
    } catch (IOException i) {
    testFileChangeMonitor.start();
    @Override
    public void run() {
    long lm = targetURLconnection.getLastModified();
    long lm2 = 0;
    try {
    while (true) {
    Thread.sleep(POLL_INTERVAL);
    lm2 = targetURLconnection.getLastModified();
    if (lm2 != lm) {
    flag = FLAG_CHANGED;
    lm = lm2;
    fireStateChanged();
    System.out.println("MyDataFile Changed!!!");
    } catch (InterruptedException e) {
    e.printStackTrace();
    }

    If (hypothetically speaking) you had an HTTP URL (which of course points to a resource in general but it might happen to be a file in your case), then a common way to examine its last-modified date is to send an HTTP HEAD request and examine the headers in the response.

  • Templates e Header Files in Java?

    Hi Everybody...
    So , I need do templates in java and I want understand how work one Header in Java? I think anyone not undestand this part...
    So
    I have one project in C++, I want convert this project for Java...and this project use the Header file(I created this header) and templates too...
    I want know how I do this?because in the Java haven?t template...:(
    thanks for the Help if you can help me...thanks for now

    Hi Everybody...
    So , I need do templates in java and I want
    understand how work one Header in Java? I think
    anyone not undestand this part...
    So
    I have one project in C++, I want convert this
    project for Java...and this project use the Header
    file(I created this header) and templates too...
    I want know how I do this?because in the Java haven?t
    template...:(
    thanks for the Help if you can help me...thanks for
    nowThere is a huge change in mindset from C++ to Java. I came from C++ and didn't miss header files a bit, so I don't guess I understand what functionality a C++ header file gives you that you're lacking in Java.
    Instead of C++ templates, there are Generics in java, but they don't behave in exactly the same way. I have yet to really understand how Generics are treated by the compiler, but they are certainly different.

Maybe you are looking for