Thread: error C3861,

  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,336
    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をこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    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