gcc command in Mac returning error after removing Xcode
I am having this error when I run gcc, cc or clang on my Mac 10.13:xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist Use `sudo xcode-select --switch...
View Articlethere's a problem while doing cross compilation using crosstool-ng
I am trying to cross compile gcc for taget=powerpc7448 and the host system is linux,I downloaded crosstool-ng and extracted also after this I am configuring with the command ./configure --prefix=,but I...
View Articleinline function in namespace generate duplicate symbols during link on gcc
I have a namespace with inline function that will be used if several source files. When trying to link my application, the inline function are reported as duplicate symbols. It seems as if my code...
View Articleundefined reference to function? [duplicate]
I have installed an API for my Linux 18.04. After doing it I have the headers gclib.h and gclibo.h in the include and lib folders:root@ubuntuadmin-Vostro-3559:/# locate gclib /usr/include/gclib.h...
View ArticleWhere is the header file on Linux? Why can't I find ? [duplicate]
Possible Duplicate:How to implement getch() function of C in Linux?What is the equivalent Linux version of the conio.h header file from MS-DOS?Is there a way to replace its functionality? e.g....
View ArticleError Freeing memory from a double pointer inside a struct [duplicate]
#include <stdio.h> #include <string.h> #include <stdlib.h> struct Exploded { char ** tokens; int rows; int cols; }; void resetExploded(struct Exploded *exploded) { int i; for(i = 0; i...
View ArticleComparing a bit to a boolean
Seemingly simple question: Say I have a set of flags, encoded in a uint16_t flags. For example, AMAZING_FLAG = 0x02. Now, I have a function. This function needs to check if I want to change the flag,...
View ArticleGCC: How does StackGuard insert the StackCanary between the buffers and the...
I'm researching how StackGuard works to prevent buffer overflow. In particular I would like to know how such a code would be transformed by the gcc compiler to insert the canary stackvoid...
View ArticleUndefined reference to Magick when trying to build Octave with GCC
I'm trying to build Octave 4.2.2 on an Ubuntu 16.04 with GCC 4.9.3 but I get this error :libinterp/.libs/liboctinterp.so: undefined reference to `Magick::CoderInfo::CoderInfo(std::string const&)'...
View Articlegcc-arm-linux-gnueabi command not found
I am trying to install the gnu arm toolchain for ubuntu. I first downloaded the tar from CodeSourcery. However when I go into the bin folder, I cannot run any of the binaries. I have tried with ./ and...
View ArticleUnable to run asm program on macos
I am trying to run this asm file on my MacBook but I am getting the following warnings and errors:ld: warning: option -s is obsolete and being ignored ld: warning: platform not specified ld: warning:...
View ArticleGCC Preprocessor how to replace #define with empty line
I'm trying to use the GCC Preprocessor with Javascript source code.I would like achieve the output below from this input: Line 1 Line 2 #define ASDF 'asdf' Line 3 Line 4 var asdf = ASDF Output:Line 1...
View ArticleProblems with import "C"
I'm trying to get GO to compile a simple test script on Windows 10 using GoLand but am running into problems. Here is the code:package main import "fmt" import "C" import ( "math" ) func main() {...
View Articleexecute shellcode not on the stack (buffer overflow)
Is it possible to execute your shellcode not on the stack? Is there another way to execute the shellcode? Thanks in advance
View ArticleHow to turn on (literally) ALL of GCC's warnings?
I would like to enable -- literally -- ALL of the warnings that GCC has. (You'd think it would be easy...)You'd think -Wall might do the trick, but nope! Still need -Wextra.You'd think -Wextra might do...
View ArticleInstall cytoolz without gcc
Is it possible to install cytoolz without gcc? Cytoolz requires gcc to be installed, however, we have a server that is not allowed to have gcc installed.Python -V = 3.6.4
View ArticleClion Cmake Static Library link -static-libgcc -static-libstdc++
I'm using centos 8 GccUsing built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target:...
View Article'gcc' could not be spawned. Is it installed and on your path?
'gcc' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.Facing this error in Atom editor while compiling C++ program with gpp...
View ArticleCodeblocks vs Repl.it
#include "stdio.h" int main(void) { int arr[5] = {25,26,78,98,108}; int n = 5; int key = 655; int position = 3; for(int i = 0; i < 5; i++){ printf("arr[%d] = %d\n", i, arr[i]); } for(int j = n-1; j...
View ArticleLinux shared library init & deinit when also using c++ static initializer
I want to have automated calls to initialize and deinitialize my shared library.In my shared library, I need some static initialization of C++ objects, among others because of use of third party code...
View Article