Re: Is it possible to convert .a linux library into win32 .dll or lib ?

2002-11-11 Thread Eric Belhomme
> No, it's not ELF. It is a static library (i.e. more-or-less a static .lib
> file)
>
> I know nothing about the package you are talking about, so I don't know
how
> easy it would be to make a DLL.
>
Thanks for your support :-)

So, can I link this file with a native win32 software developped with Ms
Visual C++ 6 ?

Regards,

--
Eric Belhomme


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Is it possible to convert .a linux library into win32 .dll or lib ?

2002-11-11 Thread Eric Belhomme
Hi,

I compiled a linux native library on cygwin. To do this I used the -mwin32 
flag, as Tim Prince explained to me.

So now it compiles nice, but I obtain a "libprelude.a" file so I wonder it 
is in ELF compatible format. The problem is I'd like to use this library 
with a native Win32 NT service (I try to make a win32 prelude-lml sensor)

So I need libprelude compiled as native win32 DLL or lib file. Is it 
possible ?

-- 
Rico (RicoSpirit) - http://www.ricospirit.net




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: how-to use _WIN32 preprocessor with cygwin ?

2002-11-11 Thread Eric Belhomme
> The cygwin-specific gcc compile flag -mwin32 causes the _WIN32 macro to be
> defined.  Certain cygwin applications predate that arrangement, so
confusion
> is understandable.
>
Thanks for your answer :-)
So I wonder I have  to modify the configure script to add -mwin32 flag on
gcc option if I detect cygwin environment. Question : How to detect cygwin
environment ?

Thanks,

--
Eric Belhomme


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




how-to use _WIN32 preprocessor with cygwin ?

2002-11-10 Thread Eric Belhomme
hi,

First, I'm not familliar with cygwin nand gcc, so i'm sure my question is 
trivial, but i didn't found how to resolve it. (sorry for the noise)

I just installed cygwin on my win2k computer to try to compile a linux based  
lib (the libprelude)

The problem is libprelude uses some glibc6 APIs included on . I 
tried to resolve the problem on doing my own include file and replace all 
 includes by this code :

#ifndef _WIN32
# include 
#else
# include "myheader.h"
#endif

So as I readen on the cygwin FAQ, _WIN32 sould be declared ans "myheader.h" 
sould be used instead of  but that' not the case :-(

So i deduce the _WIN32 preprocessor is not known under cygwin environment. I 
wonder I have to declare something, somewhere, but as I said in intro, I'm 
not familliar with the gnu C compiller...

Thanks for your attention ;)

-- 
Rico (RicoSpirit) - http://www.ricospirit.net




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/