Code::Blocks

User forums => General (but related to Code::Blocks) => Topic started by: wever on January 26, 2015, 08:34:34 pm

Title: How compile in command line
Post by: wever on January 26, 2015, 08:34:34 pm
Does CB have command line to compile project? I have downloaded ijp (jpeg library) and in install.txt there is written I have to compile it in command line. I cannot find any makefile for cb however, there are these files:

how could I compile the project?
Title: Re: How compile in command line
Post by: oBFusCATed on January 26, 2015, 09:05:42 pm
Try codeblocks --help to see all the command line option.
But this won't help you as cb doesn't support compiling makefile projects with a cbp project file.
The best thing you can do is consult the documentation of the library you're trying to build for the exact method you need to use on your operating system.

BTW: Keep in mind that codeblocks is not a compiler/linker, but an IDE!
Title: Re: How compile in command line
Post by: MortenMacFly on January 27, 2015, 10:05:28 pm
Probably a bit misleading: cb supports custom makefile projects but not compiling makefile projects without a project file via the command line.
However, if not using the native cb build system you are missing a lot features and slow down the build process.
Title: Re: How compile in command line
Post by: BlueHazzard on January 27, 2015, 11:03:42 pm
just to make this clear: c::b IS NOT A COMPILER but a IDE. This are two different things (if you don't know search on wikipedia)....
If you wan't compile  ijp like it is specified in install.txt you have to use the mingw32-make.exe (if you are on windows) or just make in linux. And if so, then this is the wrong forum to ask this kind of questions.