<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to include header files in ProC/C++ programs? in Operating System - Tru64 Unix</title>
    <link>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458387#M3867</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the way you use include the compiler assumes the file to be in /usr/include.&lt;BR /&gt;You will have to use&lt;BR /&gt;#include "defs.h"&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
    <pubDate>Sat, 08 Jan 2005 13:30:01 GMT</pubDate>
    <dc:creator>Michael Schulte zur Sur</dc:creator>
    <dc:date>2005-01-08T13:30:01Z</dc:date>
    <item>
      <title>How to include header files in ProC/C++ programs?</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458385#M3865</link>
      <description>We have a header file by name defs.h and we want to include that in a ProC file test.pc &lt;BR /&gt;Both test.pc and defs.h are in same directory /usr/users/user1/ .&lt;BR /&gt;&lt;BR /&gt;So, we have tried to include this header file in the test.pc as&lt;BR /&gt;&lt;BR /&gt;"&lt;BR /&gt;#include &lt;DEFS.H&gt;&lt;BR /&gt;&lt;BR /&gt;.....&lt;BR /&gt;&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It gives me an error saying, it could not open the file defs.h .&lt;BR /&gt;"PCC-S-02015, unable to open include file "&lt;BR /&gt;&lt;BR /&gt;And any variable which is defined in test.pc results in an error in test.pc with unidentified identifier.&lt;BR /&gt;" PCC-S-02322, found undefined identifier"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But if we try to mention the full path in include directive it works. Like, if we say #include &lt;/DEFS.H&gt; .&lt;BR /&gt;&lt;BR /&gt;Any suggestions are appreciated!</description>
      <pubDate>Fri, 07 Jan 2005 17:34:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458385#M3865</guid>
      <dc:creator>P Satish</dc:creator>
      <dc:date>2005-01-07T17:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to include header files in ProC/C++ programs?</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458386#M3866</link>
      <description>Correction:&lt;BR /&gt;"Any variable which is defined in defs.h, if used in test.pc , then it gives me PCC-S-02322, found undefined identifier"&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Jan 2005 19:17:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458386#M3866</guid>
      <dc:creator>P Satish</dc:creator>
      <dc:date>2005-01-07T19:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to include header files in ProC/C++ programs?</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458387#M3867</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the way you use include the compiler assumes the file to be in /usr/include.&lt;BR /&gt;You will have to use&lt;BR /&gt;#include "defs.h"&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Sat, 08 Jan 2005 13:30:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458387#M3867</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2005-01-08T13:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to include header files in ProC/C++ programs?</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458388#M3868</link>
      <description>defs.h is user defined header file for an application. It does not live under /usr/include. Let's say it lives off of /usr/users/user1 directory. How do I include this header file in the Pro C module /usr/users/user1/test.pc&lt;BR /&gt;&lt;BR /&gt;I am trying to build the ProC module from /usr/users/user1 directory.&lt;BR /&gt;&lt;BR /&gt;There was one include= option in ProC compiler, but it is not helping when I kept it as include=. for looking into the current directory for the header files.&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jan 2005 09:31:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458388#M3868</guid>
      <dc:creator>P Satish</dc:creator>
      <dc:date>2005-01-10T09:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to include header files in ProC/C++ programs?</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458389#M3869</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;when you use&lt;BR /&gt;#include &lt;DEFS.H&gt;&lt;BR /&gt;it is implicitely /usr/include/defs.h&lt;BR /&gt;the &amp;lt;&amp;gt; are resolved to /usr/include&lt;BR /&gt;If you want to use another path use the ""&lt;BR /&gt;#include "/usr/users/user1/defs.h"&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;&lt;/DEFS.H&gt;</description>
      <pubDate>Mon, 10 Jan 2005 12:08:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458389#M3869</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2005-01-10T12:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to include header files in ProC/C++ programs?</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458390#M3870</link>
      <description>Thank you Michael for responding.&lt;BR /&gt;&lt;BR /&gt;If I keep include "/usr/users/user1/defs.h" it works. But I need to use relative to the current directory as include "defs.h".&lt;BR /&gt;This is the requirement.</description>
      <pubDate>Mon, 10 Jan 2005 12:12:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458390#M3870</guid>
      <dc:creator>P Satish</dc:creator>
      <dc:date>2005-01-10T12:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to include header files in ProC/C++ programs?</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458391#M3871</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you said both files are in the same directory. So use&lt;BR /&gt;#include "defs.h"&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jan 2005 16:39:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458391#M3871</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2005-01-10T16:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to include header files in ProC/C++ programs?</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458392#M3872</link>
      <description>When I do that, it gives me an error as I was mentioning before.&lt;BR /&gt;"PCC-S-02015, unable to open include file"&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jan 2005 18:35:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458392#M3872</guid>
      <dc:creator>P Satish</dc:creator>
      <dc:date>2005-01-10T18:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to include header files in ProC/C++ programs?</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458393#M3873</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;can you post the compilation script?&lt;BR /&gt;From which directory do you compile the programme?&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jan 2005 19:14:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458393#M3873</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2005-01-10T19:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to include header files in ProC/C++ programs?</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458394#M3874</link>
      <description>What do you mean by Compilation script?&lt;BR /&gt;I am using ProC options as below&lt;BR /&gt;"&lt;BR /&gt;proc include=.  iname=../../../../src/unvantive/shared_lib_test/error_handler.pc oname=error_handler.c&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;$ make error_handler.c&lt;BR /&gt;cd ../../../obj/alpha/unvantive/shared_lib_test&lt;BR /&gt;proc include=.  iname=../../../../src/unvantive/shared_lib_test/error_handler.pc&lt;BR /&gt; oname=error_handler.c&lt;BR /&gt;&lt;BR /&gt;Pro*C/C++: Release 9.2.0.1.0 - Production on Mon Jan 10 23:09:03 2005&lt;BR /&gt;&lt;BR /&gt;Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.&lt;BR /&gt;&lt;BR /&gt;System default option values taken from: /oracle/app/oracle/product/9.2.0.1.0/pr&lt;BR /&gt;ecomp/admin/pcscfg.cfg&lt;BR /&gt;&lt;BR /&gt;Error at line 8, column 10 in file ../../../../src/unvantive/shared_lib_test/err&lt;BR /&gt;or_handler.pc&lt;BR /&gt;#include "csp_dbaccess.h"&lt;BR /&gt;.........1&lt;BR /&gt;PCC-S-02015, unable to open include file&lt;BR /&gt;Error at line 12, column 10 in file ../../../../src/unvantive/shared_lib_test/er&lt;BR /&gt;ror_handler.pc&lt;BR /&gt;#include "csp_utilities.h"&lt;BR /&gt;.........1&lt;BR /&gt;PCC-S-02015, unable to open include file&lt;BR /&gt;cp -p error_handler.c /home/psatish/sandbox/csp_unvantive/src//unvantive/shared_&lt;BR /&gt;lib_test&lt;BR /&gt;$&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jan 2005 23:12:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/how-to-include-header-files-in-proc-c-programs/m-p/3458394#M3874</guid>
      <dc:creator>P Satish</dc:creator>
      <dc:date>2005-01-10T23:12:23Z</dc:date>
    </item>
  </channel>
</rss>

