Proc*C/C++ suport for include files without .h extensions

We have written code C++ code which is Standard C++ ver 5.0 compilant. In this version of C++ compiler the files are without .h extensions. For example <iostream.h> is now to be reffered as <iostream>. We are facing problems in compiling this code with PCC compiler
Sample Code:
File test1.h
#ifndef TEST1H
#define TEST1H
#include<iostream>
#include<list>
class test
private:
int i;
public:
int k;
#endif
File test1.pc
#include <iostream>
#include<test1.h>
int main()
int i;
std::cout << "Enter a value :";
std::cin >> i;
std::cout << std::endl;
return 0;
When this code is compiled with Code=cpp CPP_SUFFIX=cpp PARSE=PARTIAL options we get the following errors
Pro*C/C++: Release 8.1.5.0.0 - Production on Fri Feb 1 12:46:00 2002
(c) Copyright 1999 Oracle Corporation. All rights reserved.
System default option values taken from: /oracle8/app/oracle/product/8.1.5/precomp/admin/pcscfg.cfg
Error at line 2, column 10 in file test1.pc
#include <iostream>
.........1
PCC-S-02015, unable to open include file
Error at line 3, column 9 in file test1.h
#include<iostream>
........1
PCC-S-02015, unable to open include file
Error at line 4, column 9 in file test1.h
#include<list>
........1
PCC-S-02015, unable to open include file
I guess so PCC compiler does not identify include files without .h extension.
Lata

Do you have the SUNWhea package on your system? This package contains the headers you seem to be missing. It's on the Solaris 8 CDROM 2 of 2. If you don't know how to add packages from the CDROM, look up "Adding and Removing Software After Installing Solaris 8" in the "Solaris 8 Advanced Installation Guide" on docs.sun.com.

Similar Messages

  • Proc*C/C++ support for header files without .h extension.

    Does Pro*C/C++ compiler suppport include files without .h extensions.??
    The following code written in a .pc file, which is compilant to Standard C++ 5.0 standards when compiled with Pro*C/C++ compiler to generate a .cpp gives errors
    #include<isotream>
    int main()
    std::cout << "Test";
    return(1);
    On compilation it gives following problems:
    #include <iostream>
    .........1
    PCC-S-02015, unable to open include file
    Standard C++ version 5.0 has all the include files without .h extension. Does any version of Pro*C/C++ support that?
    Lata

    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?

  • Regarding the nomenclature for include files in SAP

    Hi Group,
    I am presently enhancing a tool for the upgrade thing .The tool is used to derive all the effected objects,so, for that i need to know the nomenclature for include files in SAP.e,g all the include files for table maintenance generator starts with LSVIM.so, we don't need to analyse that include files,so in the similar fashion i need to know nomenclature for include files....
    Thanks,
    Ajitabh Aggarwal

    Hi Group,
    Basically i am working on developing an upgrade tool from 4.6/4.7 to Ecc 5.0/6.0,so for that i need certain information on include files.Basically i need to collect the affected zobjects whic i need to modify,So,for that i need to get the FUGR,FMs and includes which need to be corrected.e.g all deque and enque function modules are irrerelevant and similary includes starting with LSVIM and those that don't have function odules attached to them are for screen maintenance of tables.So, i need certain on inputs on that end.if u have anything,please do tell me.
    Thanks in Advance.
    Ajitabh Aggarwal

  • Serving Text files without html extension as html pages

    I have a large site that has a number of legacy html files with no extensions. The site was running under 10.3 just fine. Just reinstalled 10.4 and now these pages are rendered as plain text in the browser.
    I've tried adding a blank entry in the extensions under the text/html mime/type setting but doing so creates an error which stops the server. I've got hundreds of these files stored for several years that I don't want to go back through and add a .html on the end of.
    How can I get the web server to treat a file without an extension as an html file?

    I know this isn't an answer to the question you're asking, but are you sure you want that behavior? There might be times where you want an extensionless file to be loaded as a plain text file. At the very least, it will help make your site more compatible.
    If all these files are collected in the same area on your system, it might be best to give them the .html extension.
    You can do this relatively painlessly with virtually any scripting language. I know I've even seen an AppleScript that will go through a batch and change the extension for you. You might want a modified one that will first check for the start/end HTML tags in the file first to make sure you're only changing HTML files. A quick Google search for scripting a filename change will probably yield lots of results (check Perl and PHP resource sites as well).

  • How to open an InDesign file without .indd extension?

    Hi,
    I am trying to open an InDesign file which does not have the extension .indd.
    I can open the file from InDesign's File-> Open menu item. But if I try to open programmaticaly it says the file format is not supported.
    I tried using SDKLayoutHelper::OpenDocument and IDocumentCommands::CreateOpenCommand both gives the same error.
    Thanks,

    Thanks. My file was not proper. I am able to open the file without the extension.

  • Development environment for 'include' files?

    My photo album program only has a single page. Each time you
    ask for a new page
    it calls itself, with a new set of parameters. Some of the
    more complicated
    pages are generated by setting up a framework (which
    specifies the styles to be
    used, among other things) and then loading an include file
    into it.
    Initially I envisaged these as being simple text files, but
    inevitably some of
    them became quite complex. Developing these in Dreamweaver is
    quite a pain,
    because it doesn't know about the CSS styles. I did try
    making an HTML shell
    file and pasting the include file into it, then cutting and
    pasting it again to
    save the revised version, but this proved to be cumbersome
    and very error-prone.
    Is there any way of telling Dreamweaver to load an
    environment before loading
    the include file?
    Clancy

    > This seems to be about 90% of what I was thinking of,
    but I gather that
    > when you
    > upload the file the hidden stylesheet remains attached
    to the file, but is
    > effectively commented out.
    No. It's only "applied" during Design-time viewing.
    > It is a pity that Dreamweaver doesn't include a
    'compile' option which
    > stripped
    > out template and other Dreamweaver specific commands
    (end_editable and the
    > like)
    > from the development file, leaving clean HTML. If this
    were done it
    > would mean
    > that they could use Dreamweaver specific operations much
    more flexibly,
    > without
    > having to worry about using botched up comment commands
    to hide them from
    > the
    > browser.
    I guess I don't understand what you are referring to here
    with "botched up
    comment commands". A comment is a comment, and really does
    nothing to the
    page at all.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Clancy" <[email protected]> wrote in message
    news:[email protected]...
    > "Murray *ACE*" <[email protected]>
    wrote:
    >
    >>Use Design-time stylesheets.
    >
    > Thanks Murray,
    >
    > This seems to be about 90% of what I was thinking of,
    but I gather that
    > when you
    > upload the file the hidden stylesheet remains attached
    to the file, but is
    > effectively commented out. However I guess that all that
    has to be in the
    > file
    > is an 'include' statement (or perhaps this is what
    actually happens), so
    > it
    > shouldn't lengthen the file noticeably.
    >
    > It is a pity that Dreamweaver doesn't include a
    'compile' option which
    > stripped
    > out template and other Dreamweaver specific commands
    (end_editable and the
    > like)
    > from the development file, leaving clean HTML. If this
    were done it
    > would mean
    > that they could use Dreamweaver specific operations much
    more flexibly,
    > without
    > having to worry about using botched up comment commands
    to hide them from
    > the
    > browser.
    >
    > Clancy

  • A link (underline) for #include statements without pressing ctrl

    Hello,
    I have SunStudio version 12. (the version which was released a few days ago,
    at the beginning of June 2007).
    I created a "C" project with it.
    When I press the "ctrl" button and then hover with the mouse over a name
    of include file, which is part of my project, a link (underline) appears under
    the header file.
    left clicking on that link with the mouse opens this header file in the editor.
    All is good this far. Now, is there a way to configure SunStuduio so
    that the link (underline) will appear under the header file without that
    I will have to press the "Ctrl" button (but it will be done automatically
    for all #include statements in my project)?
    Regards,
    Mark

    No, this isn't possible.
    If you don't like to use both mouse and keyboard simultaneously, you can right-click and select go -> include

  • Read metadata for a file without Photoshop or Bridge

    Hi
    Suppose I have a file in desktop called "test.jpg". So I create this variable:
    var myFile = new File ("~/Desktop/test.jpg");
    This file has some keywords and instructions I need to read. And if the reading process finds the correct keyword, then it copies the file to the appropriated folder. Well, in resume, I could do everything directlly using #target estoolkit. I´d not like to involve (opening) Photoshop or Bridge.
    Is it possible to read the metadata of a file without targetting Bridge or Photoshop? Reading the reference I did not find any method or property for this, expect for the metadata library. BUT
    If I try to load the metadata library using:
    if (ExternalObject.AdobeXMPScript == undefined) {
            ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');
    then it sure will returns an error file or folder does not exists..
    Any idea how I could proceed to load this library and read the metadata of a file directlly?
    Thank you very much
    Best Regards
    Gustavo.

    Hi friends
    Thank you very much for your inputs. Muppet....what do you mean when you write The modified date gets bumped and can be a PITA? What means "PITA"?
    So, if it´s impossible to invoke [directly] the default library without targetting Bridge or Photoshop...I´ll simplify the things and use Bridge to house the script. No problem.
    So, look at what I´m doing:
    #target bridge
    if (ExternalObject.AdobeXMPScript == undefined) {
            ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');
    var test = new File ("~/Desktop/Test.jpg");
    var xmp = test.metadata;
    alert(xmp);
    ...But, the alert in Adobe Bridge is returning nothing (""). And I know this image exists and it has metadata.
    I remember to use metadata for reading the currently selected image in Content panel of Bridge (and it worked), but never tried direrctly declaring a file and reading this way.
    Am I missing anything obvious?
    Thank you very much
    Gustavo.
    Message was edited by: Gustavo Del Vechio

  • How do I open old files without application extensions on them?

    I have lots of 1995 or so files written from a mac on 3.5 diskets most of which I have read onto disk.
    But they have no extensions and I can't seem to open them.
    If I had to guess I would say they are canvas, possibly powerpoint but using powerpoint 98and canvas 7 I can"t seem to open them.
    I have a G3 powerbook.  a G3 tower both running OS9, a powerPC macmini running OS10 and OS9 in emulation, a PC portable running System10 and another PC portable running XP.
    What are my options short of seppuku?
    I need to get these files to teach a course.
    Thanks

    When I use OS 9 and previous Mac systems I use CanOpener for problems such as you present. It is still available too.
    http://www.abbottsys.com/co.html
    Use CanOpener to get into just about any file.
    Powerful Mac data recovery software. Our famous universal file opener lets you read any file -- and extract what you need including text, icons, PICS and more. It's perfect for browsing all types of files, including old files, foreign files and files your Mac can't open, and it's indispensable for recovering text from damaged files - a lifesaver!
    Plus, CanOpener lets you view virus infected files without launching the virus. So you can safely check suspect files and recover text from them - a powerful way to avoid virus infections!
    CanOpener has special text filters that let you...
    *Extract Names, Phone Numbers, URLs, Email, Web and IP Addresses.
    *Strip HTML Coding. Remove extra Carriage Returns and blank spaces from email and Web text.
    *Extract important sentences such as questions or anything containing $'s and numbers.
    *Rapidly find clean text in files that contain huge amounts of 'garbage'
    CanOpener Extractor.
    Now you are not limited to opening files individually. You can drag and drop any file, or a folder full of files, to do bulk extraction using any of the special text extraction filters! A fantastic time saver!

  • Flash Player Installer downloads from the Adobe distribution site as a generic file without an extension and the file won't open.

    Hi, everyone.
    When I download Flash Player Installer from the Adobe distribution site Adobe Flash Player Distribution | Adobe the file downloads to my hard drive as a generic file with no extension, and Windows can't determine which program to use in order to open/play the file. I am using Windows 7 Professional 64 bit.
    Is there something wrong with the downloaded file? Or am I missing required software?
    Thank you for your time,
    -Brandon

    Yes, I've never had a problem before. I've even downloaded the Flash Player Install files from the Adobe distribution site on multiple occasions in the past without issue. The only thing I could think of is that perhaps the ".exe" extension was left off to avoid triggering security measures on a computer or private network that would prevent the download.
    Anyway, it worked after I added the ".exe" extension to the filename, so I have no complaints!

  • IDCS3_Saving files without .indd extension!

    I am trying to save CMYK InDesign files to a "hot folder" on our network. The contents of the hot folder are converted to a Postscript file then processed through a computer that separates the color information and sends the info to 2 places: 1) a plate machine (creates plates for a web press) 2) a C.I.P. (color ink position) file that goes to the web-press' computer to tell it where the color needs to be.<br /><br />I can get plates to come out fine, however, the .indd extension seems to make the CIP files unreadable to the Press computer.<br /><br />How can I save the InDesign files without the .indd extension. If I simply delete the extension, it shows up anyway as it goes through the rip computer and adds a .ps extension at the end.<br /><br />(ex: CMX20080416A01.indd.ps / it needs to read:CMX20080416A01.ps <note: the .ps is added by the rip computer>)<br /><br />We are able to achieve this in CS2, but that was set up before I started here, and nobody else can seem to remember how it was done.<br /><br />THANK YOU IN ADVANCE FOR ANY ADVICE/INSIGHT!

    Easiest way would just be to strip them off in the Finder with a script. InDesign is probably dead intent on keeping them since they are the only true way to identify file type in OS X.
    Activate folder actions on a folder on your Desktop
    Attach this script action into ~/Library/Scripts/Folder Script Actions and attach it to the folder you created:
    on adding folder items to this_folder after receiving these_items
    tell application "Finder"
    set AppleScript's text item delimiters to ""
    set myItems to every file of folder this_folder whose name extension = "indd"
    repeat with thisItem in myItems
    set trimmedName to name of thisItem
    set trimmedName to characters 1 thru -6 of trimmedName
    set trimmedName to trimmedName as string
    set name of thisItem to trimmedName
    end repeat
    end tell
    end adding folder items to
    Duplicate the indd docs there and they should be renamed without .indd

  • All files without .indd extension corrupted

    Being a Mac user, I never bothered appending the .indd extension to my InDesign files, because I never needed to (or so I thought). However, after working on lots of projects and archiving them to DVD, it seems that any InDesign files without the .INDD extension are now corrupt!
    If I try to open any them, I'm given the unhelpful "Cannot open the file xxx. Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file may be open in another application" message.
    The files were originally created in CS2 on Mac OS 10.4.x (I think), but now I am using CS4 on Mac OS 10.6.x. I have tried adding the .indd extension (which gives the file it's InDesign icon, rather than a generic blank document icon) and opening it on the original Mac, but to no avail.
    I have loads of these file, which are all exactly the same! Can anybody help, please?

    John-Lee Langford wrote:
    Being a Mac user, I never bothered appending the .indd extension to my InDesign files, because I never needed to (or so I thought). However, after working on lots of projects and archiving them to DVD, it seems that any InDesign files without the .INDD extension are now corrupt!
    If I try to open any them, I'm given the unhelpful "Cannot open the file xxx. Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file may be open in another application" message.
    The files were originally created in CS2 on Mac OS 10.4.x (I think), but now I am using CS4 on Mac OS 10.6.x. I have tried adding the .indd extension (which gives the file it's InDesign icon, rather than a generic blank document icon) and opening it on the original Mac, but to no avail.
    I have loads of these file, which are all exactly the same! Can anybody help, please?
    It's not clear if you're trying to open the files by double clicking  on them in Finder, by Right/Option-click > Open, Right/Option-click  > Open with, by dragging them to the InDesign icon in the Dock,  dragging them into the open InDesign workspace, or by using File >  Open.
    Are you using the same user account, same installation as the files were created with, and opening the un-renamed files on the old machine's hard drive (not on a network server or CD/DVD) with File > Open, or are you using another method? Do you get different results with different methods ? Do you get the same message on both the CS2 and CS4 installations on their respective machines?
    Have you tried all of these on original files, not the renamed ones? Same or different results with any or all?
    Have you been successful in creating a new InDesign CS4 file and saving it, closing it, then opening it by one or more of the above-mentioned methods? Results?
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Any solution for swf file without url link embedded?

    As a long shot just thought I would ask.
    Received a swf file which needs to be linked to a url address BUT the company that produced it has not embedded the link in the .fla file!!!!!
    In the past I seem to remember there is not a way to link the swf via html or maybe so but only via javascript or some complex solution. Is this still the case or has someone found an elegant solution to the issue in recent times?
    Thanks
    Os

    Ken Binney wrote:
    Hi Os -
    Can you get the fla file?
    Hi Ken,
    Unfortunately not. If I could I don't think it would be much help as I'm out of touch with Flash. I used to dabble around in Flash a bit years ago but didn't persist as I thought it required a bit more time to really get to know than I could give it.
    I know it's a relatively simple procedure to add a getURL frame to the .fla file as I done it myself in the past. Not sure why whoever did it hasn't included the link as it's an advert to attract people to a certain url.
    I guess they will just have to sort it themsleves.
    Thanks for replying. Just though things move quickly and some genius might have discovered a way to add a link without having to resort to the .fla file.

  • Interface Determination for source file without namespace definition

    Hi,
    I have the following problem:
    I am developing a file to IDoc scenario in AEX 7.31. All design objects in ESR and configuration objects in ID are created and the sender communication channel is running. Now I got a test file. It starts directly with the data elements but does not contain the root element as defined in my data type. To make it clear:
    Data Type in ESR:
    DT_DatatypeA
    -- Record [1..unbounded]
    ---- Field1
    ---- Field2
    The File looks as follows (it lacks the root element 'DT_Datatype_A'):
    <Record>
      <Field1>...</Field1>
      <Field2>...</Field2>
    </Record>
    <Record>
      <Field1>...</Field1>
      <Field2>...</Field2>
    </Record>
    When I try to send it via PI I get the following error:
    When I add the XML root element <ns0:DT_DatatypeA ns="..."> manually to the file (and the corresponding end tag), the message is processed correctly.
    How can I solve this issue? The file is created by a legacy system which does not know anything about my PI namespaces.
    Thanks in advance!

    i am bit confused here.
    how does your input look like? i.e when sender generates the files..
    is that like below xml?
    <Record>
      <Field1>...</Field1>
      <Field2>...</Field2>
    </Record>
    <Record>
      <Field1>...</Field1>
      <Field2>...</Field2>
    </Record>
    or
    is it a flat file? and you use FCC in the sender adapter to convert it into xml?
    Field1,Field2
    Field1,Field2

  • Files without an extension?

    I was looking in a cache for a program and saw that there were a lot of file types listed only as "Document" with no file extension.
    Here is an example:
    0A7D50974BFF28DC45DC276581A6C030
    Now, when I press the spacebar for a preview an image comes up...so, this is an actual file...however, not having a file type (even when I do Cmd+I) there is no way to search for these "Documents".
    Can anybody tell me why this is, what file types these are and how to search for them since the names are randomized and I can't search by file type?
    Thanks,
    J.
    P.S. Yes...I have gone to Finder > Preferences > Show All Extensions....and still these "Documents" don't have a file type associated with them.

    While the "Hide Extension" radio button is on the screen, it is greyed out so I cannot click/unclick it.

Maybe you are looking for

  • Conditionally formatting a graph in ADF

    Hi, We've developped an ADF application in which tasks are assigned to users. Each task has a due date and depending on the proximity of this due date the color of the task changes from green over orange to red. Now, what we are trying to do is showi

  • ExpDP / ImpDP advice

    Hello friends. I need to make a full copy of my current database: current: (11.2.0) on oracle linux OEL 4.7 O.S. (working fine) new: (11.2.0) on oracle linux OEL 5.5 O.S. (installed and configured, empty) I dont know how to use data-pump export impor

  • Hopefully easy question: the number keypad stopped working!

    OK, this is a super-minor problem, but I'm hoping that means it's an easy one to fix! I normally rely on quickkeys or keyboard shortcuts, like in Logic when you just hit the "0" on the number keypad which takes you back to the beginning of the piece.

  • Am interested in purchasing an AppleTVAVCDH Playback

    Question #1) I have a HD camcorder that generates .mts(AVCHD) files. I am interested in buying an AppleTV to load and play those home videos. Will AppleTV be able to play those files. Question #2) My old home videos are DV format and I have tried to

  • Appleworks will not open on download

    Having downloaded the OS X version onto my new IMAC, I get the following "default location required for this install could not be found. This install will be cancelled. Now when I downloaded this from the Apple web site, it all seemed to be fairly au