Skip to content
Advertisement

Tag: gcc

Getting lttng backtraces without liblttng-ust-cyg-profile

Is it possible to get backtraces from lttng without LD_PRELOADing liblttng-ust-cyg-profile and compiling with -finstrument-functions? I can’t see from the lttng code what it’s doing differently when pre-loading that library to allow a trace viewer (tracecompass) to show the backtraces!? Here’s my test app: test_tracepoints.h: test_tracepoints.c: test.lttng.c: I’m testing this with: Answer No, it’s currently not directly supported. But it’s

configure: error: no acceptable C compiler found in $PATH

I am trying to Build and Install the Apache Thrift compiler and libraries I had to type this command is shown in instructions ./configure && make But I get this error: When I type in my command prompt gcc –version I get this gcc (GCC) 5.3.0 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source

ld undefined reference, despite library found and symbols exported

Been fighting with this on and off for 48 hours now; I’m still getting undefined reference errors when attempting to link a dynamic library with its dependency – despite all exports existing, and the library being found successfully. Scenario: libmemory (C++) – exports functions with extern “C” libstring (C) – exports functions, imports from libmemory libmemory builds successfully: libstring compiles

How to cross-platform compile on windows for linux using gcc?

My aim is to create cross-platform C++ python modules. I’m usingCyther (cross-platform The Cross-Platform Cython/Python Compiler). Cyther uses GCC to compile modules and gives the user the ability to add GCC command-line args. So, I need run compiler on Windows, but compile for Linux. What args I must pass to GCC to compile a module for Linux (or other platform)?

Advertisement