Solved

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

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Free employee timeclock 7 51
convert char array to number in c 5 77
Replace Adobe Acrobat XI with what? 2 76
Denali Software 2 11
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.
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…

707 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

16 Experts available now in Live!

Get 1:1 Help Now