Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How do we use bloodshed C/C++

  1. Jan 27, 2006 #1
    Any tips on using this windows based free C compiler?
    Like how to compile one file, multiple files.
  2. jcsd
  3. Jan 27, 2006 #2
    I've used Dev-C++ for a long time but now I recommend Code::Block instead which I find simpler and more intuitive. It is also actively developped whereas Dev development seems all but abandonned from burn-out. It can use GCC as compiler, just like Dev-C++, but it can also use many others, plus it runs on both Windows and Linux. Check the web site: http://codeblocks.org/ where you will find the package along with plenty of instructions in the form of a wiki and a discussion forum where you can get help.
  4. Jan 27, 2006 #3
    ...oh, and if you need to use Dev as an academic requirement, here is their discussion forum where volunteers provide help on all related subjects: http://sourceforge.net/forum/forum.php?forum_id=48211 [Broken]
    Last edited by a moderator: May 2, 2017
  5. Jan 27, 2006 #4


    User Avatar

    You can compile one file IRC without the need to do a project, see the menu "compile", also do a project for more than one source, also check the project options and when creating the project, select the option that satisfy your needs.

    PellesC and LCC are also free IRC only aplicable to C not C++, there are a page that contain some links to "free" things, is something like "the free country" or some like that, do a search, and you will find it.
    Last edited: Jan 27, 2006
  6. Jan 28, 2006 #5
    Thanx guys,

    As an academic requirement lol we're meant to use putty. Its just so slow when i use SSH to access it.

    My problem is that i have all the files i need in one project in Dev C/c++
    and i've

    Code (Text):
    #include "myHeaderfn.h"
    etc but when i compile it only looks at the current file.

    like i had a structure definition in my header file and the C file with all the function definitions was the only file that was compiled. And i got errors saying my
    was undefined. But i had definied it.

    My unix command for it would be as follows
    Code (Text):

    % ls
    jt.c     jtdriver.c     Makefile     jt.h
    % gcc -Wall -o jt jt.c jtdriver.c
    and my fucntion definitons will be in in "jt.c" and my struct definitions and prototypes for funtions will be in "jt.h"

    so where are the options i need to access to compile all these together.

    Also if i have a Makefile written in the same project will that get mixed up with the entire compilation?

    Last edited: Jan 28, 2006
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook