gcc

Warning: implicit declaration of function ‘read’ ('write')

Hello. Please tell me why the compiler throws warning when using read and write? #include <stdio.h> #include <string ... translation, it is clear that an implicit function declaration occurred. It turns out that I'm missing some kind of include?

Is there a difference between GCC (g++) and Visual Studio?

I have a couple of questions from a beginner. If a program compiles correctly in VS, will it compile correctly in g++(GCC) ... s 10, will it compile correctly on Linux? Is it possible to check whether the program will compile in Linux and in g++(GCC)?

How do I get a clean executable binary on Linux?

For example, there is a C code: static int add(a, b) { return a + b; } How do I compile this code into a binary file that will be executed from the beginning of the file byte by byte?

Why does this work in gcc?

A static array with a size not known at the time of compilation. char buf[atoi(argv[2])]; And where can I read about it?

How can I output the argument of a function written in GNU Assembler (AT&T syntax) in C?

There is a task-to write a program from two modules: one in C, the second in assembly language. All sources unanimously state ... n KUbuntu OS. Question: where does this first argument hide, and how do I finally get it out and return it to the C module?

Compilation errors in Linix

When compiling ace, openssl libraries. When compiling mysql, apache. Drives in an error, for example: make[1]: Entering dire ... ng host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu Throw in some ideas.

Error: 'a' was not declared in this scope

I downloaded the latest qt 5.3.0 c MinGW 4.8.2 and was surprised. (same with qt 5.2.0 with MinGW 4.8.0) #include <iostrea ... o 2008. Is this a MinGW bug, or is it necessary/acceptable? By the way, it works fine with MinGW and if you write this->a.

Where can I find a description of the sections where the gcc compiler places data?

Where can I find information, in which sections, what symbols does the gcc compiler place?

Running a compiled file in ubuntu

Hello everyone , interested in c++ , here came the question , I compiled the code I compiled the file which should be run , b ... gram not to .exe format and in the format that I could access through ubuntu ? Or make a universal format, if there is one .

With (GCC). How do I exclude unused functions from the build?

The project has a pair . c / . h, in which several functions are declared and defined. However, some of them are not used. Bu ... lly. Yes, and in general it is interesting. In addition, the unused f-ai from the standard library does not fall in this way.

Man gcc doesn't work

The man gcc command does not work : No manual entry for gcc See 'man 7 undocumented' for help when manual pages are not available.

Correct inheritance of std:: exception

Trying to write my own exception class class MathException : std::exception { public: MathException(std::string &&am ... the vtable symbol may be undefined because the class is missing its key function (see go/missingkeymethod)

Error "undefined reference to `WinMain@16' " when building in MinGW

I'll tell you right away - I'm a noob in C++, but I want to learn it. I'm trying to compile this code: #ifndef UNICODE #defi ... а: выполнение ld завершилось с кодом возврата 1 No matter how the code looks, it still doesn't want to compile. What to do?

output of the word vice versa

The task is as follows: you need to ask the user for a word and display it on the screen in reverse. when I use this code: # ... { printf("%c", str[i]); } printf("\n"); return 0; } Then I get everything except the first character.

Is the localtime s function supported in the GCC translator?

Good afternoon. I mostly use Visual Studio, and for some time now Visual Studio has been insisting with maniacal persistence ... b.com/online_c++_compiler Https://ideone.com/ Localtime_s doesn't work either. Even if you define all the specified macros.

Tell me the online translators of GCC C++, in which you can broadcast multi-file projects

Good afternoon. I mostly use Visual Studio, but sometimes I need the code to be translated under GCC. There are many onlin ... . So the question is: Tell me the online translators of GCC C++, in which you can broadcast multi-file projects. Thanks.

Data entry in C. Is not defined by getString () from cs50

Why don't I have string s = GetString(); defined? Hell.c #include <stdio.h> #include <cs50.h> int main(void) { ... hell.c:(.text+0x16): undefined reference to `GetString' collect2: error: ld returned 1 exit status make: *** [hell] Error 1

C++ - passing an array to a function

There are several functions that take an array of integers as a parameter. #include <iostream> using namespace std; ... < arr.size(); j++) ^~~~ Maybe I'm writing something wrong. I will be glad to get a hint!

How do I use gcc's ability to generate rules for a makefile inside the makefile itself?

I have a project where the header files are stored in the include folder, and the implementation files are in the src folder, ... ow did not understand why separately additional rules to the template work, and if they are generated automatically, then no?

Why do I need a.a /.lib file to connect a dll?

To build a program that is statically linked to .however, the following command was sufficient: $(CC) bin\main.o -L.\bin -lc ... ed, right? Do I understand correctly that the file libtstdll.a can then be simply linked to the program without any -lmyldll?