?
Solved

porting linux code to windows (".a" libraries)

Posted on 2004-08-22
2
Medium Priority
?
344 Views
Last Modified: 2013-11-15
hi !!

i have a c++ prog .. i'm using it on linux, but it doesn't use any linux specific features .. use g++ to compile ..it uses a library (".a" + ".so.1" files)

i now need to make the code work on windows .. so i downloaded the Mingw compiler .. it compiles fine, but gives some linker errors ("function not found" .. these functions are present in the library files - ".a" + ".so.1") .. i've copied these 2 files to the lib folder of mingw .. but it doesn't seem to help ...

can anyone tell me wht i'm doing wrong ?? i thought mingw was able to link against ".a" files .. is there any other compiler that i could use ??

thanks :)
muskad202
0
Comment
Question by:muskad202
2 Comments
 

Accepted Solution

by:
__init__ earned 200 total points
ID: 11928890
It seems that you didn't recompile the library on new platform. Both mingw and cygwin use .a libraries without problems.

As for .so -- in M$ world it is called .dll ;)  Actually windows .dll's are quite different from .so's -- e.g. all symbols should be exported explicitly and so on.
0
 
LVL 2

Author Comment

by:muskad202
ID: 11929098
unfortunately, i don't have the src of the library :(
thanks anywayz :)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are like me and like multiple layers of protection, read on!
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question