Porting Windows program to BSD
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Porting Windows program to BSD




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Porting Windows program to BSD  
drhowarddrfine


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-26-07 06:39 AM

I have an Open Source Windows program I would like to port to
FreeBSD.  I tried compiling it 'as is' and, so far, it only trips up
on MS/Windows definitions, such as 'ulong'.  Is there a cross-check
list to find equivalent typedefs, defines, etc. between gcc and
Windows stuff?  Is there a software 'converter' of sorts, too?





[ Post a follow-up to this message ]



    Re: Porting Windows program to BSD  
Magnus Wissler


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-27-07 12:33 PM

On Dec 26, 7:13 am, drhowarddrfine <robbel...@gmail.com> wrote:
> I have an Open Source Windows program I would like to port to
> FreeBSD.  I tried compiling it 'as is' and, so far, it only trips up
> on MS/Windows definitions, such as 'ulong'.  Is there a cross-check
> list to find equivalent typedefs, defines, etc. between gcc and
> Windows stuff?  Is there a software 'converter' of sorts, too?

While I don't know of any automagic converters, #including
<inttypes.h> will probably let you use portable type definitions even
from the Windows platform (they have inttypes.h now, don't they?).





[ Post a follow-up to this message ]



    Re: Porting Windows program to BSD  
Måns Rullgård


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-27-07 06:24 PM

Magnus Wissler <magnus.wissler@gmail.com> writes:

> On Dec 26, 7:13 am, drhowarddrfine <robbel...@gmail.com> wrote: 
>
> While I don't know of any automagic converters, #including
> <inttypes.h> will probably let you use portable type definitions even
> from the Windows platform (they have inttypes.h now, don't they?).

No, they still don't.

--
Måns Rullgård
mans@mansr.com





[ Post a follow-up to this message ]



    Re: Porting Windows program to BSD  
Roger Leigh


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-01-08 12:23 AM

Måns Rullgård <mans@mansr.com> writes:

> Magnus Wissler <magnus.wissler@gmail.com> writes:
> 
>
> No, they still don't.

How about the C standard <stdint.h> ?


Regards,
Roger

--
.''`.  Roger Leigh
: :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
`. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
`-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.





[ Post a follow-up to this message ]



    Re: Porting Windows program to BSD  
Måns Rullgård


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-01-08 12:23 AM

Roger Leigh <rleigh@whinlatter.ukfsn.org> writes:

> Måns Rullgård <mans@mansr.com> writes:
> 
>
> How about the C standard <stdint.h> ?

No, not that one either (and both are standard C).

Some kind person has composed msvc-compatible stdint.h and inttypes.h
and made them available at http://code.google.com/p/msinttypes/

--
Måns Rullgård
mans@mansr.com





[ Post a follow-up to this message ]



    Re: Porting Windows program to BSD  
toby


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-01-08 06:28 PM

On Dec 27 2007, 12:58 pm, M=E5ns Rullg=E5rd <m...@mansr.com> wrote:
> Magnus Wissler <magnus.wiss...@gmail.com> writes: 
> 
>
> No, they still don't.

Gee, I wonder why not. Paging antitrust department...

>
> --
> M=E5ns Rullg=E5rd
> m...@mansr.com






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:03 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register