Author |
Message |
Doc Flabby Server Help Squatter

Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Mon Oct 01, 2007 9:57 am Post maybe stupid 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. _________________ Rediscover online gaming. Get Subspace | STF The future...prehaps |
|
Back to top |
|
 |
Doc Flabby Server Help Squatter

Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Mon Oct 01, 2007 12:02 pm Post maybe stupid Post subject: |
 |
|
|
|
no worried i've got it to compile now, just need to fix the bugs (mainly caused by my crappy attempts at GetProfileString etc |
|
Back to top |
|
 |
Doc Flabby Server Help Squatter

Joined: Feb 26 2006 Posts: 636 Offline
|
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Mon Oct 01, 2007 4:57 pm Post maybe stupid Post subject: |
 |
|
|
|
nice  _________________
|
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Mon Oct 01, 2007 5:24 pm Post maybe stupid 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. _________________ Performance is often the art of cheating carefully. - James Gosling |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:38 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Mon Oct 01, 2007 5:25 pm Post maybe stupid Post subject: |
 |
|
|
|
Meh, I wouldn't call it a port anymore if it's visibly different.  |
|
Back to top |
|
 |
Doc Flabby Server Help Squatter

Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Mon Oct 01, 2007 5:27 pm Post maybe stupid 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
Solo Ace wrote: | Meh, I wouldn't call it a port anymore if it's visibly different.  |
o.O its identical in functionality pretty much apart from the ini file..... wtf are u on about |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:38 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Tue Oct 02, 2007 2:28 am Post maybe stupid 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. |
|
Back to top |
|
 |
Doc Flabby Server Help Squatter

Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Tue Oct 02, 2007 6:50 am Post maybe stupid Post subject: |
 |
|
|
|
Solo Ace wrote: | If I go too fast for "u", then nevermind. |
yep i'm only a simple flabby  |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Tue Oct 02, 2007 8:18 am Post maybe stupid 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.  |
|
Back to top |
|
 |
the doc at work Guest
Offline
|
Posted: Fri Oct 05, 2007 5:56 am Post maybe stupid Post subject: |
 |
|
|
|
has anyone had a chance to test if it works for their setup? im interested in any feedback. |
|
Back to top |
|
 |
Doc Flabby Server Help Squatter

Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Mon Oct 08, 2007 10:45 am Post maybe stupid Post subject: |
 |
|
|
|
CatId's subbill2 is going to be ported next 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. |
|
Back to top |
|
 |
Doc Flabby Server Help Squatter

Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Tue Oct 16, 2007 8:21 am Post maybe stupid Post subject: |
 |
|
|
|
This was much much harder to port 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. |
|
Back to top |
|
 |
|