Menu

Import old app

2002-09-04
2012-09-26
  • James E. LaBarre

    I have the source code for a 10-year old Motif app (company internal use only) which I would like to import into Dev-C++.  It was originally written for AIX, and I would like to compile it for Linux & Windows (it's OK if it still needs to run under X for Windows, as I have Cygwin/Xfree & Exceed on my system).  All the documentation I have found is on building new applications from scratch.

    I'd build a new interface for it, but with my pretty much non-existent programming knowlege, I can't tell where the interface components end and the communications protocols start (it's a chat application, and I don't think it was based on any standard protocols).

     
    • Nobody/Anonymous

      A question, is the app in C, or C++(non standard ,seems so if 10+ years old).
      If this code has specific AIX coding, you will need more info on the port from AIX to another OS.

      Point ?, well Dev is a great IDE, but that alone will not do it.
      The specifics of a port as you wish to do is vast and requires some research before you start.

        Larry

       
    • James E. LaBarre

      I was looking at Dev-C++ as a tool for highlighting syntax (found bugs in some other source code that way) as well as something to help with error messages.

      I managed to bring the files into a project by making a new project with blank files that had the right name,  closing the project & copying the original source files in, then re-opening the project.  It builds the object file OK, but fails in the linking.  I defined the includes for xfree86 &  motif (OK, lesstif) & added another include in my source for something it  had trouble finding, but I guess I may have to explicitly define my headers,, or find which ones changed from whatever version of Motif existed in 1991 to Motif 2.1

      It's not really a major app; a send button, user list button, channel radio buttons , a handful of switches on one menu and a replay option (to replay the chat log from the server) on another.  I figured it was a simple enough app with practical functionality to learn from.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.