Game Development Community

TClite -> Project Builder

by Eric Fultz · in Technical Issues · 04/25/2003 (8:18 pm) · 2 replies

I've always wanted to make a game ever since I started playing them. I knew to start slow and work my way up as my skills increased. It has worked up to a point, but now I'm in a really big hole.

I took a C++ (or maybe it was C) in high school that taugh me the basics of C++ (or C) on a Windows machine using TClite. When I come home to my Mac, the only C++ (C) program I have is Apple's Project Builder.

I did well in that programing class, (98%) but I can't get Project builder to run anything! I take the exact same program that got me 100% on a lab and paste it into Project Builder, but nothing runs! I even tried the simplest program ever, (the "Hello World" program) but even that doesn't run.

What is the difference between TClite and Project Builder? What is the difference between Windows C++ and Mac C++?

I really want to figure this out. I've been trying for a year and a half now.

About the author

Recent Threads

  • EV Nova RPG plugin

  • #1
    04/25/2003 (9:11 pm)
    Nuts and shame on me. After typing all the below, I checked and found that you are not a Torque Owner and therefore could not be having trouble building Torque!

    So, with regards to your actual questions:

    1. Regarding Project Builder - I can only suggest that you search the Apple site, examine any docs you have on 'Project Builder', search for tutorials on the web specific to your tool, and perhaps buy a book if one is available. It has been a LONG time since I wrote C++ code for a Mac, but I do recall there being a few peculiarites. You might consider giving a short description of what exactly you are trying. i.e. give us the steps you take and maybe include a short program you are trying to compile?

    2. TCLite - Unless I'm mistaken, you are referring to Turbo C Lite (ahh..Turbo C...such nostalgia...My first home compiler was Turbo C 2.0).

    3. What is the difference? - Besides the obvious fact that one is for a Mac and the Other is for Windows system, there is one other very important distinction. TCLite is a IDE (Integrated Development Environment) bundled directly with a compiler. It probably isn't very feature rich, but it allows you to build and probably do some basic debug of your code. 'Project Builder' is an IDE (only?) with hooks for the use of Java, C++, etc. It requires that you have a gcc compiler or other compiler, in addition to the IDE itself, in order to compile your programs. Again, I suggest researching this on the Apple site.

    4. What is the difference between Windows C++ and Mac C++ - Nothing and Something. Nothing, in that C++ is a language and platform independent. Something, in that depending on the COMPILER you use on a platform, the implementation of the C++ compilation (versus ANSI standard) will be different. That is, different compilers follow the rules better than others when it comes to compiling your C++ program. This is true on any platform. One additional thing that will be different is compiler/platform specific features, things like #Pragma directives, some #defines, etc. However, after such a long answer. If you are using an ANSI C++ compiler on either system, the differences will be small and should not affect your ability to port and compile your code.


    Eric,

    First, if you haven't already, you should check out the following:

    Torque Docs and
    Compiling on Mac and perhaps
    Requirements (Mac users)

    Assuming you've read all, have the miniumum required hardware and software, have in fact followed all the directions, please give us a short description of the exact steps you are taking when you encounter difficulty and any description you can give of said difficulty. I know there are Mac users out there who will probably lend you a hand with all that data available.

    Till then, best of luck and keep trying. Its worth it.
    #2
    05/15/2003 (8:50 pm)
    Thanks for the advice. Eventually I did find an online tutorial for writing C in Project Builder.

    IT WORKED!

    I was abosultley amazed. The problem I saw was that the header files are not the same on TClite as they are on Project Builder. Headers like -stdos.h- aren't on Project Builder.(obviously because it stands for Standard DOS header...)

    I also noticed that Project Builder used a command -std::cout- instead of -cout- on TClite.

    Now that I have explained my new situation I have another question.

    Where can I find a list of headers and commands that work for Project Builder?

    I have searched the Apple site but only found trouble shooting and debugging advice. I have searched for books but found none that cover the Macintosh commands and headers.