Ask a Question related to AIX, Design and Development.

  1. #1

    Default C++ library

    IBM RS6000 that uses AIX commands. Compiles C programs with <studio.h>
    library using command

    cc myfile.c

    For some reason won't compile C++ programs with <iostream.h> library.
    When

    cc mycplus.c

    used, compiler lists error message that <iostream.h> not found.

    Any suggestions.



    Les Coover Guest

  2. Similar Questions and Discussions

    1. http, library loaded, httpS library can't be found
      I'm trying to get Verisign's Payflow Pro setup and going. I thought I had everything working, but when I went in through the SSL, httpS://, it...
    2. Cannot instantiate .NET Class Library to expose webservice client library
      Now that I have got the mickey mouse .NET interop problem sorted (exposing ..NET library to ASP/VB6), I want to demo the real problem I am having. ...
    3. Calling a Managed C++ library which uses a load library function from a WS
      Good Day! Im trying to call a managed c++ library from a web service using c# but when i go trough the code the was'nt able to load the library....
    4. ~/Library/ vs ~/System/Library vs /User/Library/
      In article <110720031327074895%justin.c@se.net>, justin <justin.c@se.net> wrote: First off, you're a little bit confused. ~ means your home...
    5. [XFree86] system can't find library ( strange library behaviour )
      Hi Mark, No I hadn't tried ldconfig, but it sorted out the problem, thanks! I'd read a little bit about libraries a while ago, but could not...
  3. #2

    Default Re: C++ library

    Les Coover wrote:
    > IBM RS6000 that uses AIX commands. Compiles C programs with <studio.h>
    > library using command
    >
    > cc myfile.c
    >
    > For some reason won't compile C++ programs with <iostream.h> library.
    > When
    >
    > cc mycplus.c
    >
    > used, compiler lists error message that <iostream.h> not found.
    >
    > Any suggestions.
    >
    >
    >
    Try the C++ compiler driver "xlC" or similar.
    You can look in /etc/vacXXX.cfg what macros and compiler flags are
    appended with which of the different invocations.

    The extended ANSI C should not compile any C++ code.
    It even should issue at least a warning for C++ style single line
    comments, without explicitly allowing them with '-qcpluscmt'.

    ---
    Uli

    Ulrich--nO--(dot)-sPAM--Link Guest

  4. #3

    Default Re: C++ library

    > Try the C++ compiler driver "xlC" or similar.
    Do you mean use xlc at prompt line as

    xlc mycplus.c

    This results in xlc: not found
    > The extended ANSI C should not compile any C++ code.
    > It even should issue at least a warning for C++ style single line
    > comments, without explicitly allowing them with '-qcpluscmt'
    Do you mean use -qcpluscmt as cc mycplus.c -qcpluscmt This results
    in same File <iostream> not found message.
    > You can look in /etc/vacXXX.cfg what macros and compiler flags are
    > appended with which of the different invocations.
    Not sure what you mean by this, what do I type at prompt line?




    "Ulrich--nO--(dot)-sPAM--Link" <"Ulrich--nO--(dot)-sPAM--Link"@Epost.de>
    wrote in message news:bjhegr$af3$06$1@news.t-online.com...
    > Les Coover wrote:
    > > IBM RS6000 that uses AIX commands. Compiles C programs with <studio.h>
    > > library using command
    > >
    > > cc myfile.c
    > >
    > > For some reason won't compile C++ programs with <iostream.h> library.
    > > When
    > >
    > > cc mycplus.c
    > >
    > > used, compiler lists error message that <iostream.h> not found.
    > >
    > > Any suggestions.
    > >
    > >
    > >
    >
    > Try the C++ compiler driver "xlC" or similar.
    > You can look in /etc/vacXXX.cfg what macros and compiler flags are
    > appended with which of the different invocations.
    >
    > The extended ANSI C should not compile any C++ code.
    > It even should issue at least a warning for C++ style single line
    > comments, without explicitly allowing them with '-qcpluscmt'.
    >
    > ---
    > Uli
    >

    Les Coover Guest

  5. #4

    Default Re: C++ library

    "Les Coover" <lcc66604@cox.net.spam> writes:
    > Not sure what you mean by this, what do I type at prompt line?
    (note capitalization):

    mv mycplus.c mycplus.cc
    PATH=$PATH:/usr/vacpp/bin
    xlC mycplus.cc

    And please do not top-post.

    Cheers,
    --
    In order to understand recursion you must first understand recursion.
    Paul Pluzhnikov Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139