Difference between revisions of "Project 20112 - OOP344"

From CDOT Wiki
Jump to: navigation, search
(Borland (optional))
(Mac (optional) (oops that error >:(0))
 
(8 intermediate revisions by the same user not shown)
Line 32: Line 32:
 
# #define IOL_PLT  CC_LNX
 
# #define IOL_PLT  CC_LNX
  
When ready to compile do in matrix:
+
When ready to compile do in matrix(or other Linux OS):
  
 
learnid@matrix:~> cc iol.c iolmain.c -lncurses
 
learnid@matrix:~> cc iol.c iolmain.c -lncurses
Line 46: Line 46:
 
When ready to compile on MAC OS station:
 
When ready to compile on MAC OS station:
  
CSMacPro-station_number:folder_containing_iol learnid$ cc iolmain.c iolc -lcurses
+
CSMacPro-station_number:folder_containing_iol learnid$ cc iolmain.c iol.c -lcurses
  
 
CSMacPro-station_number:folder_containing_iol learnid$ ./a.out
 
CSMacPro-station_number:folder_containing_iol learnid$ ./a.out
  
 
==== Visual C ====
 
==== Visual C ====
 +
 +
In iol.h define platform as such
 +
 +
# #define IOL_PLT  VC_WIN
 +
 +
When ready to compile with VisualStudio 2010 (Available @ ACS Seneca):
 +
 +
D:\Where\you\keep\iol>cl iolmain.c iol.c
 +
 +
D:\Where\you\keep\iol>iolmain.exe
 +
 
==== Borland (optional)====
 
==== Borland (optional)====
  
coming soon...
+
In iol.h define platform as such
 +
 
 +
# #define IOL_PLT  BC_WIN
 +
 
 +
A first time resource for the Borland compiler:
 +
 
 +
[https://cs.senecac.on.ca/~chris.szalwinski/resources/borland.html OOP244 Borland resource]
 +
 
 +
Another Resource to get going, that shows how to use the borland compiler at the command line:
 +
 
 +
[http://apurvaslair.50g.com/cpp/compilers/borland.html Compiling illustrations]
 +
 
 +
When ready to compile with Borland (Available @ OOP244 Borland resource):
 +
 
 +
D:\Where\you\keep\iol>bcc32 iolmain.c iol.c
 +
 
 +
D:\Where\you\keep\iol>iolmain.exe

Latest revision as of 17:16, 18 August 2011


OOP344 | Weekly Schedule | Student List | Teams | Project | Student Resources


The Project

Basic Input/Output Functions

  • C-based multi-platform IO functions: (Majority of the code is provided by the prof).
  • The Project is initiated on individual SVN accounts for each team.


The Core Classes

  • This part is written in C++ and encapsulates the basic input/output (BIO) routines into classes and also uses the Basic Encapsulating Classes to create User Interface Core Classes for text based applications

Hints

Using SVN to do the project

Using SVN for OOP344 Project - 20112

Compiling the project in differnt platforms

Linux

In iol.h define platform as such

  1. #define IOL_PLT CC_LNX

When ready to compile do in matrix(or other Linux OS):

learnid@matrix:~> cc iol.c iolmain.c -lncurses

learnid@matrix:~> a.out

Mac (optional)

In iol.h define platform as such

  1. #define IOL_PLT C_MAC

When ready to compile on MAC OS station:

CSMacPro-station_number:folder_containing_iol learnid$ cc iolmain.c iol.c -lcurses

CSMacPro-station_number:folder_containing_iol learnid$ ./a.out

Visual C

In iol.h define platform as such

  1. #define IOL_PLT VC_WIN

When ready to compile with VisualStudio 2010 (Available @ ACS Seneca):

D:\Where\you\keep\iol>cl iolmain.c iol.c

D:\Where\you\keep\iol>iolmain.exe

Borland (optional)

In iol.h define platform as such

  1. #define IOL_PLT BC_WIN

A first time resource for the Borland compiler:

OOP244 Borland resource

Another Resource to get going, that shows how to use the borland compiler at the command line:

Compiling illustrations

When ready to compile with Borland (Available @ OOP244 Borland resource):

D:\Where\you\keep\iol>bcc32 iolmain.c iol.c

D:\Where\you\keep\iol>iolmain.exe