473,394 Members | 1,640 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

C++ SDL Makefile for MPW on Mac OS 9

MPD
Hi, I'm new to the MPW (Mac Programmers Workshop -- Apple's now freely
avilable development tools for Classic Mac OS's) and wish to construct
a simple 2D game using MPW's C++ compiler and SDL.

However I don't know how to write a C++ makefile that initializes both
SDL and C++ (not C) in MPW. I have got the SDL examples that came with
the Mac Classic SDL Development Binaries to compile however they are
all written in straight C and as such don't use object orientation
(and MPW passes the code to a C compiler called rather than use a
backwards compatible C++ compiler).

I know that this is down to the makefile MPW needs to compile C++
rather than C programs but I have no idea how to write one as I've
only started using MPW in the last 2 days. Can anyone tell me how to
construt a C++ makefile that initializes a simple C++ class along with
all the relevant SDL header files and Libraries:

simple_class.h

main.cpp // object of simple_class gets initialised here
// also simple SDL window initialised

Very simple stuff I know, but I'm stuck! Any help will be much
appreciated, thanks!!
Jul 23 '05 #1
1 3077
MPD wrote:
Hi, I'm new to the MPW (Mac Programmers Workshop -- Apple's now freely
avilable development tools for Classic Mac OS's) and wish to construct
a simple 2D game using MPW's C++ compiler and SDL.

However I don't know how to write a C++ makefile that initializes both
SDL and C++ (not C) in MPW. I have got the SDL examples that came with
the Mac Classic SDL Development Binaries to compile however they are
all written in straight C and as such don't use object orientation
(and MPW passes the code to a C compiler called rather than use a
backwards compatible C++ compiler).

I know that this is down to the makefile MPW needs to compile C++
rather than C programs but I have no idea how to write one as I've
only started using MPW in the last 2 days. Can anyone tell me how to
construt a C++ makefile that initializes a simple C++ class along with
all the relevant SDL header files and Libraries:


Just use MPW's CreateMake tool. Invoke it via the commando interface and
then just pick the source files that you need to include in the build.

Paul
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bryan Olson | last post by:
Here's the problem: Suppose we use: import socket f = some_socket.makefile() Then: f.read() is efficient, but verbose, and incorrect (or at least does not play will with others);
1
by: Jamie Saker | last post by:
I think I'm overlooking something assumed in socket's makefile method. Googling several hours and digging thru the python reference didn't help - I think I'm overlooking an assumption between...
4
by: newbiecpp | last post by:
I am very sorry to post this one because I know it is out of topic but I cannot find the proper news group. I understand that most senior C++ programmers know makefile very well. My question is...
4
by: Sharp Tool | last post by:
Hi I have downloaded a program that is written in C++ that I would like to compile into a Win XP executable. The program contains a Makefile written for Unix/linux/cygwin. I would like to...
2
by: Juhan Voolaid | last post by:
Hello I need help with my makefile, so that when I compile my project the source code files would be separated from the object (*.o) files. So if I have: main.cpp and classes.cpp - the...
4
by: Jess | last post by:
Hello, I am now trying to use makefile to compile C++ programs. My makefile looks like: f1.o : f1.cpp h1.h h2.h g++ -c f1.cpp f2.o : f2.cpp h2.h h3.h g++ -c f2.cpp
8
by: xz | last post by:
I am a rookie of C++ and got so confused with the Makefile these days. Could anyone be so kind and give a little sample Makefile for the following particular example? Let's say I have the...
1
by: rpjanaka | last post by:
I am using an open source library called IGI_UDP for measure the available bandwidth of a link (http://www.cs.cmu.edu/%7Ehnn/igi/ ). with that library they have provided a "Makefile" which is not an...
5
by: M.Liang Liu | last post by:
I have a project with the following dirs: --------------------------------------------------------------------------------------- +src |-proj0 |-program1 |-program2 |-proj1 |-program1...
2
by: chutsu | last post by:
I'm basically a summer student working on a program called Rivet. (http://projects.hepforge.org/rivet/) And I'm trying to port it to BOINC so that the hosts can download the BOINC client and do...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.