Questions tagged [compilation]

Compilation is the transformation of source text into some other form or representation. The most common usage of this tag is for questions concerning transformation of a programming language into machine code. This tag is normally used with another tag indicating the type of the source text such as a programming language tag (C, C++, Go, etc.) and a tag indicating the tool or compiler being used for the transformation (gcc, Visual Studio, etc.).

0
votes
0answers
17 views

PKG_CONFIG_PATH can't be seen by configure

I'm using Cygwin to compile a MinGW version of FFmpeg (I already use Cygwin so it didn't make sense to use anything else to build). I was originally getting an error that someone on the Doom9 forums ...
0
votes
0answers
7 views

PMD/Checkstyle reports during compilation Gradle

I am trying to generate PMD and Checkstyle reports during the compileJava and compileTestJava tasks in my gradle build. By default, the PMD and Checkstyle plugins only report bugs during the check and ...
0
votes
0answers
33 views

How to ignore some classes during scala compilation

I am running sbt in my console where i can enter commands compile run test ... But as a default these commands always compile every single class they see in your project. The thing is sometimes you ...
-1
votes
1answer
11 views

Unable to compile with netstandard in VS2015

i have an issue wich i am not able to fix since hours. Since i did some folder changes i am no more able to compile anything. Started with giving some weird errors (round about 14000 pieces) about ...
0
votes
1answer
36 views

How to add linker directory in cmake? [duplicate]

I am using clion for my c++ project. The command I need to run is: g++ server.cpp -L/usr/lib -lssl -lcrypto -o server I have tried: SET(GCC_COVERAGE_LINK_FLAGS "-L/usr/lib -lssl -lcrypto") ...
0
votes
1answer
25 views

How to catch skipped tokens with antlr?

I've been playing around with antlr to do a kind of excel formula validation. Antlr looks pretty nice, however, I have some doubts about the way it works. Imagine I have a grammar that already knows ...
1
vote
0answers
44 views

Compile C on single machine and use it on cluster

I'm a newby in C and it's the first time that I've to run a program on cluster and I've an (embarrassing) question. The question is can I compile my C code on my machine and use it later on the ...
0
votes
0answers
3 views

How to modify github retinanet pytorch release

I would like to modify the nms module/function within retinanet. How can I compile and run any modifications I make to retinanet? Thanks, Andreas
0
votes
0answers
38 views

A code that I wrote worked before and now it doesn't , it included weird libraries that I did not write

I am a college student, we had a big project to do, an assembler, in c language, we were working with ubuntu. I finished the project, sent it, removed ubuntu and installed windows, then I downloaded ...
0
votes
0answers
8 views

How can I compile and fix this Bind Error in Ubuntu?

I am trying to compile a code from a third person that I know it was working in a different computer with this installed: CentOS 6 64-bit gcc with full C++14 support. They were using 5.3.1 kernel 2....
-1
votes
0answers
18 views

How can I convert a python code into a .dll file? [duplicate]

I want my python code to be made into a .dll file so that other programs can just "import" the .dll file and use it.
1
vote
0answers
26 views

Compiling with objective-c file in Swift project

I am working with a framework that is using the Obfuscate. The framework is using a header file to do the obfuscate. E.g file : #define funcOne JJmYVBhJqZYKCTJJrEsEr #define funcTwo ...
1
vote
1answer
63 views

Is this a static build?

Firstly, forgive me for my ignorance on this topic - I'm new to compiling as a whole and far from a programmer, and I'm trying to understand the concept of static vs shared builds/libraries. I've ...
1
vote
1answer
27 views

Cannot run a scala script (fpmax by jdegoes)

Here's a brilliant web talk by J. A. De Goes: https://www.youtube.com/watch?v=sxudIMiOo68 - highly recommended for everyone interested in functional programming And here's accompanying code gist: ...
0
votes
1answer
20 views

How do I access save-temps option in Visual Studio?

I am a complete programming (and generally IT) noob and I am learning C++ using Visual Studio environment. I would like to explore the compiler, and see my temporary files (ending with .ii, .s and .o)....
0
votes
0answers
23 views

How do I AOT compile multiple dependent functions using numba?

I want to compile functions Ahead of Time (AOT) using numba.pycc.CC. My issue is that, I have 3 functions across 2 scripts (where one main function depends on the other 2), and I only want to export ...
0
votes
0answers
29 views

Is there a cl or gcc option to treat “strings” as const wchar_t pointers rather than const char pointers?

I am looking for an option to treat "strings" in a C source unit as const wchar_t*, that is, the compiler should treat such strings as though they were prepended with an L (L"strings"). As far as I ...
0
votes
2answers
36 views

How to run several class files in cmd written in java?[SOLVED] [duplicate]

package emailapp; import java.util.Scanner; public class Email { private String firstName; private String lastName; private String department; private String password; private String ...
0
votes
0answers
17 views

What is the order of reference models in Simulink?

I have a Simulink "top" model which contains several reference models. Reference models have I/O interaction. How can I get the order of which these reference models are "sequenced" by Simulink? This ...
0
votes
1answer
31 views

How to run Go compiler from another Go application

Are there any options to run Go compiler and build some package from another Go application without resorting to os/exec interfaces? Does Go toolchain provides any API for that?
-2
votes
2answers
36 views

Why Do Interpretors Compile the Code Everytime a Program is Run?

My question is about all interpreted languages, but to illustrate my point better I will use Java as an example. What I know for Java is that when programmers write their code they have to compile ...
0
votes
0answers
15 views

What do all of the “extra flags” variables stand for?

When compiling, and specifically at the ./configure stage, remembering that --extra-cflags stands for extra compiler allows me to remember that option helps me pass extra options to the compiler I'm ...
0
votes
1answer
15 views

Problem with Makefile compilation on Ubuntu, -lhidapi-libusb library

I have a slight problem with a Linux module compilation. No matter where I put a -lhidapi-libusb library reference in the make command, the module just refuses to compile. I know I'm doing something ...
0
votes
1answer
16 views

Python converted to .exe (via Pyinstaller) doesn't work

I convert a simple print("Hello World") code form Python to .exe with Pyinstaller (with the comand pyinstaller -wF) and apparently it creates the file properly. However, when I execute it, nothing ...
0
votes
0answers
11 views

How to bypass errors when compiling a C code on macOS

I am an IT student and for my studies I need to (to compare C and Java), compile a code on my machine using gcc. The problem is that macOS isn't letting me because it actually prevents an out of ...
0
votes
0answers
27 views

R package build failed when checking examples

I am building my R package. However, when compiling it using CMD, the build fails because of the examples. I show you my function header for clarity: #' @param data a dataframe containing the data to ...
0
votes
1answer
12 views

ARC enabled for Qt project on MacOS

I am developing a Qt application for macos. That application uses some objective-c++ files. I would like to know if ARC is enabled in the build. In flag QMAKE_OBJECTIVE_CFLAGS I am neither adding ...
0
votes
1answer
18 views

What does this mean: “OpenSSL 1.1.0g 2 Nov 2017 (Library: OpenSSL 1.1.1a 20 Nov 2018)”

I use Ubuntu 18.04 which is shipped with OpenSSL 1.1.0g. I have been trying to link manually compiled python from source to a manually compiled OpenSSL1.1.1a from source. I do not intend to ...
0
votes
0answers
16 views

kernel compilation error on Debian testing

I have been trying to compile Debian kernel 4.19 on a 64 bit machine. I used the procedure which I has successfully used before on another laptop, but this time I keep getting an error. After ...
3
votes
1answer
75 views

How do I convert a String to runnable code? (in Unity)

I'm making a little game in unity and right now I'm trying to build the quest system. This game is going to be a simulation, so there's a huge amount of different data classes / systems the quests are ...
3
votes
0answers
58 views

Is it possible to compile NumPy into a single library?

I have a use case where I want to deploy an application on end-user machines that don't necessarily have Python installed. Most of the application is written in Python, but the entry point is a legacy ...
-1
votes
1answer
39 views

How much does a compiler affect the outcome of source code? [closed]

Let's say you have two identical C files, run on two identical CPU architectures, but with two different compilers. The C files are moderately complex with the use of pointers, multiple threads, and ...
2
votes
3answers
27 views

Why exponential enum keys are used here?

Here you can find this code: enum NodeFlags { None = 0, Let = 1, Const = 2, NestedNamespace = 4, Synthesized = 8, Namespace = 16, ExportContext = 32, ContainsThis = 64,...
0
votes
0answers
8 views

How to solve this compiling bind error in Ubuntu? [closed]

I am trying to compile a code from a third person that I know it was working in a different computer with this installed: CentOS 6 64-bit gcc with full C++14 support. They were using 5.3.1 kernel 2....
0
votes
0answers
4 views

protoc on macOS - archiving precompiled binary

I need to use a protobuf v2.2 on macOS. I am able to compile and install it from sources by running the following commands: $./configure $make $sudo make install $which protoc -> /usr/local/bin/...
0
votes
0answers
32 views

How do I update ARCHS build settings to remove i386 architecture (Xcode)

Recently I have been trying to compile EyeWriter 2.0 from Instructables but its software is too old. We are using C++ OpenFrameWorks and Xcode to compile it. Here is the original file https://www....
1
vote
1answer
21 views

Java “method does not override or implement a method from a supertype” error

When i try to compile the following code using javac or gradlew I got the error method does not override or implement a method from a supertype @Override The error happened to the two @Override ...
0
votes
1answer
23 views

Laravel webmix JS compilation issue in order with Vue Component

I am facing issue in compiling js in order wise. I would like to compile library or custom js first but issue is laravel webmix compile Vue component first instead of custom js. So when I run the ...
0
votes
0answers
5 views

Gradle, avoid sub-module build

I have a sub-module in my gradle project for which the build fails on purpose. I know it sounds strange but that's the desired outcome, it's a bit like a JUnit test, but at compile time. Now my ...
0
votes
1answer
14 views

Unable to build glibc

I'm trying to build glibc 2.27 as a static library from sources on Ubuntu 18.04. This is the command I am using(after making a separate build directory for glibc): $ git clone git://sourceware.org/...
1
vote
0answers
59 views

Improving fortran compiler performance (Compile time and memory)

I have a cross platform project built with cmake and make or visual studio with primarily Fortran source code. The source files vary in size from on the order of 1000 lines (10s to 100s of KB) to the ...
0
votes
0answers
15 views

Is there a way to automatically compile the changes I make in a script using GCC?

I am new using Linux and compiling my C scripts with gcc, I am using sublime text to write the code but every time I change something I have to go to the terminal and write the commands to compile ...
0
votes
1answer
34 views

Compile and Run with highly-optimized fork of ANTLR 4

How do i Compile and Run my grammar with highly-optimized fork of ANTLR 4 highly-optimized ANTLR4
0
votes
1answer
61 views

C++ compilation issue on class vector

I am having a hard time with the compilation error as shown below. I am currently looking at what could potentially be changed to fix the error. Could anyone here tell me what I need to change? The ...
0
votes
2answers
42 views

G++ and CL(VS2017) both compiled successfully but the cl-compiled executable run abnormally

I write a LinkedList class and a test function to test my class. However, I met some problems while compiling and running my program. There are three files: test.cpp LinkedList.cpp and LinkedList.h. ...
0
votes
0answers
11 views

How can I get glibc as a static library?

I want to compile a program and statically link it to glibc, so it can run on other Linux distributions without the user having to do any special configuration. I tried using CFLAGS="-static -static-...
0
votes
0answers
7 views

Will explicitely named conditions generally be inlined?

This might be too broad, since I'm not talking about a specific language, but since it is such a basic concept it might be universal. Is this: too_long = array.length > MAX_LENGTH if too_long; ...
1
vote
0answers
75 views

How can the compiler reference its own output

"foreach" is a keyword of Java language and when compiler encounters this keyword in the source, it knows that the collection following this keyword must implement "iterable" interface. The "iterable"...
-1
votes
0answers
29 views

Sourcecode protection of Django application

i know there are already several post about this topic floating around the web but i would like to maybe get some state-of-the-art context here. I want to protect the source code of my django app. ...
1
vote
0answers
46 views

Android Studio 3.3.2 kotlin Compiler Warning

I am using, Android Studio Version - 3.3.2 minSdkVersion 19 targetSdkVersion 27 Kotling plugin : apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-...

http://mssss.yulina-kosm.ru