g++ -pg option and -shared option

Discussion in 'C++' started by Julien ROUZIERES, Dec 21, 2004.

  1. Hi,

    I would like to know if pg (gprof profiler) g++ option is compatible
    wtih -shared option because my program use dynamic libraries (.so) ?

    For informations i obtain the following error when I compile :

    /bin/ld:
    -pg incompatible with -shared; assuming -no_pg
    /bin/ld:
    -pg incompatible with -shared; assuming -no_pg



    Thank for your answers !!!

    regards,

    Julien
    Julien ROUZIERES, Dec 21, 2004
    #1
    1. Advertising

  2. Julien ROUZIERES

    GianGuz Guest

    Julien ROUZIERES wrote:
    > Hi,
    >
    > I would like to know if pg (gprof profiler) g++ option is compatible
    > wtih -shared option because my program use dynamic libraries (.so) ?
    >
    > For informations i obtain the following error when I compile :
    >
    > /bin/ld:
    > -pg incompatible with -shared; assuming -no_pg
    > /bin/ld:
    > -pg incompatible with -shared; assuming -no_pg
    >
    >
    >
    > Thank for your answers !!!
    >
    > regards,
    >


    Questions that does not concern ISO-C++ language
    should be considered offtopic. Try to another
    group like comp.compilers

    Gianguglielmo
    > Julien
    GianGuz, Dec 21, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. DJ Dev
    Replies:
    3
    Views:
    16,113
    Gandalf
    Feb 8, 2004
  2. Joe Fallon
    Replies:
    3
    Views:
    762
    =?Utf-8?B?Z3V5?=
    Jul 16, 2004
  3. ben
    Replies:
    3
    Views:
    509
    Kevin Spencer
    Nov 15, 2004
  4. tshad
    Replies:
    11
    Views:
    815
    tshad
    May 27, 2005
  5. HmFireBall
    Replies:
    2
    Views:
    515
    HmFireBall
    Jan 2, 2006
Loading...

Share This Page