share a variable across two libraries

Discussion in 'C++' started by guddu, Jun 24, 2008.

  1. guddu

    guddu Guest

    Hi,
    I have to share a variable across two libraries. These libraries are
    build separately and share a common header file.

    I had tried this earlier using extern variable. That didn't help.

    Any ideas about this ??

    Thanks and Regards,
    Vishal
     
    guddu, Jun 24, 2008
    #1
    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. Replies:
    1
    Views:
    671
    Paul Boddie
    Dec 1, 2005
  2. guddu

    share a variable across two libraries

    guddu, Jun 24, 2008, in forum: C Programming
    Replies:
    1
    Views:
    236
    rahul
    Jun 25, 2008
  3. Saraswati lakki
    Replies:
    0
    Views:
    1,375
    Saraswati lakki
    Jan 6, 2012
  4. Jack
    Replies:
    2
    Views:
    227
  5. Eric Wong
    Replies:
    0
    Views:
    213
    Eric Wong
    Feb 13, 2010
Loading...

Share This Page