compilation

Cross-compiling GSL 1.16 for ARM

风流意气都作罢 提交于 2019-12-11 08:52:55
问题 I am trying to cross-compile the GNU Scientific Library (gsl, v1.16) for ARM architecture (specifically the Raspberry Pi). I have used the following to configure; CROSS=armv6j-hardfloat-linux-gnueabi ./configure --host=x86_64-pc-linux-gnu --build=$CROSS --target=$CROSS \ CC=/usr/bin/$CROSS-gcc \ CXX=/usr/bin/$CROSS-g++ \ AR=/usr/bin/$CROSS-ar \ RANLIB=/usr/bin/$CROSS-ranlib \ CFLAGS="-march=armv6 -mfloat-abi=hard -mfpu-vfp" I get the following error messages: libtool: compile: /usr/bin/armv6j

No warning for hiding non-virtual methods with similar prototype (G++ 4.4)

风流意气都作罢 提交于 2019-12-11 08:43:20
问题 In our projects it happens (rarely but it happens) that in a derived class a non-virtual method from the base-class is hidden by a method with the same prototype. In that case the compiler (in our case g++ 4.4) stays quiet. While I can see that no warning can be useful for private methods, for protected or public methods this should be at least a configurable warning. If such a things exists I'm unable to find it. Here's a small example I'd like to have g++ complain about (be assured that

Error when compiling with iReport-5.6.0 Java

我们两清 提交于 2019-12-11 08:31:53
问题 I have a problem with my report. It now come to try to make some changes, but it turns out I can not compile the report even without having changed anything. The error is pulling iReport : Error compiling the report java source! java.lang.NoClassDefFoundError: org / eclipse / jdt / internal / compiler / IProblemFactory at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run (IReportCompiler.java:498) at org.openide.util.RequestProcessor $ Task.run (RequestProcessor.java:572) at org

Ocaml unbound module

僤鯓⒐⒋嵵緔 提交于 2019-12-11 08:28:45
问题 I'm learning Ocaml language but i have a problem with my modules when i want to compile them. So, I have a module with the name Door and an other one with the name Case. Into each one, i have a type paramater with the other module : Door.mli type t = bool -> Case.u -> t Case.mli type u = bool -> Door.t -> u When i want to compile, i have this error : File "door.mli", line 14, characters 23-29: Error: Unbound module Case Have you got an idea ? Thanks you 回答1: You have two mutually recursive

How to build a shared and a static library without recompiling the sources with CMake

别等时光非礼了梦想. 提交于 2019-12-11 08:18:33
问题 I want to build both a static and shared version of the same library as described here. However, the sources are compiled twice, one for each version which is not necessary. Any ways of avoiding this ? 回答1: Depends on the platform. On Linux at least, you need to use different compiler flags to produce position-independent (shared library) than ordinary (program or static library) code. 来源: https://stackoverflow.com/questions/8912938/how-to-build-a-shared-and-a-static-library-without

Code::Blocks undefined reference to “*” [duplicate]

有些话、适合烂在心里 提交于 2019-12-11 08:15:59
问题 This question already has answers here : What is an undefined reference/unresolved external symbol error and how do I fix it? (32 answers) Closed 3 years ago . This question was migrated from Game Development Stack Exchange because it can be answered on Stack Overflow. Migrated 5 years ago . Like the title says, I'm getting multiple build errors using C::B, all are saying undefined reference to '*' . I'm trying to build a program using OpenGL, GLFW, and GLEW. The top three things that it cant

Compiling from Netbeans fails, but from terminal works

泪湿孤枕 提交于 2019-12-11 08:11:55
问题 I have a problem with having Netbeans compile the way I want to. I can't get Netbeans to compile my program. When I'm in the Ubuntu Terminal I can compile my program with the following command: gcc -L/usr/local/lib -I/usr/local/include/libxml++-2.6 -I/usr/local/lib/libxml++-2.6/include -I/usr/include/libxml2 -I/usr/include/glibmm-2.4 -I/usr/lib/i386-linux-gnu/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/i386-linux-gnu/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/i386-linux

Compiling static QT libraries with /MT using MSVC2010

 ̄綄美尐妖づ 提交于 2019-12-11 08:02:26
问题 I am trying to build QT libraries statically and with /MT (runtime static linking). I have followed the next steps: 1. Go to qmake.conf file and modify /MD to /MT in both release and debug configurations 2. I run configure command like this: configure -static -opensource 3. I run nmake The problem is that nmake fails a few seconds after running. Here are the last output: [..........] qjson.cpp qjsondocument.cpp qjsonobject.cpp qjsonarray.cpp qjsonvalue.cpp qjsonparser.cpp qjsonwriter.cpp

Install Numpy compiled for VS2010 for an embedded interpreter

我的梦境 提交于 2019-12-11 07:56:52
问题 Another of my queries about an embedded Python 2.7.3 interpreter on Windows. I need to install numpy and matplotlib as support packages for an embedded interpreter in a C++ program compiled in Visual Studio 2010. Some background: I've been trying to make this work for a few months. The main issue is that numpy for Python 2.7 is compiled against an earlier version of the MS C library (VS2008) whereas my application is compiled against the 2010 version (a fact beyond my control - that is the

Android Studio not compiling

你离开我真会死。 提交于 2019-12-11 07:46:50
问题 I'm having an issue that's taking me since yesterday morning to figure it out with no success. I'm really desperate right now to solve this. In the log console, at the bottom of the Android-Studio window I get this error: Error: Gradle: Execution failed for task':MyApplication2:mergeDebugResources'. >java.io.IOException: Cannot run program "/home/user/.local/android-studio/sdk/build-tools/android-4.2.2/aapt": error=2, No such file or directory But happens that the file is there. I've done