PROC 2.X 에서 INCLUDE FILE 사용방법

제품 : PRECOMPILERS
작성날짜 : 1996-01-08
PROC 2.0 에서는 include file 에대한 디렉토리 PATH를 INCLUDE option 으로
지정하여 사용 할수 있다. 이경우 Precompiler 는 다음 순서로 디렉토리를
SCAN 하면서 include file 을 찾는다.
1. 현재 디렉토리
2. standard header file 에대한 built-in 디렉토리
3. INCLUDE option 에 지정된 디렉토리
* 2 의 경우 sqlca.h, sqlda.h 와 같은 standard header file 에 대한
디렉토리는 지정할 필요가 없고, UNIX에서는 precompiler 가 ORACLE_HOME
/sqllib/public 디렉토리에서 이 화일들을 찾는다.
* Nonstandard header file은 현재 디렉토리에 없으면 다음과 같이 INCLUDE
Precompile option 으로 path를 지정한다.
... INCLUDE=path1 INCLUDE=path2 ..
<사용예>
<< 프로그램 >>
* sample2.pc
#include <stdio.h>
#include <string.h>
#include <sqlca.h>
#include <sam2.h>
typedef char asciiz[PWD_LEN];
EXEC SQL TYPE asciiz IS STRING(40) REFERENCE;
<< INCLUDE FILE >>
/users2/oracle7/lib/sam2.h
#define UNAME_LEN 20
#define PWD_LEN 40
<< MAKE FILE >>
/users2/oracle7/bin/proc INCLUDE=/users2/oracle7/lib iname=$1.pc
cc -I. -O -Aa -D_HPUX_SOURCE ESsfc ESlit -I/users2/oracle7/sqllib/public
-I/users2/oracle7/lib -c $1.c
cc -Wl,-aarchive -L/users2/oracle7/lib -o $1 $1.o -lsql -lsqlnet -lora
-lsqlnet -lora -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore `cat
/users2/oracle7/rdbms/lib/sysliblist`

Since your email is failing I am going to assume the rest of your script is working.  So I am looking specifically at these lines:
  $process = '../includes/process_mail.inc.php';
    if (file_exists($process) && is_readable($process)) {
        include($process);
The things that need to be confirmed here are that the path is right and it has proper permissions.  Have you tried eliminating that "and" statement in your "if" and see if those work independently.  I have a feeling that if the path is right that the file does not have the proper permissions on your server for global read access which would make, "is_readable" fail and thus end your script.
Can you test those and post back?

Similar Messages

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

  • Pro*C/C++ generates error "PCC-S-02015, unable to open include file"

    I'm running a .pc file through the pre-compiler (on Windows 7x64 with instant client 12.1) and get the following error:
    Error at line 78, column 1 in file XXX.pc
    EXEC SQL INCLUDE SQLCA;
    1
    PCC-S-02015, unable to open include file
    If I change the content of my file to the following
    #include "sqlca.h"
    //EXEC SQL INCLUDE SQLCA;
    the pre-compiler does it's job nicely.
    My pcscfg.cfg looks like this:
    include="C:\PROGRA~2\Oracle\INSTAN~1\sdk\include"
    include="C:\PROGRA~2\MICROS~2.0\VC\include"
    define=(WIN32_LEAN_AND_MEAN)
    DEFINE=_WSTDIO_DEFINED
    Has there been a change in the syntax of Pro*C or why can't it resolve the EXEC SQL INCLUDE?
    PS: I'm an absolute newbie to this and am trying to get to compile some veeery old code, build under instant client 9/10/11)

    Karl Esau (guest) wrote:
    : Hi,
    : I have problems to get the precompiler running - executing the
    : precompiler leads to a segfault.
    I meanwhile solved the problem, so that I can compile and
    run the samples.
    a strace on 'proc' showed:
    open("/oracle/precomp/public/SQLCA.H", O_RDONLY) = -1 ENOENT
    (Nosuch file or directory)
    I made a symbolic link for an upper case SQLCA.H, needed to add
    SQLCHECK=SEMANTICS in ~/precomp/admin/pcscfg.cfg and one more
    lib for the make: /lib/libdl.so.2 because 'dlclose' and other
    symbols were undefined.
    bye
    Karl Esau
    null

  • SegFault PCC-S-02015 unable to open include file

    Hi,
    I have problems to get the precompiler running - executing the
    precompiler leads to a segfault.
    btw: don3t have ORACLE_HOME/precomp/demo/proc
    oracle@los13529 > make -f demo_plsql.mk examp9
    sqlplus scott/tiger @exampbld </dev/null
    System default option values taken from:
    /oracle/precomp/admin/pcscfg.cfg
    Error at line 53, column 1 in file examp9.pc
    EXEC SQL INCLUDE SQLCA;
    1
    PCC-S-02015, unable to open include file
    make[1]: *** [examp9.o] Segmentation fault
    make[1]: Leaving directory `/oracle/plsql/demo'
    make: *** [examp9] Error 2
    a 'strace' says:
    oracle@los13529:/oracle/plsql/demo > strace proc examp9
    open(ptrace: umoven: Input/output error
    0x85a7dc0, O_RDONLY) = -1 ENOENT (No such file or directory)
    i have to admit, i had to change /oracle/precomp/admin/pcscfg.cfg
    as follows and set two links in order to fix include errors on
    stdarg.h and stddef.h:
    /oracle/precomp/admin/pcscfg.cfg:
    sys_include=(/usr/include)
    include=(/oracle/precomp/public)
    include=/oracle/precomp/hdrs
    include=/oracle/tpcc2x_2/src
    include=/oracle/precomp/include
    include=/oracle/oracore/include
    include=/oracle/oracore/public
    include=/oracle/rdbms/include
    include=/oracle/rdbms/public
    include=/oracle/rdbms/demo
    include=/oracle/nlsrtl/include
    include=/oracle/nlsrtl/public
    include=/oracle/network_src/include
    include=/oracle/network_src/public
    include=/oracle/network/include
    include=/oracle/network/public
    include=/oracle/plsql/public
    ltype=short
    oracle@los13529 > l /usr/include/std[ad]*
    lrwxrwxrwx 1 root root 57 Mar 15 10:18 /usr/include/stdarg.h
    -> /usr/lib/gcc-lib/i486-linux/egcs-2.91.60/include/stdarg.h
    lrwxrwxrwx 1 root root 57 Mar 15 10:18 /usr/include/stddef.h
    -> /usr/lib/gcc-lib/i486-linux/egcs-2.91.60/include/stddef.h
    system related info:
    oracle@los13529:/oracle/plsql/demo > uname -a
    Linux los13529 2.2.3 #1 Wed Mar 10 14:54:34 MET 1999 i586
    unknown
    oracle@los13529:/oracle/plsql/demo > cc --version
    egcs-2.91.60
    path/environment-settings seem to be proper:
    johndoe@los13529:/home/johndoe > set|grep orac
    LD_LIBRARY_PATH=:/oracle/lib
    ORACLE_BASE=/oracle
    ORACLE_HOME=/oracle
    ORACLE_PATH=/oracle/sqlplus
    ORA_NLS32=/oracle/ocommon/nls/admin/data
    ORA_NLS33=/oracle/ocommon/nls/admin/data
    PATH=/oracle/bin:/oracle/buildtools/bin:/usr/local/bin:/usr/bin:
    /usr/X11R6/bin:/bin:/usr/games/bin:/usr/games:/opt/kde/bin:.
    TNS_ADMIN=/oracle/network/admin
    ora/listener-connect is OK, even ODBC from a W95-client works:
    johndoe@los13529:/home/johndoe > sqlplus scott/tiger@quad
    SQL*Plus: Release 8.0.5.0.0 - Production on Mon Mar 15
    14:8:18 ...
    SQL> select count(*) from tab;
    COUNT(*)
    17
    SQL> exit
    Disconnected from Oracle8 Release 8.0.5.0.0 - Production
    PL/SQL Release 8.0.5.0.0 - Production
    please give me a hint. mailto:[email protected]
    null

    Karl Esau (guest) wrote:
    : Hi,
    : I have problems to get the precompiler running - executing the
    : precompiler leads to a segfault.
    I meanwhile solved the problem, so that I can compile and
    run the samples.
    a strace on 'proc' showed:
    open("/oracle/precomp/public/SQLCA.H", O_RDONLY) = -1 ENOENT
    (Nosuch file or directory)
    I made a symbolic link for an upper case SQLCA.H, needed to add
    SQLCHECK=SEMANTICS in ~/precomp/admin/pcscfg.cfg and one more
    lib for the make: /lib/libdl.so.2 because 'dlclose' and other
    symbols were undefined.
    bye
    Karl Esau
    null

  • PCC-S-02015, unable to open include file(gnu/stubs-32.h)

    Hi,
    I was trying to precompile one of the sample files from the "Pro*C/C++ Precompiler
    Programmer’s Guide" and I got this error message:
    Fehler in Zeile 7, Spalte 11, in Datei /usr/include/gnu/stubs.h
    # include <gnu/stubs-32.h>
    ..........1
    PCC-S-02015, Einfügedatei konnte nicht geöffnet werden.
    (Which means "unable to open include file")
    I couldn't find any an answer on the forum, so I figured it out for myself.
    I just wanted to post it so in case somebody else faces the same problem, they would have the solution here.
    The machine is a virtual Linux host running on a 64Bit architecture, so I was surprised why is it looking for stubs-32.h and not stubs-64.h.
    The answer is in the stubs.h file:
    #include <bits/wordsize.h>
    #if __WORDSIZE == 32
    # include <gnu/stubs-32.h>
    #elif __WORDSIZE == 64
    # include <gnu/stubs-64.h>
    #else
    # error "unexpected value for __WORDSIZE macro"
    #endifSo let's check the bits/wordsize.h file:
    #if defined __x86_64__
    # define __WORDSIZE     64
    # define __WORDSIZE_COMPAT32    1
    #else
    # define __WORDSIZE     32
    #endifSo I figured out you can define __x86_64__ in two places:
    The file: precomp/admin/pcscfg.cfg
    Most probably you just need to add define=__x86_64__ and that should do the trick.
    Unfortunately I couldn't try it because I didn't have write permission on that file.
    The other way is to pass it in the command line:
    proc sample1.pc MODE=ORACLE DEFINE=__x86_64__+
    This way the precompiler created the output .c file without errors.
    Cheers
    PS: Don't try to define the __x86_64__ in the .pc file, or you'll get a warning when you compile the .c file. Not a big deal, just desn't look good :-D
    Edited by: VincentFreeman on Feb 12, 2009 4:09 AM
    Edited by: VincentFreeman on Feb 12, 2009 4:16 AM

    Ideally speaking your pcscfg.cfg should have the paths to the directories where you will be getting all your headers from
    Based on what linux flavor & version of gcc you have the following directory will have the headers you are missing
    /usr/lib/gcc/ABC-XYZ-linux/<gcc_version_no>/include
    where ABC could be i386/i586 depending on the hardware and XYZ could be the linux flavor like redhat/suse/whatever you have

  • Dreamweaver 8 - Include File issue

    Can anyone help.
    I have managed to fix this on previous versions of
    Dreamweaver however its not working on Dreamweaver 8.
    The problem is I'm trying to view Include files (.inc) in
    Design view, but Dreamweaver 8 will only allow me to view this in
    code view.
    The link I used to solve this on previous versions is as
    follows:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16410
    The main problem is I cannot find my MMDocumentTypes.xml file
    so I think this could have something to do with it not working.
    Any help would be great

    Why not rename your *.inc files to *.htm(l)?
    > The main problem is I cannot find my MMDocumentTypes.xml
    file so I think
    > this
    > could have something to do with it not working.
    It's in the -
    C:\Documents and Settings\<username>\Application
    Data\Macromedia\Dreamweaver
    8\Configuration\
    folder.
    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
    ==================
    "mattbuk1984" <[email protected]> wrote in
    message
    news:endmm0$7u9$[email protected]..
    > Can anyone help.
    >
    > I have managed to fix this on previous versions of
    Dreamweaver however its
    > not
    > working on Dreamweaver 8.
    >
    > The problem is I'm trying to view Include files (.inc)
    in Design view, but
    > Dreamweaver 8 will only allow me to view this in code
    view.
    >
    > The link I used to solve this on previous versions is as
    follows:
    >
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16410
    >
    > The main problem is I cannot find my MMDocumentTypes.xml
    file so I think
    > this
    > could have something to do with it not working.
    >
    > Any help would be great
    >

  • Code hints don't work - include files using a variable

    In Dreamweaver CS 5.5 code hints didn't work properly.
    DW would not look at my code and find the include files and look at the functions inside them when using a variable to make an absolute path, which is the best way to include files in PHP (its faster and more reliable on your web server)
    Here is an example:
    ======================================
    public_html/util/util_index.php
    $DIR_MAIN            =dirname(dirname(__FILE__).'../');
    require_once "$DIR_MAIN/init.php";
    my_function(#CODE COMPLETE DOES NOT WORK HERE
    public_html/init.php
    $DIR_INCLUDE=               "$DIR_MAIN/inc";
    require "$DIR_INCLUDE/common_functions.php";
    #set up environment variables
    #connect to the database
    #etc
    public_html/inc/common_functions.php
    function my_function(param1, param2, param3) {
    =======================================
    Has this been fixed in Dreamweaver CS6 or should I wait until CS7?
    Until this works, I prefer Notepad++

    I made a full SQL Developer installation with Java included, so I suppose that the included version is used.
    After a problem with the German Version I tried to switch to English Version by using the hint:
    link: 1.5.4 export insert statements
    I changed the content of sqldeveloper.conf and now again the code templates (strg-shift-t) don't work!!!
    (I already rebooted and set the accelerators to default, but it didn't help now.)
    This is the content of my sqldeveloper.conf now:
    "IncludeConfFile ../../ide/bin/ide.conf
    AddVMOption -Dapple.laf.useScreenMenuBar=true
    AddVMOption -Dcom.apple.mrj.application.apple.menu.about.name="SQL_Developer"
    AddVMOption -Dcom.apple.mrj.application.growbox.intrudes=false
    AddVMOption -Dcom.apple.macos.smallTabs=true
    AddVMOption -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG=true
    AddVMOption -Dsun.java2d.ddoffscreen=false
    AddVMOption -Dwindows.shell.font.languages=
    AddVMOption -XX:MaxPermSize=128M
    IncludeConfFile sqldeveloper-nondebug.conf
    AddVMOption -Duser.country=US
    AddVMOption -Duser.territory=US
    AddVMOption -Duser.language=en
    "

  • Jsp taglibs in include files not detected, throws errors, no code insight

    I have a jsp which is included in all the other jsp. it looks something like this
    taglibs.jsp
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    test.jsp
    <%@ include file="/jsp/menu/taglibs.jsp"%>
    <html>
         <head>
              <title>Tours</title>
         </head>
         <body>
    <form:form commandName="testCommand">
                   <form:hidden path="tour.firstname" id="tour.firstname" />
    and so on.
    I am having 2 problems
    1. the jsp editor show errors all over the place saying
    element path not expected
    element commandName not expected etc.
    2. no code insights.
    but if i include the taglib def in test.jsp it dosn't show any error and also provides code insights. but seldom do people include all taglibs in all jsps.
    is there a way for Jdeveloper to show code insights in jsp pages which includes a jsp or like xml schemas could be added at some place(tools-pref-xml schemas) and when used anywhere, would provide code insights.

    am not sure, try with this
    <jsp:include   .../>

  • Failure in Precompilation of JSPs  due to include file in WL6.1 SP2

    Hi
              We are getting the following error when we try to do precompilation of JSPs using
              precompile param to true in weblogic.xml
              We are deploying our application as war files.
              eagerly waiting for your help
              sincerely
              Ramesh
              Issue description and StackTrace:
              Issue:
              Precompilation of JSPs fail while using precompile param to true in weblogic.xml and deploy it as War file. It is througing "failure pre-compiling JSP's
              weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
              xception: Could not include index.jsp" exception.
              OS: Windows 2000
              Jdk: Sun Jdk1.3.1
              Weblogic: 6.1 SP2
              ***Stacktrace*************
              <Dec 17, 2002 1:05:51 PM CST> <Error> <HTTP> <[WebAppServletContext(3961036,AdvW
              eb,/AdvWeb)] failure pre-compiling JSP's
              weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
              xception: Could not include index.jsp
              at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1025)
              at weblogic.servlet.jsp.JspParser.doit(JspParser.java:80)
              at weblogic.servlet.jsp.JspParser.parse(JspParser.java:183)
              at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
              at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255
              

    Ramesh,
              We experienced this sympton as well. In our JSPs, we converted
              <%@ include file="xyz.jsp"%> (static include, source time) to
              <jsp:include page="licensedQuote.jsp"/> (dynamic include, run time)
              and the problem went away.
              We still use static includes at the very start of the JSPs. It seems the problem only occurs when the static include is inside of a tag whose body does JSP evaluation.
              -Charlie
              "Ramesh Danala" <[email protected]> wrote in message news:[email protected]...
              > Hi
              > We are getting the following error when we try to do precompilation of JSPs using
              > precompile param to true in weblogic.xml
              > We are deploying our application as war files.
              > eagerly waiting for your help
              > sincerely
              > Ramesh
              >
              > Issue description and StackTrace:
              > Issue:
              >
              > Precompilation of JSPs fail while using precompile param to true in weblogic.xml and deploy it as War file. It is througing "failure pre-compiling JSP's
              > weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
              > xception: Could not include index.jsp" exception.
              >
              > OS: Windows 2000
              > Jdk: Sun Jdk1.3.1
              > Weblogic: 6.1 SP2
              >
              > ***Stacktrace*************
              >
              > <Dec 17, 2002 1:05:51 PM CST> <Error> <HTTP> <[WebAppServletContext(3961036,AdvW
              > eb,/AdvWeb)] failure pre-compiling JSP's
              > weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
              > xception: Could not include index.jsp
              > at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1025)
              > at weblogic.servlet.jsp.JspParser.doit(JspParser.java:80)
              > at weblogic.servlet.jsp.JspParser.parse(JspParser.java:183)
              > at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
              > at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255
              > )
              

  • How to force a jsp page to reload an "include" file?

    Hi there,
    I'm using WebSphere 4.0.2 with the Java 1.3.1 API.
    Some of my JSP files includes another JSP file as follows:
    <%@include file="constants.jsp"%>The above line came from one of the files entitled "main.jsp".
    Other jsp files on our system can rewrite and update the values in constants.jsp.
    However, when they do so, main.jsp (and the other files that "include" constants.jsp) doesn't take on the new settings unless I either a) reboot the server or b) force a recompile of main.jsp
    Is there any way to have main.jsp pick up when constants.jsp is updated and use the new values without manual intervention?
    Thanks!

    You might want to use 'touch' task of ANT. it modifies the jsp page modification time thus forcing the pages to reload.

  • How to change the filename in @include file?

    I want to do a checking before deciding to include which file,
    for example,
    <%
    if(isValid){
    %>
    <%@ include file="abc.jsp" %>
    <%
    else{ %>
    <%@ include file="def.jsp" %>
    <% } %>but the code above doesnt work in my JSPs
    any idea how to solve this?
    thanks
    Desmond

    Am i clear?? pls correct me if i am wrong..You are wrong.
    The include directive is being used here, which is a compile time include, not a runtime include. Both includes will be performed before the resulting servlet is compiled.
    If they have a conflict between them (either by not nesting them in their own { scope } or using <%! declarations %>) then the generated servlet will fail to compile.
    So if you had the following:
    abc.jsp:
    Hello from ABC!
    <% String myVar = "ABC"; %>def.jsp:
    Hello from DEF!
    <%  String myVar = "DEF";  %>And the page as mentioned in the original post, you would end up with a Servlet something like this:
    if (isValid){
       out.println("Hello from ABC!");
        String myVar = "ABC";
    else{
       out.println("Hello from DEF!");
      String myVar = "DEF";
    }This example would compile because of the presence of the braces.
    However removing the braces or using a <%! declaration %> would probably screw things up with a compile error.
    The %Include directive is like a copy/paste into a JSP before you compile it.
    The <jsp:include> is evaluated at runtime and copies in the result of executing the page.
    The difference is quite subtle, but very important.
    Cheers,
    evnafets

  • How to include a file as variable in %@ include file tag.

    Hi,
    I have a interesting problem here, how can I include a file in <%@ include file tag. where the include file path is a variable. I am trying to implement the following statement.
    <@ include file="<%=headerLogic_template %>">
    where headeLogic_template is a variable which contains the actual path of the include file.
    Thanx,
    Ramana.
    email:[email protected]

    Please note that you can not write anything else between the quotes nor for page specification or parameters.
    BAD EXAMPLE!!
    <% for (int i = 0; i < 20; i++) { %>
    <jsp:include page="included.jsp" flush="false">
      <jsp:param name="apa" value="prestring_<%=i%>"/>
    </jsp:include>
    <% }BAD EXAMPLE!!

  • "Include" files in Dreamweaver

    I used "Include" files in my pre-Dreamweaver sites. When I switched to Dreamweaver and opened those sites, Dreamweaver converted Include file content into content on every page and does not reference the Include file anymore. Is there a way to reestablish Include file functionality in Dreamweaver, so that each page keeps only the reference to the Include file? (If so I can just search/replace content now on the page with a new Include file reference.)

    I don't have a php site but I tried  <?php include("menu.txt"); ?> anyway, but it didn't work.
    Here is what I had used in the past:
    I typed this Include file "call" into the html on the page where I want the left-nav TOC text to display:
    <!--webbot bot="Include" U-Include="i/nav-left.htm" TAG="BODY" startspan -->
    Here is the TOC text contents of "nav-left.htm" which then auto-populates into the live html page on the site when displayed:
    <a href="http://www.example.com/index.php">Home</a> -
    <a href="http://www.example.com/about.php">About Us</a> -
    <a href="http://www.example.com/links.php">Links</a> -
    <a href="http://www.example.com/contact.php">Contact Us</a>
    frontpage would auto-insert this at the end of the above TOC text in the live page:
    <!--webbot bot="Include" i-checksum="20326" endspan -->
    But that TOC text never displayed in the nonpublished local version of the ms-frontpage web pages. It only filled in the TOC text on the page from the Include file after published out to the live site.
    Whenever I changed the contents in the one file i/nav-left.htm, it updated the left nav TOC text on all the pages on my site where I had inserted the include statement:
    <!--webbot bot="Include" U-Include="i/nav-left.htm" TAG="BODY" startspan -->
    But after I brought this website into Dreamweaver, it automatically replaced all the TOC text contents into my nonpublished local version of the web pages. Now when I change the include file, it does not update the pages in the site. The Include statement fails and never calls the Include file and the Include file TOC text no longer populates the web pages. If I have an update to the TOC text, I have to update it on every individual web page, instead of just once in the Include file like I used to.
    Is there a way to create a new Dreamweaver-friendly Include filed that's not php, or a different way of entering the statement, that will work in Dreamweaver?

  • %@ include file= in a JSP

    Please e-mail responses to [email protected] as well as this newsgroup:
              I have the following in a JSP that was originally designed for iPlanet:
              <%@ include file="../edeploy_global/GlobalVars.jsp" %>
              The JSP that contains this file is in a project called "edeploy28", that is in the same directory as "edeploy_global".
              However, I get the following error in WebLogic when trying to execute this:
              javax.servlet.ServletException: compilation of /DefectCodeSite.jsp failed: weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamException: Could not include ../edeploy_global/GlobalVars.jsp
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
              mpl.java:517)
              at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
              ervletContext.java:940)
              at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
              ServletContext.java:928)
              at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
              ServletContext.java:913)
              at weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4
              83)
              at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:394)
              at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              at weblogic.j2ee.Application.addComponent(Application.java:116)
              at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:283)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:109)
              at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
              r.java:76)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:559)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:545)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
              at $Proxy28.addWebDeployment(Unknown Source)
              at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
              ployment(WebServerMBean_CachingStub.java:985)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:269)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
              loymentTarget.java:233)
              at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
              ments(DeploymentTarget.java:194)
              at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
              DeploymentTarget.java:158)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:559)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:545)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
              at $Proxy27.updateDeployments(Unknown Source)
              at weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
              yments(ServerMBean_CachingStub.java:2299)
              at weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
              er(ApplicationManager.java:239)
              at weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
              nManager.java:121)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:559)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:545)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
              at $Proxy26.start(Unknown Source)
              at weblogic.management.configuration.ApplicationManagerMBean_CachingStub
              .start(ApplicationManagerMBean_CachingStub.java:435)
              at weblogic.management.Admin.startApplicationManager(Admin.java:959)
              at weblogic.management.Admin.finish(Admin.java:459)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
              [att1.html]
              

              I didn't look at your problem very closely. WLS 5.1 has had some problems with including
              JSPs. Get service pack 8 and the patch for CR036881 (from websupport.bea.com/custsupp
              or 1-888-228-4232)
              mike
              "Matt Raible" <[email protected]> wrote:
              >
              >
              >Please e-mail responses to [email protected] as well as this =
              >newsgroup:
              >
              >-------------------------------------------------------------------------=
              >-------
              >
              >I have the following in a JSP that was originally designed for iPlanet:
              >
              ><%@ include file=3D"../edeploy_global/GlobalVars.jsp" %>
              >
              >The JSP that contains this file is in a project called "edeploy28", that
              >=
              >is in the same directory as "edeploy_global". =20
              >
              >However, I get the following error in WebLogic when trying to execute =
              >this:
              >
              >javax.servlet.ServletException: compilation of /DefectCodeSite.jsp =
              >failed: weblogic.utils.ParsingException: nested TokenStreamException: =
              >antlr.TokenStreamException: Could not include =
              >.../edeploy_global/GlobalVars.jsp
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
              > at =
              >weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
              >mpl.java:517)
              > at =
              >weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
              >ervletContext.java:940)
              > at =
              >weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
              >ServletContext.java:928)
              > at =
              >weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
              >ServletContext.java:913)
              > at =
              >weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4
              >83)
              > at =
              >weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:394)
              > at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              > at weblogic.j2ee.Application.addComponent(Application.java:116)
              > at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
              > at =
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              >oymentTarget.java:283)
              > at =
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              >oymentTarget.java:109)
              > at =
              >weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
              >r.java:76)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at =
              >weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              >eanImpl.java:559)
              > at =
              >weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              >..java:545)
              > at =
              >weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              >ionMBeanImpl.java:285)
              > at =
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              >55)
              > at =
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              >23)
              > at =
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
              > at =
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
              > at $Proxy28.addWebDeployment(Unknown Source)
              > at =
              >weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
              >ployment(WebServerMBean_CachingStub.java:985)
              > at =
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              >oymentTarget.java:269)
              > at =
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
              >loymentTarget.java:233)
              > at =
              >weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
              >ments(DeploymentTarget.java:194)
              > at =
              >weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
              >DeploymentTarget.java:158)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at =
              >weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              >eanImpl.java:559)
              > at =
              >weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              >..java:545)
              > at =
              >weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              >ionMBeanImpl.java:285)
              > at =
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              >55)
              > at =
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              >23)
              > at =
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
              > at =
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
              > at $Proxy27.updateDeployments(Unknown Source)
              > at =
              >weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
              >yments(ServerMBean_CachingStub.java:2299)
              > at =
              >weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
              >er(ApplicationManager.java:239)
              > at =
              >weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
              >nManager.java:121)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at =
              >weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              >eanImpl.java:559)
              > at =
              >weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              >..java:545)
              > at =
              >weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              >ionMBeanImpl.java:285)
              > at =
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              >55)
              > at =
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              >23)
              > at =
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
              > at =
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
              > at $Proxy26.start(Unknown Source)
              > at =
              >weblogic.management.configuration.ApplicationManagerMBean_CachingStub
              >..start(ApplicationManagerMBean_CachingStub.java:435)
              > at =
              >weblogic.management.Admin.startApplicationManager(Admin.java:959)
              > at weblogic.management.Admin.finish(Admin.java:459)
              > at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
              > at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
              >
              >
              ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
              ><HTML><HEAD>
              ><META http-equiv=3DContent-Type content=3D"text/html; =
              >charset=3Diso-8859-1">
              ><META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR>
              ><STYLE></STYLE>
              ></HEAD>
              ><BODY>
              ><DIV><FONT face=3DArial size=3D2>Please e-mail responses to <A=20
              >href=3D"mailto:[email protected]">[email protected]</A> as well as =
              >this=20
              >newsgroup:</FONT></DIV>
              ><DIV>
              ><HR>
              ></DIV>
              ><DIV><FONT face=3DArial size=3D2>I have the following in a JSP that was
              >=
              >originally=20
              >designed for iPlanet:</FONT></DIV>
              ><DIV><FONT face=3DArial size=3D2></FONT> </DIV>
              ><DIV><FONT face=3DArial color=3D#008000 size=3D2><STRONG><%@ include=20
              >file=3D"../edeploy_global/GlobalVars.jsp" %></STRONG></FONT></DIV>
              ><DIV><FONT face=3DArial size=3D2></FONT> </DIV>
              ><DIV><FONT face=3DArial size=3D2>The JSP that contains this file is in a
              >=
              >project=20
              >called "edeploy28", that is in the same directory as =
              >"edeploy_global". =20
              ></FONT></DIV>
              ><DIV><FONT face=3DArial size=3D2></FONT> </DIV>
              ><DIV><FONT face=3DArial size=3D2>However, I get the following error in =
              >WebLogic when=20
              >trying to execute this:</FONT></DIV>
              ><DIV><FONT face=3DArial size=3D2></FONT> </DIV>
              ><DIV><FONT face=3DArial size=3D2>javax.servlet.ServletException: =
              >compilation of=20
              >/DefectCodeSite.jsp failed: weblogic.utils.ParsingException: nested=20
              >TokenStreamException: antlr.TokenStreamException: </FONT><FONT =
              >size=3D2><FONT=20
              >face=3DArial><STRONG><FONT color=3D#ff0000>Could not include=20
              >.../edeploy_global/GlobalVars.jsp</FONT><BR></STRONG>   &nb=
              >sp;   =20
              >at=20
              >weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)<BR> &n=
              >bsp;     =20
              >at=20
              >weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI<BR>=
              >mpl.java:517)<BR>       =20
              >at=20
              >weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS<BR>=
              >ervletContext.java:940)<BR>       =20
              >at=20
              >weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp<BR>=
              >ServletContext.java:928)<BR>       =20
              >at=20
              >weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp<BR>=
              >ServletContext.java:913)<BR>       =20
              >at=20
              >weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4<BR>=
              >83)<BR>       =20
              >at=20
              >weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:394)<BR>&=
              >nbsp;      =20
              >at=20
              >weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)<BR> &n=
              >bsp;     =20
              >at=20
              >weblogic.j2ee.Application.addComponent(Application.java:116)<BR> &nb=
              >sp;     =20
              >at=20
              >weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)<BR> &n=
              >bsp;     =20
              >at=20
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl<BR>=
              >oymentTarget.java:283)<BR>       =20
              >at=20
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl<BR>=
              >oymentTarget.java:109)<BR>       =20
              >at=20
              >weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe<BR>=
              >r.java:76)<BR>       =20
              >at java.lang.reflect.Method.invoke(Native=20
              >Method)<BR>        at=20
              >weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB<BR>=
              >eanImpl.java:559)<BR>       =20
              >at=20
              >weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl<BR>=
              >..java:545)<BR>       =20
              >at=20
              >weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat<BR>=
              >ionMBeanImpl.java:285)<BR>       =20
              >at=20
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
              >55)<BR>       =20
              >at=20
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
              >23)<BR>       =20
              >at=20
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)<BR>&n=
              >bsp;      =20
              >at=20
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)<BR>&n=
              >bsp;      =20
              >at $Proxy28.addWebDeployment(Unknown=20
              >Source)<BR>        at=20
              >weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe<BR>=
              >ployment(WebServerMBean_CachingStub.java:985)<BR>    =
              >   =20
              >at=20
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl<BR>=
              >oymentTarget.java:269)<BR>       =20
              >at=20
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep<BR>=
              >loymentTarget.java:233)<BR>       =20
              >at=20
              >weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy<BR>=
              >ments(DeploymentTarget.java:194)<BR>      &=
              >nbsp;=20
              >at=20
              >weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(<BR>=
              >DeploymentTarget.java:158)<BR>       
              >=
              >
              >at java.lang.reflect.Method.invoke(Native=20
              >Method)<BR>        at=20
              >weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB<BR>=
              >eanImpl.java:559)<BR>       =20
              >at=20
              >weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl<BR>=
              >..java:545)<BR>       =20
              >at=20
              >weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat<BR>=
              >ionMBeanImpl.java:285)<BR>       =20
              >at=20
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
              >55)<BR>       =20
              >at=20
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
              >23)<BR>       =20
              >at=20
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)<BR>&n=
              >bsp;      =20
              >at=20
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)<BR>&n=
              >bsp;      =20
              >at $Proxy27.updateDeployments(Unknown=20
              >Source)<BR>        at=20
              >weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo<BR>=
              >yments(ServerMBean_CachingStub.java:2299)<BR>    &nbs=
              >p;  =20
              >at=20
              >weblogic.management.mbeans.custom.ApplicationManager.startConfigManag<BR>=
              >er(ApplicationManager.java:239)<BR>      &n=
              >bsp;=20
              >at=20
              >weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio<BR>=
              >nManager.java:121)<BR>       =20
              >at java.lang.reflect.Method.invoke(Native=20
              >Method)<BR>        at=20
              >weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB<BR>=
              >eanImpl.java:559)<BR>       =20
              >at=20
              >weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl<BR>=
              >..java:545)<BR>       =20
              >at=20
              >weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat<BR>=
              >ionMBeanImpl.java:285)<BR>       =20
              >at=20
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
              >55)<BR>       =20
              >at=20
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
              >23)<BR>       =20
              >at=20
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)<BR>&n=
              >bsp;      =20
              >at=20
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)<BR>&n=
              >bsp;      =20
              >at $Proxy26.start(Unknown =
              >Source)<BR>       =20
              >at=20
              >weblogic.management.configuration.ApplicationManagerMBean_CachingStub<BR>=
              >..start(ApplicationManagerMBean_CachingStub.java:435)<BR>   =
              >;    =20
              >at=20
              >weblogic.management.Admin.startApplicationManager(Admin.java:959)<BR>&nbs=
              >p;      =20
              >at=20
              >weblogic.management.Admin.finish(Admin.java:459)<BR>   &nb=
              >sp;   =20
              >at=20
              >weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)<BR>    =
              >;   =20
              >at=20
              >weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)</FONT></FONT></DIV></BODY></=
              >HTML>
              >
              >
              

  • Suse 9.2: can't open include file stdio.h

    Hi there,
    I'm just starting with studio express in linux and have strange error, I don't know how to solve. Is easy to see:
    hello.c:
    #include <stdio.h>
    int main(int argc, char **argv)
    printf("start with studio express for linux\n"); fflush(stdout);
    return 0;
    CC -o hello.bin hello.c"/opt/sunstudiomars/prod/include/cc/stdio.h", line 5: Error: Could not open include file<stdio.h>.
    "hello.c", line 6: Error: The function "printf" must have a prototype.
    "hello.c", line 6: Error: stdout is not defined.
    3 Error(s) detected.
    Then I retry with an adequate include path (there is only one containing the required header):
    CC -I/opt/sunstudiomars/prod/include/CC/stlport4 -o hello.bin hello.c"/opt/sunstudiomars/prod/include/cc/features.h", line 10: Error: Could not openinclude file<features.h>.
    "/opt/sunstudiomars/prod/include/cc/stdio.h", line 5: Error: Could not open include file<stdio.h>.
    "hello.c", line 6: Error: The function "printf" must have a prototype.
    "hello.c", line 6: Error: stdout is not defined.
    4 Error(s) detected.
    Also if file is .cpp extended it's no change. I'm using suse9.2 with all patches and studio express: Sun C++ 5.9 Linux_i386 Build35_2 2006/12/04. Any ideas? Thanks in advance.
    rgaa

    Also if file is .cpp extended it's no change. I'm
    using suse9.2 with all patches and studio express:
    Sun C++ 5.9 Linux_i386 Build35_2 2006/12/04. Any
    ideas? Thanks in advance.It seems to me that libc-devel is not installed on your system. Please
    let us know the output of the following command:
    $ rpm -qi glibc-devel
    Thanks,
    Roman.

Maybe you are looking for

  • Advice on how to read the Product View (/sapapo/rrp3)

    Hi to all!! I need your help!! May you give me some advice on how to read  the product view /sapapo/rrp3 (above all the pegging overview tab)?? Is there any useful link or some texts that could help me? Thanks in advance! Regards Maria Piscitelli

  • Issue opening or creating new files in illustrator CS5 windows 7 64bit, "Not Responding"

    Issue opening or creating new files in illustrator CS5 windows 7 64bit, program becomes "Not Responding" when opening a file. I had recently tried a trial version of FontExplorer Pro X, and this issue has come up after the Uninstallation of that prog

  • 3110 classic, what's new in v5.01?

    i see that there is a new firmware available for 3110 classic (not yet in scandinavian according to the software updater though). my question is: what's new in v.5.01? any changelog?

  • CS3 won't see all RAM on new MacPro 10.5.3

    I've upgraded to the MacPro Dual 2.8 quad core (10GB RAM) and use PS CS3. In preferences, it only shows 3GB, same I had in the G5 I migrated the program from. Doesn't it check the actual RAM? I need to update the preferences file, but don't know whic

  • Can't get SWF to display on DW CS4 generated page

    I can't get a simple SWF to display on a page created in DW CS4. It uses the new swfobject_modified.js, but generates a script error, and in Firefox shows the message "Content on this page requires a newer version of Adobe Flash Player" even though t