LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-12-2007, 04:53 AM   #1
Dooshlibob
LQ Newbie
 
Registered: Mar 2007
Posts: 1

Rep: Reputation: 0
Port Static Library from linux to windows?


Hi, I'm trying to port some code from linux to win32 and winCE. I can compile the code using Dev-CPP and mingw on windows, but when I try to run things in Visual Studio (which I need to do for various reasons) I have problems linking... Now when I compile the linux code I am getting linux static libraries (.a files) and I need a simple method to convert them to lib/dlls. Does anyone know if this is possible of if I'll have to rebuild everything from scratch in Visual Studio?
 
Old 03-12-2007, 06:05 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It depends on the code. Written in a portable way should compile nicely with probably just a change or two in the makefile. Simply converting will not work in huge majority of cases. What you need to to is to make it all link. I don't know how many errors you get, but try to get through the first ones and check how you can fix them. If you can provide us with an example or two of such errors, it would be easier to estimate how much work is needed.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shared to static library ofada Programming 2 07-08-2009 11:54 AM
LINUX - linking archive (static library) with shared (dynamic) library gurkama Programming 5 03-04-2007 11:11 PM
autotools and static library sergio21 Linux - Software 1 01-18-2007 03:46 PM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM
How to use own static library? chuanyung Programming 4 03-10-2004 07:54 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration