Agora On-Premise-Recording-Nodejs build.sh Error in Dockerfile
I'm encountering build issues with Agora's On-Premise-Recording-Nodejs in a Dockerfile setup. The build.sh script throws multiple C++ warnings related to variable initialization order in...
View ArticleGDB pretty printers in Almalinux 8
Has anyone managed to set up pretty printers for gdb in Almalinux 8?printers.py is nowhere to be found when I install gcc-toolset. I had it working in centos-7 by installing a devtoolset and then in...
View ArticleCmake target_compile_options with PRIVATE sets compile options for linked...
Im using target_compile_options to set compiler options for the executable file:target_compile_options( main_full PRIVATE ### Gnu/Clang C Options...
View ArticleHow To solve "version 'B32*', prefer 'A83*'" error while running Gcov command...
I am trying to generate coverage using Gcov.but i am getting below errorXXX.gcno:version 'B32*', prefer 'A83*'XXX.gcno:no functions foundXXX:version 'B32*', prefer version 'A83*'Please help me to find...
View ArticleNetBeans 15 - C++ development (CCLS, GCC)
I want to start C++ development with NetBeans 15, on Lubuntu Kinetic Kudu (22.10).I installed first build-essentialsudo apt install build-essentialg++ --versiong++ (Ubuntu 12.2.0-1ubuntu1) 12.2.0gcc...
View ArticleMissing function "__libc_init_array" in libc.a GCC 14.2.0 arm-none-eabi
I built the GNU GCC C\C++ ToolChain for ARM-none-eabi under Wiondows11 and MSYS2 using the most up-to-date components:binutils-2.43GCC-14.2.0 nnewlib-4.4.0GDB-15.1I have a problem compiling an ST...
View ArticleIs there a 128 bit integer in gcc?
I want a 128 bit integer because I want to store results of multiplication of two 64 bit numbers. Is there any such thing in gcc 4.4 and above?
View ArticleGcc vs clang difference in qualified class member lookup within template
The following code produces different results when compiled using gcc 14.2 or clang 19.1:namespace mylib { template <typename Type> void Function(const Type& t) { // Note: explicit Type::...
View Articlecompiler gives error ld terminated with signal 11
I am trying to compile a simple hello program using gcc, but getting the below error. i am using ubuntu.gcc -g -o hello hello.ccollect2: fatal error: ld terminated with signal 11 [Segmentation fault],...
View Articlelong double (GCC specific) and __float128
I'm looking for detailed information on long double and __float128 in GCC/x86 (more out of curiosity than because of an actual problem).Few people will probably ever need these (I've just, for the...
View ArticleHow do I list the symbols in a .so file
How do I list the symbols being exported from a .so file? If possible, I'd also like to know their source (e.g. if they are pulled in from a static library).I'm using gcc 4.0.2, if that makes a...
View ArticleHow can I use gcc to compile x86 assembly code on an x64 computer
For a school assignment I have to write x86 assembly code, except I can't use gcc to compile it since my computer is an x64 machine, and gcc is only excpecting x86 code. Is there a command that'll make...
View ArticleOfficial SEH example does not compile with mingw-w64
Hi I got this example from https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/set-se-translator?view=msvc-170// crt_set_se_translator_clr.cpp// compile with: cl /W4 /clr...
View Articlesize optimization in xcode LLVM
I am compiling a C library with xcode 4.5.1 on os x 10.7.5.The size of the library compiled with xcode LLVM is significantly bigger than when I just compile it using plain gcc with makefile passing the...
View Articlehow to make executable executing within one specific directory only...
how to prevent tool (executable) executing from any other directories except specified one? May edit tool source code and recompile it. Linux-based OS.
View Articlegcc compilation error on simple short int function call with flag...
Compiling this C program with gcc 11.4.0 and -Werror=traditional-conversion raises an error:short int f(short int x);short int f(short int x) { return x;}int main(void){ short int a = 0; f(a); return...
View ArticleHow to link with static libraries when building an R package
I'm creating a package that is going to be used by R (the statistical program), I'm not an expert using this application but I have managed to create a very simple package, using the following logic, I...
View ArticleQuestion about storing array in a std::vector in C++
I am unclear about the following.First, this code compiles fine:#include <vector>typedef struct{ int x1,x2,x3,x4;} ints;typedef std::vector<ints> vec;int main(){ vec v; ints a = {0,1,2,3};...
View ArticleHow i can static build GDB from source?
I've download gdb-6.5.bz2.tar. Untar this file.I write:LDFLAGS=-static ./configurebut as a result i get a gdb, which require a so files, for instance: ncurses.so.5 libc.so.0 etcHow i can build...
View ArticleThe proper way of forcing a 32-bit compile using CMake
Sorry that there are many similar questions, but I do find that Googling for CMake queries always yields similar-but-not-the-same scenarios, conflicting CMake commands and so on!I need to force my...
View Article