Solved

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

Posted on 2004-08-22
2
306 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 50 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Software to generate custom JPGs 12 95
Denali Software 2 44
outlook office 365 8 76
Suggestions of cloud services for small businesses 9 18
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
Viewers will learn how to use the Hootsuite Dashboard.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

932 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now