Thread: Undefined symbol error??

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    Quote Originally Posted by Dave Evans
    I would like to see the definition of Cmplx that you are using. Thanks
    Quote Originally Posted by Jedijacob
    Here is my definition of the struct.

    Code:
    typedef struct _cmplxCDT
    {
       double x;
       double y;
    }cmplxCDT;
    That's not Cmplx, it's cmplxCDT.
    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.*

  2. #2
    Registered User
    Join Date
    Nov 2004
    Posts
    20
    Oh, sorry..this is in my interface file and I forgot about it:

    Code:
    typedef struct _cmplxCDT* Cmplx;

  3. #3
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    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.*

  4. #4
    Registered User
    Join Date
    Nov 2004
    Posts
    20
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beginner Needs help in Dev-C++
    By Korrupt Lawz in forum C++ Programming
    Replies: 20
    Last Post: 09-28-2010, 01:17 AM
  2. How to monitor process creation?
    By markiz in forum Windows Programming
    Replies: 31
    Last Post: 03-17-2008, 02:39 PM
  3. file reading
    By gunghomiller in forum C++ Programming
    Replies: 9
    Last Post: 08-07-2007, 10:55 PM
  4. Linking error
    By DockyD in forum C++ Programming
    Replies: 10
    Last Post: 01-20-2003, 05:27 AM
  5. <list>
    By Unregistered in forum C++ Programming
    Replies: 9
    Last Post: 02-24-2002, 04:07 PM