Thread: Dev-C++ (Bloodshed's complier)

  1. #1
    Registered User Cosmic Diva's Avatar
    Join Date
    Mar 2002
    Posts
    37

    Question Dev-C++ (Bloodshed's complier)

    Dev-C++ won't find my files! When I try to comple it says"G++ no such direcrory or file". I have already been to Bloodshed's board and couldn't get much help. I am a newbie, but if I could actually comple stuff I could learn C++.
    "A computer is this amazingly fast.....but stupid machine." - C++ for dummies

  2. #2
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    Posts
    564
    Did you download the IDE with or without mingw? Bloodshed gives you a choice.
    If not, then you have to set the path to the compiler you want to use. Otherwise it should set everything up for you. If you downloaded the version 5 beta try version 4 instead.
    If a tree falls in the forest, and no one is around to see it, do the other trees make fun of it?

  3. #3
    Registered User Cosmic Diva's Avatar
    Join Date
    Mar 2002
    Posts
    37
    I DID download 4. I found the options you were talking about. I'll just have to play around with them.
    "A computer is this amazingly fast.....but stupid machine." - C++ for dummies

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    108
    Where did you install Dev-C++ ? If you installed it to C:\Dev-C++ there should be no problems. If you installed it to for example C:\Program Files\Dev-C++ , you must open the Compiler Options dialog window, and change all of the path statements to where it is installed on your computer.

  5. #5
    Registered User Cosmic Diva's Avatar
    Join Date
    Mar 2002
    Posts
    37
    The location is C:\Dev-C++.
    I changed around some directories and almost got it to compile something, but I got confused about the object file, linking, editing the resource file, and the makefile. I just don't understand anything.

    Whenever I try to compile something, and I link an object file, if it doesn't compile correctly, then it moves/deletes the object file.
    "A computer is this amazingly fast.....but stupid machine." - C++ for dummies

  6. #6
    Registered User Cosmic Diva's Avatar
    Join Date
    Mar 2002
    Posts
    37

    Question

    Oh, BTW, currently I am working on a Hello World program, but I want to make screen savers.
    "A computer is this amazingly fast.....but stupid machine." - C++ for dummies

  7. #7
    Registered User
    Join Date
    Dec 2001
    Posts
    108
    Whenever a compile/link fails, the object file and even the previously created exe file will get deleted, that is how it works, that is not a problem. If it is attempting to compile your source files, you have Dev-C++ installed properly.

    The resource file (.rc) contains icon information and code for building a Graphical User Interface for Windows mode applications, and icon information for Console mode applications. The .rc file is compiled with Windres.exe.

    Makefiles are a way to automate the operation of compiling and linking multiple files, it determines which files have been modified and those that have not, and only runs the compiler on those modified, saving time in large programming projects. Makefiles are passed to Make.exe for execution. The new Dev-C++ 5 uses makefiles to compile/link all projects.

  8. #8
    Registered User Cosmic Diva's Avatar
    Join Date
    Mar 2002
    Posts
    37
    Then how do I get the object file back after an unsuccessful compile? Everytime i try to recomplie it, the file doesn't come back. I know that I don't have to start over.

    When I am ready to comple I should have these files:
    cpp
    projectname.obj
    a resource object
    a resource file
    makefile
    and something else that I'm probably forgetting

    right? Then it will make an .exe.

    I can understand the cout command and everything, I just can't compile anytrhing.
    "A computer is this amazingly fast.....but stupid machine." - C++ for dummies

  9. #9
    Registered User Cosmic Diva's Avatar
    Join Date
    Mar 2002
    Posts
    37
    Oh! perhaps I should explain what I do when I try to complie.

    1. Start new project (windows application)
    2.I type in the code after all the windows info
    3. Try to complie. C++ file and object file shows up.
    4. Try to link object file and compile again.
    5. Get error message about "file doesn't exist" or "Bin never used". Sometimes resource object shows up.
    6. Make makefile and look at resource file.
    7. Try to compile. Doesn't work so I fiddle with stuff.
    "A computer is this amazingly fast.....but stupid machine." - C++ for dummies

  10. #10
    Registered User
    Join Date
    Dec 2001
    Posts
    206
    Wrong. First step is your problem. With a windows program you MUST have WinMain, and NOT main(). So you will want to make it a console application

  11. #11
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    The Bin Never Used error won't do anything to stop u compilation or anything, it happens all of the time

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Whats better, C-Free or Dev C++??
    By i_can_do_this in forum Tech Board
    Replies: 10
    Last Post: 07-07-2006, 04:34 AM
  2. Resources with Dev C++ Problem (many simple problems)
    By Zeusbwr in forum Windows Programming
    Replies: 4
    Last Post: 04-06-2005, 11:08 PM
  3. New to Dev C++/<windows.h>...
    By Cilius in forum C++ Programming
    Replies: 3
    Last Post: 02-23-2005, 01:05 AM
  4. Glut and Dev C++, Programs not Quitting?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-29-2004, 08:43 PM
  5. Tutorial about Bloodshed Dev!
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 11-13-2001, 07:42 PM