Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-08-22
2
Medium Priority
?
340 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article was originally published on Monitis Blog, you can check it here . If you have responsibility for software in production, I bet you’d like to know more about it. I don’t mean that you’d like an extra peek into the bowels of the sourc…
Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand – and conveys the hard lessons his company learned in the aftermath.
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

609 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