Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Code
gcc -c pointers-addressof.c -o pointers-address-of.run
/pointers-address-of.run
bash: ./pointers-address-of.run: Permission denied
-rwxrwxrwx 1 edward edward 16624 Jun 13 14:18  pointers-addressof
-rwxrwxrwx 1 edward edward  2648 Jun 14 17:34  pointers-addressof.o
-rwxrwxrwx 1 edward edward  2648 Jun 14 17:38  pointers-address-of.run
Google "GCC flags":
Code
-c
    Compile or assemble the source files, but do not link. The linking stage simply is not done. The ultimate output is in the form of an object file for each source file.
    By default, the object file name for a source file is made by replacing the suffix .c, .i, .s, etc., with .o.
Why are you trying to run the object file instead of the compiled binary? Even the file size should hint at that...
2
> "no target" in "no project"

Building without a Code::Blocks project can be unhealthy indeed...

 I tried that.  I started a brand new c console project, and copied the contents of my file to main.c, built it and still get permission denied.
3
What happens if you run the executable from terminal?
Code
gcc -c pointers-addressof.c -o pointers-address-of.run
/pointers-address-of.run
bash: ./pointers-address-of.run: Permission denied
[email protected]:/media/IDE/ProgrammingCode/0._Console/c_programs$ chmod + ./pointers-address-of.run
[email protected]:/media/IDE/ProgrammingCode/0._Console/c_programs$ ./pointers-address-of.run
bash: ./pointers-address-of.run: Permission denied
[email protected]:/media/IDE/ProgrammingCode/0._Console/c_programs$ sudo chmod -R 777 .
[email protected]:/media/IDE/ProgrammingCode/0._Console/c_programs$ ./pointers-address-of.run
bash: ./pointers-address-of.run: Permission denied
[email protected]:/media/IDE/ProgrammingCode/0._Console/c_programs$ ls -l
total 188.
.
.
-rwxrwxrwx 1 edward edward 16624 Jun 13 14:18  pointers-addressof
-rwxrwxrwx 1 edward edward   741 Jun  6 08:44  pointers-addressof.c
-rwxrwxrwx 1 edward edward  2648 Jun 14 17:34  pointers-addressof.o
-rwxrwxrwx 1 edward edward  2648 Jun 14 17:38  pointers-address-of.run

 

So then it's not a codeblocks issue, but compiler issue.
4
When switching compilers C::B tries to match flags set for the old compiler in the new compiler.
If a flag is found in the new compiler it is set and you see a checkbox in the Flags tab.
If it is not found it is transferred as a string option in the "Other compiler options".
5
Before or after editing the cbp file with a text editor?

Before and after.

Quote
I suppose the Compiler Flags tab doesn't have a "-Wall" option.

It has one if I change the compiler back to GNU GDC. 



I may have been able to solve my problem with it using a DMD compiler and GDC flags if I had saved the project to update the project file to DMD. Although I am not sure how it would use a mix of program settings and project file settings. But I can't test that now because, while it started up initially with GDC as the default, now it won't let me switch to GDC as the default because it correctly says that it can't find it on my system.
6
Development / RFC: Backticks
« Last post by oBFusCATed on Yesterday at 10:04:47 pm »
I've tried to introduce automatic support for gtk 2 or 3 on linux.
I've failed to do it and this happened because it was not possible to expand backticks of complex expressions like "cmd0|cmd1".
I've added this feature in this branch: https://github.com/obfuscated/codeblocks_sf/tree/experiments/backticks

After I've done the above I've remembered about the dreaded backtick expression cache problem and I've tried to resolve it, too.
Please test with your projects. Use --debug-log to see if the cache isn't cleared too often. It should be cleared once per operation like Build/Rebuild/Clear.
7
I am new, I am here!!
Thank You in advance for your support!
Giorgio.
8
Before or after editing the cbp file with a text editor?
I suppose the Compiler Flags tab doesn't have a "-Wall" option.
Keep in mind that these compilers are rarely used in codeblocks, so they might be outdated.
Also keep in mind that last time (12+ years ago) I've tried D in C::B the dependency tracking didn't work well/at all, so you might need to do full rebuilds every time you change something major.
9
This can be edited in the GUI using Project -> Build options -> [target or project] -> Compiler settings -> Other compiler settings

Thanks for the reply.  I looked at that tab, but it was blank/empty.
10
This can be edited in the GUI using Project -> Build options -> [target or project] -> Compiler settings -> Other compiler settings
Pages: [1] 2 3 4 5 6 ... 10