Mail Archives: djgpp/1997/03/31/02:44:51
From: | zero AT nothing DOT net
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | DJGPP AND PROJECTS ahhhhhhhhhhhhh HELP
|
Date: | Mon, 31 Mar 1997 06:07:37 GMT
|
Organization: | Interlynx
|
Lines: | 72
|
Message-ID: | <334051e4.7904628@news.interlynx.net>
|
NNTP-Posting-Host: | port70.hm.interlynx.net
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hey All im currently working on a 3d-game engine (ain't everyone)
neways i was wondering cud neone of you help me
heres my problem
i want to make a project...yes i am that stupid that i don't know how
<GRiN>
see even in other c++ environments i had trouble with projects. rite
now i am doing this
main file:
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
etc...
//then here are my other source files
#include "vector.c"
#include "camera.c"
#include "preload.c"
etc..
void main(void{
//code
}
now my question is how do i create and maintin projects. I get errors
coming out of my ass and i dont like doing it in the cheap way as
above
the errors i get are like duplicate definitions, undeclared
functions....etc
so if anyone out there has a sample project file (gimme crap code that
don't work for all i care) or can give me a tutor please share your
wisdom....
i know this much that all modules must be stand alone (so they can be
compiled into .o files then linked) but only one file has the main
line
see i use variables of the same name all over ie:
typedef struct{float x,y,z;}XYZ;
i use the above a lot and when ever i make stand alone modules, there
functions require each other for return values (XYZ) and then i get
duplicate errors
i try using extern but that frix up too....so cud some one please help
a armless soldier :)
l8r
- Raw text -