Questions tagged [GCC] (152)

1
answer

How to fix an implicit function Declaration in your code?

Hello. There is a file kmain.c, there we have the entry point and main function that uses the function initVGAMemory();the function prototype described in the header file vgamemory.h(implementation in vgamemory.c). To kmain.c is connected to only one header file kernel.h, it vgamemory.h in no way connected, it turns out, in...
prudence_Ebert asked April 2nd 20 at 16:22
2
answers

Install new compilers on CentOS6?

I have a Centos 6 version, you need to compile project with-std=gnu17 is installed devtoolset-2 but it does not support standard 17, be like?
Khalid_Wiso asked April 2nd 20 at 15:30
3
answers

Why empty C program is 6 kilobytes?

The C language was designed as a close comparable to machine instructions. Some argue that programming it is almost as efficient as assembler. I'm new to this language and decided to conduct a little experiment to see how long it will take, an empty program with the following code:int main () { return 0; } The compiler is ...
Myles asked March 31st 20 at 21:03
1
answer

How to compile library for Qt under windows?

Suppose there is a library in C++ - openbabel I need to compile it to connect to the qt project I downloaded it and Rosaryville (openbabel-openbabel-2-4-0.zip) Trying to compile as there are not written out My question is a bit similar to this , but still it did not help me to understand Need to work on the following plat...
lulu_Hans asked March 31st 20 at 14:59
4
answers

How to build PHP extension on Windows x64, from Linux?

I tried to configure./configure --host=x86_64-w64-mingw32 But after make, the output is .a file and not .dll. What am I doing wrong?
buster3 asked March 31st 20 at 14:12
1
answer

Is there a compatibility table of compilers and versions of libraries?

In General, the essence of the question is, which versions of the standards C are represented in one form or another, versions of libraries libstdc++ For example, there is a conclusion[root@nightmare bin]# strings /lib/libstdc++.so.6 | grep GLIBC GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3....
Micheal.Gusikowski asked March 30th 20 at 00:49
2
answers

Why Assembly code (GNU assembler) is compiled on one machine but does not compile on another?

.hello_str: .string "Hello, GAS!" .globl main .type main, @function main: movl $.hello_str, %edi call puts@PLT movl $0, %edi call exit@PLT compile like this:gcc-o a.out ./1_1.s On both machines is the 64-bit Ubuntu. One compiles, the other swears.gcc-o a.out ./1_1.s /usr/bin/ld: /tmp/ccTxc4Ax.o: relocation R_X86_64_3...
shea17 asked March 25th 20 at 13:09
1
answer

How to configure Qt to compile applications under Windows from under Linux?

How is this setting for Qt 5.9.5?
Marietta.Sporer asked March 25th 20 at 11:42
2
answers

How to make scanf( ) are optional?

I need to do the optional filling out of certain parameters. For example char name[10], surname[10], middle_name[10]; printf("Name: "); scanf("%s", &name); printf("Surname: "); scanf("%*s\n", &surname); printf("first name: "); scanf("%s\n", &middle_name); And if people do not want to fill paragraph when pressing...
lulu_Hop asked March 24th 20 at 14:47
1
answer

Why not compile the Assembly code into gcc?

gcc ./hello.s /usr/bin/ld: /tmp/ccFwCm6W.o: relocation R_X86_64_32 against '.data' can not be used when making a PIE object; recompile with-fPIC /usr/bin/ld: final link failed: Section unrepresentable to output collect2: error: ld returned 1 exit status gcc-fPIC ./hello.s /usr/bin/ld: /tmp/ccnyVBXc.o: relocation R_X86_64_...
josefa.Littel asked March 24th 20 at 12:55