LinuxQuestions.org
Help answer threads with 0 replies.
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 01-26-2006, 03:12 AM   #1
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Rep: Reputation: 30
Large Scale porting


Hello,

I have a set of programs which was originally written in Borland C++ builder
under windows xp. I want to fully or partially port to Fedora 4. My
colleagues said it wasn't possible. If so, can I just "borrow" part of the
logic by compiling it partially? like gcc -c abc.cpp then
ld main.o abc.o, The base of the program is also in Object Pascal. I also
want to know except calling conventions and the GUI, what other parts do I
have to look after in order to "borrow" the logic?
Thanks
Jack
 
Old 01-26-2006, 08:31 PM   #2
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
The problem is that Borland C++ has it's own libraries especially for the GUI side of things. Most of that code would need to be rewritten for the appropriate libraries on Linux. (For Object Pascal do I read Delphi, which is essentially a Borland specific implementation of Pascal) again that will result in code that will need to be rewritten.

You may find it easier to run the program under an emulator rather than rewriting it. Maybe you could look at Wine. It still may not work 100% but with the code you could possibly find out what doesn't work and rewrite that rather than the whole code base.

graeme.
 
Old 01-26-2006, 09:32 PM   #3
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Original Poster
Rep: Reputation: 30
Hello graemef,
My current little job is to migrate the system to XScale SBC So it's cross-platform and I also considered rewriting it. But I see the syntax of the original program. it was awkful and hard to understand. So I don't think I can see what it entirely means. I do think I have to rewrite it entirely. I took one of the code snippet for example, there is a function called LinearRegression, it doesn't compile because Linux Lacking clx.h and system\timeb.h and some fastcall directives have to be eliminated. Thanks
Jack
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Large Scale Collaboration Project at the Central Hospital in Lausanne/Switzerland LXer Syndicated Linux News 1 12-10-2005 08:30 AM
scale sundaresh Linux - General 1 11-14-2005 03:15 PM
Printing to large scale printer w/local IP jake292 Linux - Software 0 07-29-2005 08:19 PM
Crop/scale pdfs S.B. Linux - Software 1 03-16-2005 11:39 AM
Large drive- too much space lost by large block size? tome Linux - General 5 12-14-2001 01:32 PM

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

All times are GMT -5. The time now is 03:32 AM.

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