g++

Speed up working with strings

There is an array (1-10 elements) consisting of long (up to 10,000 characters) immutable strings. There is also one (equally ... ealized that the program should run faster if I pass values to the function by reference (or pointer). Any other suggestions?

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)?

g++ tells you to include a library that is already included

There is no error related to the crooked name The error itself-I'm trying to make a list of threads, but the 'thread' was no ... ange anything In the thread file itself, everything is under #if defined(_GLIBCXX_HAS_GTHREADS), can this somehow affect it?

Clearing the screen

Tell me, please, is there a function for cleaning the screen in C++? Do not offer to use the conio library: because it is not ... declared in this scope That is, I would like to see a library and a cleanup operator or a library for systems ("") for C++.

c++ mingw-64 winapi MENUITEMINFO add icon

Windows 7, mingw-w64 "g++ (i686-win32-dwarf-rev0, Built by MinGW-W64 project) 8.1.0" Hi, I'm learning winapi menus, I want t ... resources.o -o main.exe -mwindows -mconsole -municode -lcomctl32 But my icons don't want to output, what am I doing wrong?

How to install OpenGL on Ubuntu

Hello, can you tell me how to install OpenGL? G++compiler

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.

Building an OpenGL project in g++

In short, I'm trying to create an OpenGL application (a normal window with a white square), but even after installing OpenGL, ... ce to `glutDisplayFunc' openGL.cpp:(.text+0x107): undefined reference to `glutMainLoop' collect2: ld returned 1 exit status

Why use conditional compilation directives (#define #if #endif)?

How to use them? Are they better or worse? The headers are written using them, so they are convenient?

Please tell me, ex'shnik after the build via Smake and mingw32-make does not start

I have Cmake and MinGW installed. Both are in variable environments. I want to build a project. I use the command cmake .. - ... s in static linking, but I'm not sure. If so, how to configure it correctly via Cmake? Thank you, I will be glad of any help.

What ways to pause the program for a time (sec) do you know?

I suggest this: #include <iostream> #include <ctime> using namespace std; int main() { double tim; ... hile(time(0) - tim != 2) { } cout << "hello world"!; while (time(0) - tim != 2) { } } Any other options?

C++ error: invalid initialization of non-const reference of type char&

I started studying c++ and in the process of studying arrays of strings I encountered several errors that I can't understand ... ly hope to indicate specifically my mistakes, and not throw links, as I have already searched long and hard, but to no avail.

How do I specify compilation flags for g++`in Qt Creator 3.3.2?

Good time of day! I have a question. How do I specify compilation flags for g++ in Qt Creator? Not for qmake, but for g++. Is there any way to specify them other than by writing them in the. pro project file?

libgcc s dw2-1.dll not found

I built a project on Code:: blocks , but it only runs through the IDE itself when trying to run outside the IDE writes Code execution cannot be detected because the system did not detect it. libgcc_s_dw2-1.dll.

How to downgrade gcc, g++ and gfortran compilers?

I am trying to install package mice in Rstudio, but the installation fails and shows error/usr/bin/ld: -lgfortran not found. ... to solve this problem? (otherwise, what should I do?) 2) If this can solve my problem, How can I downgrade g ++ and gfortran?

Error: stack smashing detected

I am having the error: * stack smashing detected * : terminated in my program I use the G ++ compiler (Ubuntu 7.5.0-3 ... lt; "=" << endl; } return 0; } The input I put is: 10 5 18 11 1 18, it should return C, but it returns F.