Originally Posted by Dave EvansThat's not Cmplx, it's cmplxCDT.Originally Posted by Jedijacob
Originally Posted by Dave EvansThat's not Cmplx, it's cmplxCDT.Originally Posted by Jedijacob
Last edited by Dave_Sinkula; 03-18-2005 at 04:39 PM. Reason: Adding this: now I'm curious too.
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
Oh, sorry..this is in my interface file and I forgot about it:
Code:typedef struct _cmplxCDT* Cmplx;
Code:# Source, Executable, Includes, Library Defines INCL = complex.h SRC = complex.c complexfun.c OBJ = $(SRC:.c=.o) LIBS = -lm EXE = complexfun # Compiler CC = gcc # Compile and Assemble C Source Files into Object Files .o:.c $(CC) -c $(SRC) # Link all Object Files with external Libraries into Binaries $(EXE): $(OBJ) $(CC) -o $(EXE) $(OBJ) $(LIB) # Objects depend on these Libraries $(OBJ): $(INCL) # Create a dbx Capable Executable with flags turned on debug: $(CC) -Wall -g -DDEBUG -o $(EXE) $(LIBS) $(SRC) # Clean Up Objects, Exectuables, Dumps out of source directory clean: rm -f $(OBJ) $(EXE) core .SILENT :
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
Thanks a lot! It was that simple and I didn't even see it! Thanks for all your help. I might ask again later for some actual code help when I probably see my errors hehe! Thanks soo much again!!!
--Jacob