JNI header files and /include

Does anyone know where the JNI classes and what .jar file if need be or just what classes jni.c header file(s)are dependant upon, and do they reside in JRE 1.3.0 or 1.3.1, or do I need the JDK version to obtain these, also isn't there suppose to be a JAVA_HOME/include directory where JNI stuff is or at all, or did that all change in 1.3 and up. I thought I remember there being one 1.17 and 1.2ish JDK's if not JRE installs. Any help would be greatly appreciated. Thanks. Trask.

and what jar are they in or what is the path to them from JAVA_HOME

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?

  • Problem with import tag in xsl files and include in xsd files

    Hello,
    I've been developing an application using JBoss as server. Then, i created an especific path for xsd and another path for xsl files. In both cases, i created a main file that include (xsd) or import (xsl) the other files. My problem is that i have to specify the exactly path where the imported xsl or the included xsd files are, even though they are in the same path as the main file. What i want to know is how i say that the other xsd and xsl files are in the same path that the main file that is importing them?
    here's an example of my import and include declarations:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:import href="../server/jboss/deploy/application.ear/pack.jar/xsl/transformer1.xsl"/>
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
              elementFormDefault="qualified">
         <xsd:include schemaLocation="../server/jboss/deploy/application.ear/pack.jar/xsd/schema1.xsd"/>
    thanks for your help

    yes, thats not the value returned of
    URL url = this.getClass().
                        getResource("/xsl//transformer.xsl");the expression i posted is an string i'm using to test.... but i think it's not incorrect, because if the files i'm trying to open are not in the path, he throws the following exception:
    java.io.FileNotFoundException: C:\cpqd\isp\tools\third-party\jboss\server\jbossISP1\deploy\cpqd-ispeng-EngEJB-3.3.0.0.ear\cpqd-ispinv-ServiceEJB.jar\xsl\isp_transformer_manufacturer.xsl
        at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:80)
        at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:89)
        at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
        at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xalan.processor.ProcessorInclude.parse(ProcessorInclude.java:323)
        at org.apache.xalan.processor.ProcessorInclude.startElement(ProcessorInclude.java:192)
        at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:668)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:972)
        at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:788)
        at br.com.cpqd.oss.isp.service.adapter.FrameworkAdapter.createExternalData(FrameworkAdapter.java:131)
        at br.com.cpqd.oss.isp.service.message.ExternalDataMDBBean.onMessage(ExternalDataMDBBean.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:458)
        at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
        at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:62)
        at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
        at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:284)
        at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:150)
        at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:90)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
        at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
        at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:372)
        at org.jboss.ejb.Container.invoke(Container.java:709)
        at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:928)
        at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1205)
        at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:276)
        at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904)
        at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159)
        at org.jboss.mq.SpySession.run(SpySession.java:351)
        at org.jboss.jms.asf.StdServerSession.run0(StdServerSession.java:200)
        at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
        at java.lang.Thread.run(Thread.java:534)and when the files are in the path, he throws the other exception... thats why i think the problem it's not the URL....

  • Portlet backing file and include

    If I have a backing file, is there way to include another page in the
    handlePostback() method or preRender() method? Don't want to change the
    whole page, just the contents of the portlet...

    According to the documentation, here is the difference:
    Scoping and Backing Files
    The difference between having a backing file as part of <netuix: portlet backingfile =some_value> or part of <netuix: jspContent backingfile=some_value> is related to scoping.
    For example, if you have the backing file on the portlet itself, you can actually stop the portlet from rendering. If the backing file is at the jspContent level, the portlet portion of the control tree has already run; you use this implementation to run processes that are specifically for the JSP in the portlet.
    See http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/portlets/building.html#wp1077130 for more info.
    Brad

  • Labview Full 6.1 - You get CIN Tools header files and what else?

    We have Labview 6.1 Base Level and are developing 3rd party instrument drivers, initially implementing the AI functions. I have disovered it would be nice to beable to use NumericArrayResize for which we need CIN Tools and may need to upgrade. What else would we get?
    Can we build polymorphic Vis?
    Can we include our third party driver in the Measurement and Instrument Explorer?
    Can we have DAQ channels registered to our instrument?
    Can we create a functions palette for our interface?
    Are we able to build a Labview installer for the driver?

    You can go to www.ni.com and get a complete list of all the features but briefly, the full version adds analysis, signal processing, custom graphics and animation, CIN/DLL tools. The professional version adds the applicaton builder, source code control, a differencing tool, and polymorphic VI creation.
    MAX is for NI hardware and IVI drivers - not LabVIEW instrument drivers. You say that you're using the AI functions which implies an NI DAQ board so the board should already be visible in MAX as well as the channels.
    I believe all versions of LabVIEW can create a custom palette. On your function palette, click the Options button and see if there's a Edit Palettes button. If there is, the LabVIEW help can guide you in the creation of your own .mnu fil
    es that you can save and distribute.
    The application builder (which is also available separately) includes an installer that could probably be used for driver installation but I've never tried it for that. When I've created LabVIEW instrument drivers, all I usually did was zip up the LLB and mnu files, place them in the instr.lib folder and then unzip them.

  • Object Bulider- Object Interface 4.1.3 header files and libraries

    Hi,
    Due to a hard disk crash I have lost the OI header and libraries files version 4.1.3.
    Can someone please let me know where can I get these files from. It will be very helpful if someone can provide me a link to download the same
    Thanks !!!

    You installed the Conduit spyware. To remove it, select Go ▹ Go to Folder… from the Finder menu bar, then copy the following text into the box that opens:
    ~/Library/Application Support/Conduit
    Delete the selected item, if it exists.
    Now select Go to Folder… again and enter:
    /Library
    From the folder that opens, delete the following items, if they exist. You may be prompted for your login password.
    Application Support/Conduit
    InputManagers/CTLoader
    LaunchAgents/com.conduit.loader.agent.plist
    ScriptingAdditions/ct_scripting.osax
    Close the folder. Now select Go to Folder… again and copy:
    /Applications/Toolbars
    Delete that item. Close the Finder windows you opened. Log out and log back in.

  • Exporting data to a csv file and include column names

    I am creating a SSIS package which creates a .csv file.  The package works fine except it is not putting the column names as the first row.
    How do I get the column names to also export?
    Thanks,
    ~John

    SQL Server 2012 T-SQL has the new FORMAT command:
    SELECT FORMAT(CONVERT(MONEY,123456.78),'c0','en-US'), -- $123,457
    FORMAT(CONVERT(MONEY,123456.78),'c2','en-US'), -- $123,456.78
    FORMAT(CONVERT(MONEY,123456.78),'c2','en-GB'), -- £123,456.78
    FORMAT(CONVERT(MONEY,123456.78),'c2','de-DE') -- 123.456,78 €
    Prior to SS 2012:
    SELECT CONVERT(varchar(40),CONVERT(MONEY,123456.78),1) -- 123,456.78
    SSIS Import/Export Wizard:
    http://www.sqlusa.com/bestpractices/ssis-wizard/
    Kalman Toth SQL 2008 GRAND SLAM
    New Book: SQL Programming & Database Design Using Microsoft SQL Server 2012

  • Header files  not being included in JNI

    I've written a java program which interfaces with some C code.In the c code i use certain functions which are defined in a header file that i include in the same c file.The problem i have ,is that the compiler shows an error when it comes across one of those functions.It seems to me that the header file is not being included.Here's what i've done at the start of the jni c code,any help will be greatly appreciated.
    #include<stdio.h>
    #include " mnt/cprog/ca.h"
    JNIEXPORT void JNICALL......
    Can other header files be included over here ,or do they have to be included from the java file?..but the problem there is that the header file is of .h extension.....any suggestions??
    ps..The os is Linux
    ..Derick

    If the header files are not found, the compiler will tell you. At least gcc does so. If only some functions you are using are missing, they are probably not in the header file you are including.
    By the way, there is no way to include headers for your native code through Java. What kind of mechanism should that be?

  • Include my own libraries and header files when compiling Berkeley DB?

    Hi to All,
    I am a new user to this forum and a newbie to Berkeley DB as well.
    I want to use some functions from some of my header files inside the source code of Berkeley DB.
    I would really appreciate if anyone can help me in including my own header files and libraries in Berkeley DB before compiling and MAKE of Berkeley DB.
    The make file generated by running configure file is too large to undestand and make changes in. So is there any way to include my files in configuration script or Make file created after running configuration script?
    Imp information :
    db-4.7.25.NC.tar.gz + Ubuntu 8.04 + Libraries/Header files to be included are in C and C++.
    Thanks in advance.

    Hi to All,
    I am a new user to this forum and a newbie to Berkeley DB as well.
    I want to use some functions from some of my header files inside the source code of Berkeley DB.
    I would really appreciate if anyone can help me in including my own header files and libraries in Berkeley DB before compiling and MAKE of Berkeley DB.
    The make file generated by running configure file is too large to undestand and make changes in. So is there any way to include my files in configuration script or Make file created after running configuration script?
    Imp information :
    db-4.7.25.NC.tar.gz + Ubuntu 8.04 + Libraries/Header files to be included are in C and C++.
    Thanks in advance.

  • Shared library: function is not found and recognized in header file

    Hello,
    I am trying to use Java methods into LV. I am doing so by creating Java Invocation Interface, usind which I can call Java methods into C++ and then create a shared library that can be called into LV.
    When I am importing my shared library into Labview, I am getting the following error messages:
    The shared library contains 3 function(s). But no function is found and recognized in the header file. The following function(s) cannot be wrapped. If you want to import these functions, please review the warning messages next to the functions below. You will need to fix the problems before you can continue with the wizard.
    jclass invokeJavaClass(JNIEnv* jenv, string className);
    The following symbols are not defined:
    jclass;
    Undefined symbols can prevent the wizard from recognizing functions and parameters. To correct this problem, check the header file to determine if you must add preprocessor definitions. Click the Back button to return to the previous page of the wizard to add a preprocessor definitionsl (for example, "NIAPI_stdcall = __stdcall" or "NIAPIDefined = 1").
    The following header file was not found in the specified header file or one of the referenced header files:
    -  string
    -  iostream
    -  cstring
    -  jni.h
    To fix, click the Back button to go to the previous page and add the header file path to the Include Paths list.
     Please advise.
    Regards,
    H
    Attachments:
    SharedLibError.png ‏51 KB

    Hello Vivek,
    The LabVIEW dll that I am trying to import does not include any third-party device..all my code is fully based on LabVIEW. Maybe this helps you to guess what is happening: once I've parsed the dll' header appears an error
    like this one:
    void
    __cdecl Zdmt(LVBoolean *stop, double P, char channelName[],
        TD1
    *errorIn, TD14 *FFTOptions, TD12 *Calibration, char FileName[],
    int32_t minRecordLength, TD26 *InstrumentHandler, LVRefNum
    sessionRefArray[],
        LVRefNum *queueIN, TD1 *errorOut, LVBoolean
    *averagingDone,
        HWAVES LastRecordFetched, TD24 *Impedance, TD17
    *ColeColeCluster,
        TD18 *FFTcluster, TD5
    *InstrumentHandleOutputCluster, LVRefNum *queueOut,
        int32_t
    *Acquired, TD6 *FreqTimeInfoCluster, double *averagesCompleted,
    int32_t len);
    The following symbols are not defined:
    LVBoolean;
    int32_t; LVRefNum;
    Undefined symbols can prevent the wizard
    from recognizing functions and parameters. To correct this problem,
    check the header file to determine if you must add predefined symbols.
    Click the Back button to return to the previous page of the wizard to
    add a preprocessor definitionsl (for example, "NIAPI_stdcall =
    __stdcall" or "NIAPIDefined = 1").
    The following header file was
    not found in the specified header file or one of the referenced header
    files:
    -  extcode.h
    To fix, click the Back button to go to the
    previous page and add the header file path to the Include Paths list.
    I have replaced the first line #include "extcode.h" of
    the dll header file for #include "C:\Program Files\National
    Instruments\LabVIEW 8.6\cintools\extcode.h" that is the full path where
    the header file is located. However, new libraries seems to be missed:
    -  stdint.h
    -  MacTypes.h
    As far as I know,  Mactypes.h contains basic mac os data types and it doesn't have any relation with stdint.h...
    I have created both of them and stored into the same folder as extcode.h, but then other libraries are missed!!!
    Do you know if it would be possible to create the .dll generating all the header files associated for its data structures???
    And if this is not factible, then what do you suggest me? because I hope to not having to create all the header files until it stops giving me an error!
    thanks for four time,
    ben

  • Getting stylesheets to work in header.php and files associated with it

    Let's say I created a header.php file in my includes folder.  And I include it in my index.php file in the site root directory.
    Then in the header.php file, I have a link to the style sheet. 
    The issue I've always found is that you can't get the header.php file to apply the stylesheet.
    I can get it to work using global links, however I don't want to do that as I'll have to undo them before I upload the site.  (And I forget....)
    So anyways, I came up with this code today in an attempt to overcome this.  Here is my header file so far:
    "; } else           echo ""; ?>  
    So here is what it is doing:
    1. It is creating a variable called $directory which is equal to the current directory.
    2. Then it is creating another variable called $currentFolder which is equal to whether or not the variable $directory contains the word "includes".
    3. Then it says if $currentFolder is NOT false then it has the location of the stylesheet in relation to the header.php file.
    4. Else - if it IS false then the stylesheet is located in a location in relation to files in my root directory.
    This works perfectly fine....in Live view.  Both the header.php and index.php will format the header in live view.  Neither though will format it in Design view.  Which sucks cause I was pretty happy that I came up with this code on my own.
    The reason it isn't working in Design View - I realize now - is because Dreamweaver won't process that script in Design View. 
    Does anyone know of a way to get this script to run in Design View?  Or maybe some suggestions on editing this code to get it to work in Design View?
    Thanks!

    >The issue I've always found is that you can't get the header.php file to apply the stylesheet.
    Right. That's because, and it seems you understand this already, the css file relative location is different from the point of view of the header file, and the parent file. Since the header file is included in the parent at the server, the client then sees the css file in the wrong location.
    The solution is to use Design time style sheets. This will apply the css to the page only in design time - it won't actually insert the css file into the code. So, insert the css reference into the header file from the point of view of the parent - index.html. Then add a design time style sheet. That should work.

  • Does arch install library and header files into system when using abs?

    In traditional make way, when compiling a package, I must install some library or header file or tool packages to satisfy its depends, but after compilation, I do "make install", and run it. At runtime, library and header file and tool packages are not needed....
    This make a lot of unuseful packages are left in the system.....
    In arch linux , when I using abs to make a package, does these packages are left in the system ?
    How abs separates the compile-time depends and the runtime depends ????
    Last edited by iamybj (2010-03-22 01:24:57)

    tomk wrote:
    The PKGBUILD has a depends array and a makedepends array. Anything that's required at runtime goes in the depends array, and must be installed for the application to run successfully. Anything that's only required at buildtime foes in the makedepends array, and can be removed from the system after the application has been built.
    man PKGBUILD and various wiki pages for more details.
    Anything that's only required at buildtime foes in the makedepends array, and can be removed from the system after the application has been built.
    ==================
    Who remove them ? user or the abs ??
    I think the best method is file dependence , not package dependence.....
    Software is arranged by package. but its dependence is file. When Install a package, pacman check its file dependence, and install the packages which include those files....
    If a  not explicit installed package 's file does not required by any other packages , it can be removed automatically !
    In this situation ,pacman can find packages that not needed after compilation, and remove them.
    Last edited by iamybj (2010-03-22 03:15:06)

  • 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

  • HELP--using a program's header file!

    Ok, I have gone thru the jni tutorial and I understand the HelloWorld example... my problem is, in the tutorial the java part calls a C program that they then write... I need to call an existing program that is not written in java? I have this program's header file and that is all.
    How do I use this so that my java program can call the existing non java program? What do I do with it, how should/do I make the dll? The methods sigs. in the non java program's header file do not look like the ones created by javah.exe.
    please help, and thanks in advance

    What you need to do is
    1. Design nice java methods that are the equivalent of the C functions. Define them as "native" - no implementation in java.
    2. run javah and generate an h file for those methods.
    3. Write a dll in c for the new javah-generated .h file. This will be a very thin layer that translates between java and the original dll. In other words, your new dll mostly just calls the functions in the old dll.

  • Header File Functions Not Recognized

    hi, this is my first discussion on this form.
    i am trying to make a custom calculator using C++.i am trying to use a function that i have included in a header file, but it fails to compile and says i'm using an using an undeclaired identifier.
    i have 4 header files and only one of them (squared.h) actually lets me access my functions inside. i am new to C++.
    i am running OSX Lion and using Xcode 4 for my compiler.
    Main.cpp
    #include <iostream>
    #include "squared.h"
    #include "factorial.h"
    #include "squareroot.h"
    #include "pythagoream.h"
    int main ()
        squareroot();
    pythagoream.h
    #ifndef iostream
    #define iostream
    #ifndef cmath
    #define cmath
    using namespace std;
    double pythagoream()
        cout << "Is it a Side or Hypotonuse(s,h): ";
        char a;
        cin >> a;
        if (a == 's')
            cout << "Enter Hypotonuse Length: ";
            double b;
            cin >> b;
            cout << "Enter Known Side Length: ";
            double c;
            cin >> c;
            double d = sqrt((b * b) - (c * c));
            cout << "The Unknown Side Length Is: " << d << endl;
        if ( a == 'h')
            cout << "Enter Length Of Side 1: ";
            double b;
            cin >> b;
            cout << "Enter Length Of Side 2: ";
            double c;
            cin >> c;
            double d = sqrt((b * b) + (c * c));
    #endif
    #endif
    squared.h
    #ifndef iostream
    #define iostream
    using namespace std;
    void squared()
      cout << "Enter Any Number: ";
      double x;
              cin >> x;
              cout << x << " squared is " << x * x << endl;
    #endif
    squareroot.h
    #ifndef iostream
    #define iostream
    using namespace std;
    void squared()
      cout << "Enter Any Number: ";
      double x;
              cin >> x;
              cout << x << " squared is " << x * x << endl;
    #endif
    factorial.h
    #ifndef iostream
    #define iostream
    using namespace std;
    int factorial()
    int n;
    int factorial,i;
    cout << "Enter a positive integer: ";
    cin >> n;
              for (i = 0; i <= n; i++)
                        if (i == 0)
                        factorial = 1;
      else
                        factorial = factorial * i;
              cout << "The factorial of " << n << " is " << factorial << endl;
    #endif

    You need to include iostream in the header files where it is used and not in Main.cpp

Maybe you are looking for

  • Newbie ERROR- URL Encoded SQL Length exceeds allowed 32K limit

    My SQL Query worked fine yesterday.( I'm still in developing mode) I made a copy of it and put it into a text file.( Just to be sure I had it.) Today When I tried to run it in APEX , I get error URL Encoded SQL Length exceeds 32K limit. Is there any

  • Why Logic Express 9.1.6 (64bit) crash in 10.6.8?

    I never had any crashes in Logic Express before. I lost some great irreplaceable recordings I made because Logic Express 9.1.6 (64bit) crashes a lot in 10.6.8. Please help.                                                                              

  • How to uninstall a dictionary in Pages 09?

    How can I uninstall a dictionary in the Languages Listing under "More"?

  • Error while creating Apps Server

    Hi there, My Platform: Win XP, Oralce10g, BEA WebLogic While trying to create the Apps Server with PSADMIN, I encountered some challenges. Below are some of the errors I encountered. PSADMIN.2784 (0) [01/13/09 05:58:54](0) Begin boot attempt on domai

  • Webbean and HTML bean relationship

    Hi Assume we have this code: <jsp:useBean class="oracle.jbo.html.databeans.ViewCurrentRecord" id="viewRecords" scope="request" > <% viewRecords.setUseRoundedCorners(false); viewRecords.setShowRecordNumbers(true); viewRecords.setReleaseApplicationReso