Autoload in Python

In the past I've used perl's AUTOLOAD facility for implementing lazy loading of symbols into a namespace, and wanted the same functionality in python. Traditionally the closest you appear to be...

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...

Recipe for target `autoloads' failed while building Emacs in Cygwin

I am trying to build Emacs on 64-bit Windows 7 using Cyqwin: Emacs 23.3 or 23.4 CYGWIN_NT-6.1-WOW64 1.7.11(0.260/5/3) 2012-02-24 14:05 i686 Cygwin Some info from ./configure log: What compiler...

Using C++11 thread with pure virtual thread function

I have code where objects that are intended to execute in separate thread derive from a base class with a pure virtual Run function. I cannot get the following (simplified test code) to run the...

How to check the compiler version in Qt .pro file?

I want to build a Qt project using either GCC or an ARM compiler. In either environment I have to link different libraries. How I can check if the current compiler is Linux's g++ and CROSS_COMPILE...

Golang testing: "no test files"

I'm creating a simple test within my package directory called reverseTest.go package main import "testing" func TestReverse(t *testing.T) { cases := []struct { in, want string }{ ...

make -j 8 g++: internal compiler error: Killed (program cc1plus)

When I deploy Apache Mesos on Ubuntu12.04, I follow the official document, in step "make -j 8" I'm getting this error in the console: g++: internal compiler error: Killed (program cc1plus) Please...

Can GCC compile and run a source code without generating object or executable files?

Can GCC compile and run a source code without generating any output file (neither object nor executable), in a manner that is supported cross-platform? Especially, a solution supported by GCC...

Error Loading MySQLdb Module and "pip install MySQLdb"

I'm trying start up a Django project. I get this error on trying to run the manage.py: (venv)dyn-160-39-161-214:proj Bren$ python manage.py Traceback (most recent call last): File "manage.py",...

Lightgbm OSError, Library not loaded

If I simply do: import lightgbm as lgb I'm getting python script.py Traceback (most recent call last): File "script.py", line 4, in <module> import lightgbm as lgb File...

What is .build-deps for apk add --virtual command?

What is .build-deps in the following command? I can't find an explanation in the Alpine docs. Is this a file that is predefined? Is see this referenced in many Dockerfiles. RUN apk add...

Trouble getting latest version of GDAL on ubuntu running R

My Ubuntu machine has latest GDAL (2.2.1, released 2017/06/23). But R complains that I have gdalversion <2.0 configure: CC: gcc -std=gnu99 configure: CXX: g++ checking for gdal-config......

Ignore system headers in clang-tidy

tldr;> How do I hide warnings from system headers in clang-tidy? I have the following minimal example source file, which triggers a clang-tidy warning in the system headers: #include <future> int...

implicit declaration of function 'write' (unistd included)

I wrote a function that prints text on standard output. At compilation (using gcc exemple.c), i get a warning : implicit declaration of function 'write'. Here is an exemple : exemple.c : #include...

Upgrade glibc 2.17 to 2.19+ on CentOS 7

First of all, Dropbox emailed me saying that I must upgrade glibc to 2.19+, otherwise Dropbox will not run.Then I follow the steps below to upgrade glibc. wget...

In which access control context are concepts evaluated?

This question is a follow up to this one [temp.concept]/5 says: A concept is not instantiated ([temp.spec]). [ Note: An id-expression that denotes a concept specialization is evaluated as an...

Locating iostream in Clang++: fatal error: 'iostream' file not found

I wrote the following simple C++ program: #include <iostream> using namespace std; int main() { cout << "Hello, World" << endl; return 0; } When I compile this with g++, it works...

How to fix arm-none-eabi-objcopy: error: the input file 'led' has no sections

makefile: led.hex: led @echo 'Invoking: GNU ARM Cross Create Flash Image' arm-none-eabi-objcopy -O ihex "led" "led.hex" @echo 'Finished building: [email protected]' @echo ' ' build message: Invoking: GNU ARM...

Access build-id at runtime

I am trying to figure out how to access the build-id generated by the linker at runtime. From this page, https://linux.die.net/man/1/ld When I build a test program like: % gcc test.c -o test...

Is it possible in practice to compile millions of small functions into a static binary?

I've created a static library with about 2 million small functions, but I'm having trouble linking it to my main function, using GCC (tested 4.8.5 or 7.3.0) under Linux x86_64. The linker...

How to configure Visual Studio Code on UBUNTU to compile gstreamer files

I have gstreamer and VSC installed on UBUNTU 18.04, and I can compile and run gstreamer tutorials from system command prompt by using instructions here:...

How to dynamically register class in a factory class at runtime period with c++

Now, I implemented a factory class to dynamically create class with a idenification string, please see the following code: void IOFactory::registerIO() { Register("NDAM9020", []() -> IOBase *...

How to import module in pydroid

I'm having problem in importing my created module in pydroid 3. The process seems very simple in desktop version of python 3 but I tried doing it in Mobile in pydroid 3 application, but it does...

Using clang-tidy to analize embedded GCC project

I'm trying to use clang-tidy to parse my project, compiled by arm-none-eabi-g++. Unfortunately, clang-tidy is not able to find compiler headers, even when given the include path to them. My...

linker command failing for particular golang test involving "net/http" and "time" packages

I'm new to web development and golang. I'm trying to learn go from here. Without any issues I was able to learn till concurrency part, however, I'm facing issues while trying to learn select...

Getting "RuntimeError: CUDA error: out of memory" when memory is free

I'm trying to run a test code on GPU of a remote machine. The code is import torch foo = torch.tensor([1,2,3]) foo = foo.to('cuda') I'm getting the following error Traceback (most recent call...

C poor performance compared to Julia

I wanted to create a formal comparison between C and Julia performance. For this purpose I wanted to compare different sorting algorithms, starting with the bubble. In Julia I wrote it like: using...

Building Assimp with Code::Blocks and MinGW

I am trying to build Assimp with Code::Blocks and MinGW as a static library. I have downloaded the latest available version (5.0.1) and created a makefile for Code::Blocks using cmake-gui. I am...

Installing compiler on Mac M1 Monterey for Rcpp and other tools

I'm trying to use packages that require Rcpp in R on my M1 Mac, which I was never able to get up and running after purchasing this computer. I updated it to Monterey in the hope that this would...

How to force the C++ compiler to warn when a specific std class function is called?

I'm trying to use UTF-8 std::string and std::filesystem::path in a fool-proof way on Windows 10+ where Beta: Use Unicode UTF-8 for worldwide language support is likely off. C++17 or above. To go...