Questions tagged [gcc6]

Version 6.x of the GNU Compiler Collection.

Version 6.1 was released on 2016-04-27. Version 6.5. was released on 2018-10-26.

See also:

52 questions
0
votes
1 answer

threadsafe code with mutex

trying tom make my linked list implementation in c11 (gcc6), threadsafe. only thing i do not get how many mutex lock and unlocks i should go with? /** * adds a new node to head of the list, alocation of node is done dynamically * @param list …
nkvnkv
  • 914
  • 2
  • 12
  • 25
0
votes
1 answer

gdb error while executing compile command: libcc1.so: cannot open shared object file: No such file or directory

I compiled the most recent gdb version from source to try out the new compile command. But unfortunately, it gives the error Could not load libcc1.so: libcc1.so: cannot open shared object file: No such file or directory whenever I try to execute…
Korcan Karaokçu
  • 467
  • 4
  • 18
-1
votes
1 answer

Homebrew: Error running 'requirements_osx_brew_libs_install gcc@6' on Mac10.13.6

I can't install ruby 3.0.0 through my powershell, when I try rvm install 3.0.0 I receive a beautiful error: Error running 'requirements_osx_brew_libs_install gcc@6', please read…
-1
votes
1 answer

Is it possible to force GCC to output the exact bitwise instructions I give it without inline assembly?

I've written code which looks like this: char* xor_and_print(byte arr[], size_t buffSize, byte key) { size_t i; for(i = 0; i < buffSize; i++) { printf("%c", (arr[i] & ~key) | (key & ~arr[i])); } putchar('\n'); } This is…
the_endian
  • 2,259
  • 1
  • 24
  • 49
-1
votes
3 answers

How to put double-digit char like '51' in a char array?

#include int main(){ char array[3][3]={{'2','1','3'},{'4','5','9'}}; array[0][0]='51'; } Error warning: multi-character character constant [-Wmultichar] array[0][0]='51'; ^~~~ 17.4.c:6:17: warning: overflow in…
bucz
  • 35
  • 2
  • 6
-1
votes
1 answer

My C Code is encountering sigsegv error

Im not getting any error on local machine but codechef and ideone are giving runtime errors i use ubuntu with gcc 6.3 if by any chance if you know how to track that down please let me know so that i can use it for my further works heres the…
-4
votes
1 answer

Why function inside an struct works C language

As shown in this small script. #include struct student{ short count; void (*addCount)(); }; void student_addCount(struct student a){ a.count++; } int main(){ struct student student; student.addCount =…
1 2 3
4