Server Help

Trash Talk - Porting c++ programs windows to linux

Doc Flabby - Mon Oct 01, 2007 9:57 am
Post subject: Porting c++ programs windows to linux
I'm in the process of porting a catid's directory server which is written in MSVC++ to linux, but I am stuggling on a few things. If i suceed the results could be potentially exciting, or at least pave the way for a native linux port of merv-bot and a port of the biller. Which would incorage more zones to use asss as they could still use there existing mervbot skills.

Does anyone know where some good tutorials/guides are for porting windows programs? I've yet to find any on google that go into much detail or say anything other than "use wine" which is what i'm trying to avoid.
Doc Flabby - Mon Oct 01, 2007 12:02 pm
Post subject:
no worried i've got it to compile now, just need to fix the bugs tongue.gif (mainly caused by my crappy attempts at GetProfileString etc
Doc Flabby - Mon Oct 01, 2007 4:42 pm
Post subject:
I've completed the port it works 100% as far as i can tell.

If you run linux try it at:

http://forums.minegoboom.com/viewtopic.php?p=74575#74575
Maverick - Mon Oct 01, 2007 4:57 pm
Post subject:
nice biggrin.gif
CypherJF - Mon Oct 01, 2007 5:24 pm
Post subject:
i've read that when you're going to port something over, make it better. don't do a line-by-line conversion.
Solo Ace - Mon Oct 01, 2007 5:25 pm
Post subject:
Meh, I wouldn't call it a port anymore if it's visibly different. sa_tongue.gif
Doc Flabby - Mon Oct 01, 2007 5:27 pm
Post subject:
CypherJF wrote:
i've read that when you're going to port something over, make it better. don't do a line-by-line conversion.


I didnt have to change many lines. only those with windows specific stuff. Probably could make it better if i knew more c++ and linux tongue.gif

Solo Ace wrote:
Meh, I wouldn't call it a port anymore if it's visibly different. sa_tongue.gif

o.O its identical in functionality pretty much apart from the ini file..... wtf are u on about
Solo Ace - Tue Oct 02, 2007 2:28 am
Post subject:
I was replying to Cypher about the term "porting" software as we use it here.

Wikipedia wrote:
In computer science, porting is the process of adapting software so that an executable program can be created for a computing environment that is different from the one for which it was originally designed (e.g. different CPU, operating system, or third party library).


Cypher was talking about "making it better", which wouldn't be anything like "porting" if that'd come close to changing the code's design (read quote below).

Wikipedia wrote:
The term is not generally applied to the process of adapting software to run with less memory on the same CPU and operating system, nor is it applied to the rewriting of source code in a different language (i.e. language conversion or translation).


And to the user, it wouldn't look much like a "port" if it's visibly different. That was my point. If I go too fast for "u", then nevermind.
Doc Flabby - Tue Oct 02, 2007 6:50 am
Post subject:
Solo Ace wrote:
If I go too fast for "u", then nevermind.

yep i'm only a simple flabby icon_sad.gif
CypherJF - Tue Oct 02, 2007 8:18 am
Post subject:
Solo Ace wrote:
I was replying to Cypher about the term "porting" software as we use it here.

[..]



And to the user, it wouldn't look much like a "port" if it's visibly different. That was my point. If I go too fast for "u", then nevermind.

Oh fine... mr smarty pants. icon_wink.gif
Anonymous - Fri Oct 05, 2007 5:56 am
Post subject:
has anyone had a chance to test if it works for their setup? im interested in any feedback.
Doc Flabby - Mon Oct 08, 2007 10:45 am
Post subject:
CatId's subbill2 is going to be ported next icon_smile.gif I'm about 25% way though. This is a bit more tricky as it has threads and mutexs and the like,

I am thinking of renaming some of the commands to make them asss compatible.
Doc Flabby - Tue Oct 16, 2007 8:21 am
Post subject:
This was much much harder to port icon_sad.gif Mainly problems with non-standard C++. And i barely understand C++

Another Doc Flabby production:

http://forums.minegoboom.com/viewtopic.php?p=74746#74746

I never did rename any of the commands however.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group