Recent Posts

Pages: 1 ... 5 6 7 8 9 [10]
91
Development / Re: Offers and ideas to help codeblocks
« Last post by hanetzer on April 19, 2019, 05:46:47 am »
  • Nope. If you really want to move to another build system use a more "standard" one. So far many open source projects use CMake, this is IMHO kind of the standard meta build system right now. And even Boost is moving to that one, enough said ;D. This won't be an easy task, CodeBlocks does a lot of extra stuff than compiling, you need to drive the package generators, seems like a lot of work.
I just mean for building codeblocks itself, not codeblock's building projects made in codeblocks.

  • I dont know if it is just me who is so old school and refuses to use a POSIX environment on Windows to build my stuff (hmm, actually the only reason to have a GCC toolchain on Windows for me is CodeBlocks... CodeBlocks, why you no can be compiled with MSVC :'(), but i just use the online installer of MinGW-w64 to download the toolchain. It's kind of one-click, set the path in CodeBlocks and i'm done, no editing XML or the like :o ::)
No posix environment. Just raw windows executables.

  • Fixing the eMails is the easiest task, you will have way more fun dealing with externals, fixing revision references in log messages and i don't know what else you will face. But i do like the move to git, no more patch files scattered around the forum, only nice PR's (ok, i know who won't like that  ;D)
Yeah, but there are tools for that, just takes a bit of massaging.

Just for reference, i'm not associated with CodeBlocks in any way despite having fixed some things here and there in the past, so this is my personal opinion about these matters.
Fair enough, but hope I've addressed your concerns well enough :)
92
Using Code::Blocks / Where Is This .h File Coming From
« Last post by petec on April 19, 2019, 05:46:44 am »
I think this is a codeblocks issue.  Pardon me if it isn't.

There is a .h file that I can't get rid of.
I started a new C program per:
https://codeforwin.org/2017/08/create-compile-run-c-program-using-codeblocks.html

I put in the "hello world" program.
When I Build an old .h file from a previous project appears in the window and it reports some missing includes.
I can't get rid of the .h file. 
It is not included in Hello World
I started a new project.....still it shows up.
I can't find any reference to it in any of the Settings (I think I searched them all).
I closed files, closed all files, closed workspace.

I don't know where else to go.
Any ideas?
Pete
93
Contributions to C::B / Re: Declaration of Intent
« Last post by sodev on April 19, 2019, 05:00:14 am »
And then there was silence. No lack of soft skills, more like excess of hot air ;D ::) :P
94
Development / Re: Offers and ideas to help codeblocks
« Last post by sodev on April 19, 2019, 04:57:40 am »
  • Nope. If you really want to move to another build system use a more "standard" one. So far many open source projects use CMake, this is IMHO kind of the standard meta build system right now. And even Boost is moving to that one, enough said ;D. This won't be an easy task, CodeBlocks does a lot of extra stuff than compiling, you need to drive the package generators, seems like a lot of work.
  • I dont know if it is just me who is so old school and refuses to use a POSIX environment on Windows to build my stuff (hmm, actually the only reason to have a GCC toolchain on Windows for me is CodeBlocks... CodeBlocks, why you no can be compiled with MSVC :'(), but i just use the online installer of MinGW-w64 to download the toolchain. It's kind of one-click, set the path in CodeBlocks and i'm done, no editing XML or the like :o ::)
  • Fixing the eMails is the easiest task, you will have way more fun dealing with externals, fixing revision references in log messages and i don't know what else you will face. But i do like the move to git, no more patch files scattered around the forum, only nice PR's (ok, i know who won't like that  ;D)

Just for reference, i'm not associated with CodeBlocks in any way despite having fixed some things here and there in the past, so this is my personal opinion about these matters.
95
Development / Offers and ideas to help codeblocks
« Last post by hanetzer on April 19, 2019, 03:54:15 am »
So, I have three ideas which codeblocks may want to implement, and I'm willing to do the legwork
needed for them if the codeblocks team are interested in it.

  • Move to mesonbuild.
    Mesonbuild is a pure python build configuration tool (it is analogous to autotools) which generates ninja build scripts (which is analogous to make and Makefiles)
    As a general rule both the configure and build stage are by and far faster using meson/ninja than configure/make, which could really speed up development flow
    once you're used to the build flow
  • Get newer mingw-w64 compilers for windows.
    As it currently stands codeblocks ships with gcc 5.1, while 8.3 is the current release. It would be nice to at least get to 7.3 as a default, as at least my current college
    requires that any and all projects submitted for the class be able to run in the codeblocks they have installed and they don't do any after-tweaking to use a different
    toolchain, so it limits the more enterprising students' options. I was thinking to pull the packages from msys2's toolchain packages (they produce native windows
    binaries without a dep on cygwin.dll or the like) and adjusting the compiler xml file to use it.
  • Move from svn to git.
    Just throwing this out there. I can do the conversion if desired but would require some help from the prior developers as svn only stores the author's username
    (foobar) and git requires a name and email (foobar <foo@bar.net>). I can just use "foobar <foobar@codeblocks.org>" for existing authors if so desired.
96
General (but related to Code::Blocks) / Re: Welcome Newcomers - PLEASE READ!!!
« Last post by hanetzer on April 19, 2019, 03:36:36 am »
Hello, I am here, real human.

Just a college student who's programs have to run in codeblocks to get the grade. Hoping
to maybe help with development of codeblocks itself.
97
Quote
"... the IDE needs to understand its in a sandbox and run build commands in a different context (be it a different sandbox, or in this case escaping the sandbox on the host)."
This bothered me hard... Isn't the purpose of a sandbox to not let the sandboxed application break the sandbox? If this would be possible, why use a sandbox? Strange...
98
I did not research the problem to any depth, but to overcome a "blacklisted directory" said it all to me. I am not meant to access this directory.

To use FlatPak you have to use a non-standard (non-blacklisted) directory for all your installed libraries. Yeah right!

Unless a tool is provided (and documented) to update the internal FlatPak "/usr" directories then I would say FlatPak is not an option for almost all programmers.

Your post of your discussion on FlatPak was interesting, "... the IDE needs to understand its in a sandbox and run build commands in a different context (be it a different sandbox, or in this case escaping the sandbox on the host)."
Yeah right!

Regards AlanX
99
Using Code::Blocks / Re: Can't compile a c project
« Last post by stahta01 on April 18, 2019, 04:33:18 am »
Install an C/C++ Compiler and configure Code::Blocks to use it.

From: http://www.codeblocks.org/downloads/26
Quote
NOTE: The codeblocks-17.12-setup.exe file includes Code::Blocks with all plugins. The codeblocks-17.12-setup-nonadmin.exe file is provided for convenience to users that do not have administrator rights on their machine(s).

NOTE: The codeblocks-17.12mingw-setup.exe file includes additionally the GCC/G++ compiler and GDB debugger from TDM-GCC (version 5.1.0, 32 bit, SJLJ). The codeblocks-17.12mingw_fortran-setup.exe file includes additionally to that the GFortran compiler (TDM-GCC).

NOTE: The codeblocks-17.12(mingw)-nosetup.zip files are provided for convenience to users that are allergic against installers. However, it will not allow to select plugins / features to install (it includes everything) and not create any menu shortcuts. For the "installation" you are on your own.

Tim S
100
Using Code::Blocks / Can't compile a c project
« Last post by sash_007 on April 18, 2019, 04:12:36 am »
hello friends,
i downloaded codeblocks from here
http://www.codeblocks.org/downloads/26

installed codeblocks-17.12-setup.exe

but when i click build and run i see this error
Quote
Project/Target: "test - Debug":
  The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
  Probably the toolchain path within the compiler options is not setup correctly?!
  Do you have a compiler installed?
Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.

Tried to run compiler executable 'C:\MinGW/bin/mingw32-gcc.exe', but failed!

Skipping...
Nothing to be done (all items are up-to-date).

please help
Pages: 1 ... 5 6 7 8 9 [10]