LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-31-2004, 06:27 PM   #1
jwstric2
Member
 
Registered: Jan 2004
Posts: 105

Rep: Reputation: 15
proper design for a platform independent applicaiton


Im looking for a good spec or anyone with experience of how to properly design a c program to be os independent (ie and linux and windows os). From what I have thought of and seen done a lot in the linux kernel is to define a header file like asm.h. In asm.h it includes files to the specific defined architecture by way of #ifdef. Any other suggestions or things I should be warey of would be appreciated.

Thanks in advance.
 
Old 05-31-2004, 06:32 PM   #2
aluser
Member
 
Registered: Mar 2004
Location: Massachusetts
Distribution: Debian
Posts: 557

Rep: Reputation: 43
Check out autoconf at http://www.gnu.org/software/autoconf/ . It's what most open source projects are using to handle portability, at least between unices. My understanding is that you can build in cygwin with it too.

Autobook, http://sources.redhat.com/autobook/a...obook_toc.html , gives a lot of information about autoconf, automake, and libtool.
 
  


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
Linux for Graphic Design, web design, and publishing maelstrom209 Linux - Software 8 07-17-2011 11:35 AM
Platform-independent "/dev/null" stream redirection? wapcaplet Programming 1 08-12-2005 10:11 PM
Installing platform independent tar.gz lin00b Linux - Newbie 6 09-23-2004 03:51 AM
How can i send message from Linux platform to Windows platform linuxeagle Linux - Networking 1 02-17-2004 12:35 AM
Linking a platform independent shared library rozeboom Programming 3 11-18-2003 02:10 PM

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

All times are GMT -5. The time now is 04:23 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