Thread: trouble compiling

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    84

    trouble compiling

    i'm trying to compile a 0bject orientated project, i it won't find the files when i complie. even though the names are correct.

    any ideas?

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    >>> any ideas?

    Yeah, might be a good idea to include what Operating System you are using, what compiler, and what files you are trying to compile.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User
    Join Date
    May 2002
    Posts
    84
    good point, my bad.

    i'm programming a fruit machine for a uni assignment, using windows xp and microsoft visual studio 6 enterprise edition.

    i have reel, game and random number class's each with a header and cpp file. if i type in "#include "Reel.H"" which is the name of the file, then when i compile it says it can't find the file.

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    If you are using the quotation style include, (#include "abc.h"), VC++ looks for the files in the same directory as the source files, is that where they are?

    Also, have you manually moved things around? THe IDE doesn't like that.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  5. #5
    Registered User
    Join Date
    May 2002
    Posts
    84
    sorted it out, copied the code into a new project.

    but now i'm getting an error when generating a random number, and the function is linked in with the cpu clock cycle. its a progarm generated bit of code which gives syntax errors.

  6. #6
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    >>> copied the code into a new project.

    Good solution when it all looks like it should work but doesn't, especially if you've been fiddling...

    Now your new problem...

    Look, I don't want to seem to be some hellish ogre that preys on newbies, but, it is impossible to help you with that question without knowing what you have done, and what specifically the error is.

    Is the error a compiler error? Is the linker kicking up a fuss? Does it compile and link but is not doing what you thought it should?

    Post a bit of code which shows how you are trying to do something, tell us what you want to do and what it is actually doing.

    Open a new thread with a good question, you'll find a good question will receive numerous answers, (some good, some useless - c´est la vie).
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Trouble Compiling 1394 Development Libraries for Linux
    By Phanixis in forum Linux Programming
    Replies: 6
    Last Post: 10-05-2007, 10:48 AM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. Is it so trouble?
    By Yumin in forum Tech Board
    Replies: 4
    Last Post: 01-30-2006, 04:10 PM
  4. trouble compiling
    By the Wookie in forum Linux Programming
    Replies: 1
    Last Post: 10-26-2005, 10:12 PM
  5. I am Having trouble Compiling with DirectX
    By Irish-Slasher in forum Game Programming
    Replies: 4
    Last Post: 03-14-2002, 09:51 AM