Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Browsing all 21994 articles
Browse latest View live
↧

Meteor Application Fails to Find Fibers Binary; Yet NPM Built a Different One

I am deploying my Meteor bundle to a similar Ubuntu 18.04 system as development. After running meteor (starting the application), I get the following error:## There is an issue with `node-fibers`...

View Article


fatal error: Python.h: No such file or directory

I am trying to build a shared library using a C extension file but first I have to generate the output file using the command below:gcc -Wall utilsmodule.c -o UtilcAfter executing the command, I get...

View Article


tell CMake to link to Boost in a custom folder

I'm trying to install boost in a custom dir. I did:cd boost_dir./bootstrap.sh --prefix=/custom_dir./b2Now what I want to do is tell CMake to point to that library. To that end, I added:set(BOOST_ROOT...

View Article

How to use gcc __is_class with preprocessor if in C++

I want to send a var to a function if is it a class. I try with std::is_class but this gave me an erros because std::is_class is run time and not a preprocessor. I can't make the preprocessor if to...

View Article

DirectAdmin Installation on FreeBSD

I want to install DA and it requires both bind and gcc to be installed first, but they aren't installed on my machine. How do I install bind and gcc on FreeBSD 10.0?

View Article


Why the same code is giving such different output in windows and linux [closed]

Here I am trying to match a string taken from user with the data present in a file. When I type Aditya828 in the required field, it matches with the same present in a file while linux doesnt match it....

View Article

The sleep function is not functioning as expected

The sleep function here is functioning differently on Windows and Linux. #include <stdio.h>#include <stdlib.h>#include <stdbool.h>#include <string.h>#include <unistd.h>int...

View Article

c++ perfect forwarding function template that allows copy elision

I am writing an algorithm to speed up some specific bitmap comparisons.The signature of this function is.template <size_t vec_size, typename uint_t>auto foo(uint_t a, std::array<uint_t,...

View Article


Facing error with "lpcap not found" although I have already installed libpcap

Facing error with cannot find lpcap for make command for some package, although I have already installed libpcap-devel. go build -i -ldflags "-linkmode external -extldflags -static -X...

View Article


what does [undefined reference to `SetLastError@4'] mean? [closed]

I use mingw-w64 to deploy C++ on windows, everything is normal except when I use the library function, the following problems will be reported at...

View Article

Where to find a list of available linking libraries in C

For example, if I include <math.h> what resource would I reference to find out I need to link it with -lm?

View Article

CUDA incompatible with my gcc version

I have troubles compiling some of the examples shipped with CUDA SDK.I have installed the developers driver (version 270.41.19) and the CUDA toolkit,then finally the SDK (both the 4.0.17...

View Article

Image may be NSFW.
Clik here to view.

Using the LLVM bindings with GO

I am trying to compile the LLVM Go bindings for this https://godoc.org/llvm.org/llvm/bindings/go/llvm. Using the go package "llvm.org/llvm/bindings/go/llvm". however, I cannot seem to compile it. I...

View Article


Failed to use gdb for an executive file generated by cmake

To do debug for C++ codes with cmake, I have a trick to add the following lines before the project (myProjectYY) line of the CMakeLists.txt file in the root directory of the source code....

View Article

gcc: "cannot find -lasound" when compiling on Windows

I am compiling a C++ program on Windows. The program uses the SDL2 library. I run the following pkg-config command to obtain the correct flags to pass to the GCC compiler.$ pkg-config sdl2 --cflags...

View Article


How to generate an array of random & unique integers in C?

I am creating a C-prog that requires an array of 17 integers, all being less than 18 and unique. This is what I could do until now:int ques_arr[17];int x,y;time_t...

View Article

Using ASan on a single shared object

I have an executable that is linked against multiple shared objects. One of the shared objects is compiled with ASan and the executable itself isn't.Is there a way to make ASan track this shared object...

View Article


How is done compile-time calculation/math operation in gcc?

If I compile a program with -O2 optimization, then a any function with math operations is done "inline", without physicall cpu instruction in assembly enter link description here. So having this in...

View Article

How to debug "linked command failed"?

I've started learning C++ over some other high-level languages and it starts driving me crazy.When I compile a program like that: gcc $FILE_TO_COMPILE -o $OUTPUT -lstdc++All it works. CLion comes with...

View Article

Does arm-none-eabi-gcc produce slower code than Keil uVision

I have a simple blinking led program running on STM32f103C8 (without initialization boilerplate):void soft_delay(void) { for (volatile uint32_t i=0; i<2000000; ++i) { }} uint32_t iters = 0; while...

View Article
Browsing all 21994 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>