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

How to install g++6 and gcc-6 on Ubuntu 19.10?

I want to build R/Python packages like xgboost on my Ubuntu 19.10, but it requires g++-6 and gcc-6. My actualy version of gcc is 9. How I can install older version of g++ and gcc?

View Article


Compiling an assembly source on Mac OS and converting file to object/executable

I'm very new to programming and I had a question about compiling of assembly language on Mac OS. I know that to convert my .c to an .s I should use gcc -m32 -S. However, I already wrote my own .s file....

View Article


what are the approaches to create exception handler?

I want to implement handler for exception , but i don't know where i can start. The reason is that my qemu log file show me a lot of exception fault :DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000...

View Article

which is the latest C cross compiler for u-boot2019 and linux kernel?

i want to compile u-boot2019,but it is for gcc6.0+.*** Your GCC is older than 6.0 and is not supported I can only search for"arm-none-linux-gnueabi-gcc" and "arm-linux-gnueabihf-gcc" for 2014.Thanks in...

View Article

How to check the version of OpenMP on Linux

I wonder how to check the version of OpenMP on a Linux remote machine? I don't know where it is installed either.

View Article


How -fvisibility-inlines-hidden differs from -fvisibility=hidden in gcc

According to http://gcc.gnu.org/wiki/Visibility, With -fvisibility=hidden, you are telling GCC that every declaration not explicitly marked with a visibility attribute has a hidden...

View Article

Cannot Load C dynamic library with C Program compile with liblua.a (lua5.3)

I first download lua-5.3.5 , and put the source in my working directory and compile it with make linux so I got the liblua.a and lua binary file in ./lua-5.3.5/src.And then I write a C Dynamic Library...

View Article

Informix 4GL shared object using gcc compile error

I am trying to compile an Informix 4GL program into a shared object on Linux, but I am getting a compile error. If your not familiar with Informix 4GL, it generates 4gl code into C code, then it uses...

View Article


Restriction on child pointer of a restricted pointer?

The article mentions:Restricted pointers can be copied from one to another to create a hierarchy of pointers. However there is one limitation defined in the C99 standard. The child pointer must not be...

View Article


How do I remove the bad cast HINSTANCE to int?

I'm compiling a program on gcc by using -Wbad-function-cast flag. The gcc show the following warning: cast does not match function typethis is line of warning: int ret = (int)FindExecutable(file, NULL,...

View Article

Fail to change CS register value from kernel mode. invalid opcode: 0000

From module code with this snippet I'm trying to change the value of CS register:asm("pushq %rax"); asm("mov $0x10,%rax"); asm("mov %rax,%cs"); asm("popq %rax"); Actually the CS register contains...

View Article

What is the correct way to static link libc?

I've seen a bunch of questions here and on other forums where the suggestion is to use -static or sometimes even -static -static-libgcc along with the compile arguments. This never works on Alpine, but...

View Article

no member named 'str' in 'std::basic_ostream' with gcc and clang, but no...

This code snippet (https://gcc.godbolt.org/z/hKDMxm):#include <iostream> #include <sstream> using namespace std; int main() { auto s = (ostringstream{} << "string").str(); cout...

View Article


Can't link against libSystem.tbd

I'm getting an error when I try to build a JNI Shared librarym082166@R5191920 $ gcc-9 -fopenmp -I"$JAVA_HOME/include" -I"$JAVA_HOME/include/darwin/" -o libjni.jnilib -shared c_src/My_Java.c ld:...

View Article

How to link against symbolic link .so libraries with version numbers using g++?

I am right now trying to compile a single .cpp file with g++ that shall use the following shared object libraries:libtensorflow.so libtensorflow.so.1 libtensorflow.so.1.14.0 libtensorflow_framework.so...

View Article


Reduce g++ RAM usage

I haven't really found a solid answer to this question other than "get more ram". Is there a way to reduce the memory used by g++ during the compile process? I am (for reasons) trying to compile...

View Article

How to distinguish armhf (ARMv7) and armel (ARMv4) in C code?

In the executable I'm writing I have 2 implementations of the same function, one for armhf (fast) and one for armel (slow). At runtime I'd like to detect the CPU type, and call the armhf implementation...

View Article


Can't compile C program on a Mac after upgrade to Mojave

I have used the gcc command on the terminal to compile C programs but all of a sudden, after an update to my Mac's OS (to macOS 10.14 Mojave, and XCode 10.0), I started receiving the...

View Article

What's the right behavior when overloading operator delete without...

The following code behaves differently with clang (version 5.0.0-3~16.04.1 on x86_64-pc-linux-gnu) and gcc (9.2.0).void operator delete(void* ptr) noexcept { std::cout << "overloaded...

View Article

Configuring OpenDDS

I am trying to configure the environment for OpenDDS, but I could not run the configure script. Would really appreciate much, if there are any insight from you guys. =D So basically, after I download...

View Article
Browsing all 22113 articles
Browse latest View live


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