Results 1 to 4 of 4

Thread: compile error

  1. #1

    Thread Starter
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    compile error

    unexpected end of while looking for precompiled header directive

    i am not sure what header it is but all my file except the one header file i use in all my cpp files give this error.

    here is a small one
    Code:
    #include "Axe.h"
    
    DWORD FormatString(LPSTR aString)
    {
    	DWORD aLength=strlen(aString);
    	char* p;
    
    	// Replace all occurances of $$ with ÿc
    	while (strstr(aString, "$$"))
    	{
    		p=strstr(aString, "$$");
    		p[0]='ÿ';
    		p[1]='c';
    	}
    
    	return aLength;
    }
    i have no idea why it is messing up on this...

    the header file Axe.h is listed in the thread *** Decorated Names
    Magiaus

    If I helped give me some points.

  2. #2
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    I dont think we can help you with out all of your code.

    From what you have posted here you might want to make sure you dont have headers declared more than once, and you dont have a bad declaration in one of your headers.
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  3. #3

    Thread Starter
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    ok

    if i can't resolve it i will post the code but you will need vc++ 7 or at least the .net framework to compile it
    Magiaus

    If I helped give me some points.

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Turn off precompiled headers for your project. The compiler can't find the include directive for the precompiled header and therefore complains in the most stupid way possible.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width