By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,159 Members | 1,941 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,159 IT Pros & Developers. It's quick & easy.

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

P: n/a
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?

Oct 5 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
> 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
Oct 5 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.