C++ Libraries generated in windows Can be reused in Linux?

Discussion in 'C++' started by Bhan, Oct 5, 2005.

  1. Bhan

    Bhan Guest

    C++ Libraries generated in windows Can be reused in Linux?(Lets assume
    that libs are not having any machine dependent features like os
    calls,etc)

    I felt that if we use same linker,we can do this.
    Any inputs on this issue?
     
    Bhan, Oct 5, 2005
    #1
    1. Advertisements

  2. Bhan

    benben Guest

    > C++ Libraries generated in windows Can be reused in Linux?(Lets assume
    > that libs are not having any machine dependent features like os
    > calls,etc)


    I am pretty sure you CAN have a compiler running on Windows that generates
    code that could run on Linux or any other platforms.

    >
    > I felt that if we use same linker,we can do this.
    > Any inputs on this issue?
    >


    Building a binary image that can run on multiple platforms is another matter
    (a much more challenging one I'd assume). What most folks do is to keep
    portability at source code level and compile different versions of library
    for different platforms.

    Ben
     
    benben, Oct 5, 2005
    #2
    1. Advertisements

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. Steve M
    Replies:
    1
    Views:
    418
  2. Andy Fish
    Replies:
    4
    Views:
    872
    Andy Fish
    Jan 17, 2005
  3. U. George
    Replies:
    4
    Views:
    1,074
    U. George
    Aug 11, 2005
  4. Karsten Wutzke
    Replies:
    21
    Views:
    1,276
    Roedy Green
    Jun 29, 2007
  5. Sriram Srinivasan
    Replies:
    13
    Views:
    882
    Benjamin Kaplan
    Nov 12, 2009
  6. Max2006
    Replies:
    4
    Views:
    1,891
    Vince Xu [MSFT]
    Dec 1, 2009
  7. Krishna Chaitanya
    Replies:
    1
    Views:
    285
    Krishna Chaitanya
    Feb 27, 2009
  8. Johannes Kleese
    Replies:
    4
    Views:
    555
    Terry Reedy
    Nov 27, 2012
Loading...