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
Solved

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

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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…
A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
The viewer will learn common shortcuts with easy ways to remember them. The viewer will then learn where to find all of the keyboard shortcuts, how to create/change them, and how to speed up their workflow.
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.

809 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