Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th January 2008, 23:00
ColdDoT ColdDoT is offline
Senior Member
 
Join Date: Jan 2006
Location: Netherland
Posts: 178
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ColdDoT
Exclamation How to create a cross platform project

Hey all,

I'm developing a server in Visual Studio 2005, now i want it realy bad to have it also run on linux (Debian to be specifick)

The server is command line so thats good i gues
But i cant find anything on google, i gues i'm looking at it in the wrong way
But can some 1 help me a bit.

Howto make a cross platform project for linux/windows

+ColdDoT
__________________
2B or not 2B (a pro)
Reply With Quote
Sponsored Links
  #2  
Old 16th January 2008, 12:01
devnull3d devnull3d is offline
Junior Member
 
Join Date: Jan 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Simple, just use Perl
Reply With Quote
  #3  
Old 16th January 2008, 12:17
ColdDoT ColdDoT is offline
Senior Member
 
Join Date: Jan 2006
Location: Netherland
Posts: 178
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ColdDoT
Default

Haha no cant do, C++ is powerfull, and the project is already written in C++, AND i do not use perl so much and C++ i do
__________________
2B or not 2B (a pro)
Reply With Quote
  #4  
Old 16th January 2008, 12:26
devnull3d devnull3d is offline
Junior Member
 
Join Date: Jan 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Porting even a simple socket application to work on both linux and windows that just sends bunch of data to some port requires lots of #ifdef's and writing the same functions twice just so they'd work on both OS, you could only imagine how much effort would it take to make a whole project that would work on both OSs let alone others. Basically writing the whole code twice, unless you make a genius plan to isolate segments of code that should work on both OS
But what about OS specific functions? What if you can't find an alternative function, I wouldn't get my hands on such project.
Reply With Quote
  #5  
Old 16th January 2008, 21:58
ColdDoT ColdDoT is offline
Senior Member
 
Join Date: Jan 2006
Location: Netherland
Posts: 178
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ColdDoT
 
Default

haha thx for your help
__________________
2B or not 2B (a pro)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Squirrelmail - cannot create folders wapa17 HOWTO-Related Questions 1 5th June 2007 20:04
why checking create-dns on a site doesnt create mail.domain... lyndros Installation/Configuration 1 18th May 2007 09:34
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 03:40
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36
Chrooted SSH apps bkrausz Tips/Tricks/Mods 14 29th August 2006 23:32


All times are GMT +2. The time now is 15:43.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.