Compiler problem

This is a discussion on Compiler problem within the C++ Programming forums, part of the General Programming Boards category; Hi people. I'm not sure which board this is supposed to be on, so please don't have a go at ...

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    183

    Question Compiler problem

    Hi people.

    I'm not sure which board this is supposed to be on, so please don't have a go at me for putting it here. Anyway, somethings happened to my compiler. This is probably a real simple problem, but it's confusing and annoying nonetheless.

    Basically, when I try to compile something, it comes up with : "Could not create Makefile," and there is an an error at the bottom saying, "No rule to make Target All stop." Somethings happened to the compiler, and I want to find out what. This is probably just me being stupid, but pleaze help.

    Thanks for any future replies.
    Cya

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    what compiler and version are you using?

  3. #3
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    Basically, when I try to compile something, it comes up with : "Could not create Makefile," and there is an an error at the bottom saying, "No rule to make Target All stop." Somethings happened to the compiler, and I want to find out what. This is probably just me being stupid, but pleaze help.
    This thread is pretty much the same as this one: What I would assume is a compiler problem

    Compiler:
    So I tried to complie it , but it came up with these errors :


    1)

    make.exe C:\Program Files\Dev-Cpp\Project-files\make.exe Circular ../Templates/MovingTest <- ../Templates/MovingTest.o dependency dropped.
    As you would have found out if you'd read the last of that thread, you need to save your source files with a .cpp extension. If you're using Notepad, save the file as "file.cpp", with the quotes. In Dev-C++, don't add an extension, and .cpp will automatically appear (save it as file).
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    Would it help if I download the compiler again ?
    No, it wouldn't.

    I think the compiler thinks it is a text file and not a .c / .cpp file
    Maybe. ../Templates/MovingTest makes me think that maybe it is a file with no extension.

    If you still can't get this to work, try using a language option to GCC to tell it the source file is a C++ one.

    What would help the most would be posting the makefile here, I think.

    BTW, AD, you can usually find someone's compiler by searching their previous posts for "compiler".
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    Basically, when I try to compile something, it comes up with : "Could not create Makefile," and there is an an error at the bottom saying, "No rule to make Target All stop."
    Actually, you probably don't have a makefile at all. Write one. Or adapt this one:
    Code:
    file.exe: file.o
            gcc -o file.exe file.o
    
    file.o: file.c
            gcc -c file.c
    (You need to use tabs, not spaces, to indent.)
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  6. #6
    Registered User
    Join Date
    Jan 2005
    Posts
    183
    I really don't understand makefiles at all, but I'm pretty sure I have one.
    Anyway, now the errors changed again. This time it says :

    [Build Error] [OpenGl.exe] Error 1

    When I try to open ... what I think is the makefile, it says that windows dosen't know which application to open it in. What's that about ? And I'm using Dev C++ 4.9.9.0.

    Cheers
    Last edited by Necrofear; 01-28-2006 at 12:24 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dev-C++ compiler problem
    By GrasshopperEsq in forum C++ Programming
    Replies: 19
    Last Post: 05-08-2008, 03:35 AM
  2. Compiler Problem
    By sitestem in forum C++ Programming
    Replies: 2
    Last Post: 04-11-2004, 04:48 PM
  3. Replies: 5
    Last Post: 12-03-2003, 05:47 PM
  4. Problem with compiler
    By knight543 in forum C++ Programming
    Replies: 4
    Last Post: 02-09-2002, 09:16 PM
  5. Please help me with this compiler problem
    By incognito in forum C++ Programming
    Replies: 1
    Last Post: 01-05-2002, 05:14 PM

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