New answers tagged

1

The issue seems to be that the shell variable LD_LIBRARY_PATH that you set in your ~/.bashrc file never gets exported. Since it's never exported, the linker will not see it. To export the variable, which creates an environment variable from it which other commands that you start can see, you use the export command: export LD_LIBRARY_PATH You may also ...


0

I know that it has been 4 years since this question was asked but I had run into this problem today. I had compiled gcc 11.2.0 from source on an old macbook pro in order to access recent C++ features. Upon including certain headers like <algorithm> I would get weird errors that looked just like the OP's errors. My problem was that I had added to my C++ ...


3

You can use BLKGETSIZE64 ioctl or read it from /sys/class/block/sdb/size (size here is in 512 sectors).


2

Hints https://www.linuxfromscratch.org/lfs/view/stable/chapter07/gcc-libstdc++-pass2.html A test-build .... tar xvf gcc-10.3.0.tar.xz mkdir BUILD__libstdc++103 cd BUILD__libstdc++103/ ../gcc-10.3.0/libstdc++-v3/configure \ CXXFLAGS="-g -O2 -D_GNU_SOURCE -fno-omit-frame-pointer" \ --prefix=/home/knudfl/BUILD__libstdc++103/usr \ --...


Top 50 recent answers are included