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

B

Bhan

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?
 
B

benben

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top