Thread: anyone help with this warning message since its message day

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    54

    Talking anyone help with this warning message since its message day

    i'm using borland 5 and when i run a program that calls another program i get the error

    Cannot create pre-compiled header: code in header

    the message appears to point at the first function within the program that gets called and when i remove that function it points to the next function

    program still works with the warning but i'm curious thats all
    i dont like error or warning messages

  2. #2
    Registered User
    Join Date
    Jan 2002
    Posts
    49
    Could you post part of your program ?

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    54
    hmm tricky but here goes

    first program


    #standard includes here
    #include "d:\college stuff\ads\merit1\second.cpp"//location of next file

    //function prototypes here for main program


    int main(void)
    {
    struct PTRnode *CD = 0;

    datatype data;
    initialise(&CD);
    welcomeScreen();
    getStartOption(&CD, data);
    return 0;
    }


    second program


    void initialise(struct PTRnode **root);//function prototypes of second program
    int isEmpty(struct PTRnode **root);



    void initialise(struct PTRnode **root)
    {//warning points to here
    *root = NULL;
    }

    hope thats all you need, i aint posting it all would take up the entire board

  4. #4
    Registered User
    Join Date
    Jan 2002
    Posts
    49
    Cannot create pre-compiled header: code in header

    Have you code in a header file ?

  5. #5
    Registered User
    Join Date
    Jan 2002
    Posts
    49
    #include "d:\college stuff\ads\merit1\second.cpp"//location of next file


    yes you have.

    May be the problem.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Desperate Over Ecs!
    By cookie in forum C Programming
    Replies: 17
    Last Post: 07-16-2008, 01:25 PM
  2. Help on understanding the warning message
    By ssharish2005 in forum C Programming
    Replies: 3
    Last Post: 05-24-2007, 02:03 AM
  3. Replies: 28
    Last Post: 07-16-2006, 11:35 PM
  4. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  5. NULL warning message
    By anu in forum C Programming
    Replies: 6
    Last Post: 10-21-2001, 11:33 AM