error C3861,

This is a discussion on error C3861, within the C Programming forums, part of the General Programming Boards category; Code: void ProduceString(char *atom, int *orderr) { for() { if(//stuff//) //stuff else { char * newAtom = GetNewAtom(&atom[i]); if(strcmp(newAtom,"nil") == ...

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    75

    error C3861,

    Code:
    void ProduceString(char *atom, int *orderr)
    {
    	for()
    	{
    		if(//stuff//)
    		//stuff
    
    
    		else
    		{
    			char * newAtom = GetNewAtom(&atom[i]);
    			if(strcmp(newAtom,"nil") == 0)
    				printf("SUXESS");
    		}
    	}
    
    }
    
    
    char* GetNewAtom(char *atom)
    {
    
    //Stuff...
    }
    what is this? WHy am I getting this?
    Yet If I insert GetNewAtom(&atom[i]); outside of ProduceString(char *atom, int *orderr)
    I don't get any errors.


    Thanks

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Do you have a prototype of GetNewAtom above the place where you try to call it? I dunno, what is error C3861?

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    75
    SUXESS!

    Thanks.
    I forgot the prototype function.

  4. #4
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,554
    C3861 is identifier not found.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21