Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

Creating a dynamic library for Win32 on Interix

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> Creating a dynamic library for Win32 on Interix Page: [1]
Login
Message << Older Topic   Newer Topic >>
Creating a dynamic library for Win32 on Interix - Aug. 16, '06, 2:19:19 PM   
blake

 

Posts: 1
Joined: Aug. 15, '06,
Status: offline
Hello,

I am wondering if it is possible using Interix to take a collection of C code written on UNIX and turn it into a dynamic library that can be linked into applications written for Windows. The information I've read is either conflicted or doesn't mention this specifically, so I just wanted to be sure.

Cheers,
Blake
Post #: 1
RE: Creating a dynamic library for Win32 on Interix - Aug. 16, '06, 4:11:03 PM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
The answer depends.

You can use Interix as the build environment to compile Win32 code and
then, optionally, create a Win32 DLL out of it.

If the Unix C code is purely ANSI C then with some minor modifications
you can do as mentioned in the above paragraph.

However, if the C code is calling Posix, SUS, etc. API's then the answer is no.
You need to be careful about mixing and matching the two API paradigms.

You can create a program in what's called "mixed mode" for an Interix program
to make use of a Win32 DLL. The binary is marked as Win32 instead of Posix/Interix,
but it runs as an Interix program. It's not intended as a means for a Win32
program to make Interix system or library calls. Mixed mode is available starting
with version 5.2.

(in reply to blake)
Post #: 2
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> Creating a dynamic library for Win32 on Interix Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.016