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.).

1
vote
0answers
11 views

Will the dart codes for iOS be removed when compiling for Android?

I'm using flutter to write an app for both iOS and Android platforms. Some functions are not the same. For example: if (Platform.isIOS) { int onlyForiOS = 10; onlyForiOS++; print("$...
0
votes
2answers
76 views

Why Rust is faster than Ocaml in Performance, Even though first Rust compiler was implemented in Ocaml

I found that the initial compiler for Rust language was written in Ocaml. So what i thought was that Rust would be similar to Ocaml performance wise. But when I look at benchmarks Ocaml vs C++ and ...
0
votes
0answers
13 views

Getting the location of the generated file by Compiler API

How could I get the location (Path) of the .class file which has been generated by Compiler API? I.e The file is compiled by CompilationTask.call() Here's the code: JavaCompiler compiler = ...
0
votes
0answers
12 views

Sudden compiling failure with biblatex

I wrote a text using latex and biblatex in R (Windows 10 and on another machine Windows 7) as I want to include graphs in the output. I am not really sure what happened in the meantime but I used a ...
4
votes
1answer
81 views

How C++ compilation handles shared library and template

I once read somewhere that C++ essentially enumerates all of the possible template types based on usage at compile time so the concept of template doesn't exist during runtime. It also seems that's ...
0
votes
0answers
11 views

Nuitka compile python project that has sub-directories that contain needed files

I have a python project that has the following structure: I am using the following for compilation, python -m nuitka --follow-imports --standalone C:\Users\probat\Documents\main.py The project is ...
0
votes
0answers
22 views

Can't find a guide for building my own SWT dylibs

I don't know how exactly this problem is to be tackled but I have an Eclipse RCP (indigo) application which used to be deployed on Mac (10.6.8) Snow Leopard that must now be deployed on Mac (10.14.3) ...
-1
votes
0answers
21 views

Google Test Compilation errors

I am getting a compilation error when I include a very basic .h (only contains very very basic class without any implementation). Compilation errors are on gtest/msvc but I do not understand why ...
0
votes
0answers
19 views

Python 3.7.3 ./configure --with-openssl could not find ssl.h

I've downloaded Python 3.7.3 source code and want to make and install it with openssl support. From ./configure --help found that new option --with-openssl should point to folder that openssl-devel ...
0
votes
2answers
44 views

Can I compile a C program which depends of a library, but this library isn´t a .h file is a binary file, because it was compiled anteriority?

Hello everyone the problem is the next , I have a program in C (program_a.c) this program deppends some functions that it doesn´t have declarated in his body, because this functions are in another ...
4
votes
0answers
68 views

How to place C compilation output files (Linux kernel modules) in a different directory from the source files's (using Makefile)

I have looked at these and at these other solutions but cannot write the correct Makefile to produce my wanted result. So, I have this simple.c file. It simulates linux kernel module loading and ...
0
votes
0answers
12 views

i am having problems building my nativescript app in the cloud with nativescript sidekick

when i use Nativescript Sidekick to build my android app, i get and error which is [19-05-21 14:50:42.551] Build failed. TypeScript compiler failed with exit code 3221225477 Please can you help me ...
0
votes
0answers
6 views

Is it possible to use LLD.exe instead of link.exe in Visual Studio?

I've explored the linker options, but none of them allow you to change linkers. I was wondering if it's possible at all, or is link.exe tightly coupled with MSVC?
1
vote
1answer
25 views

Is it possible to compile a Jekyll site running on github?

I have a Jekyll site running on github pages. I want to transfer all the content on a private hosting that doesn't allow a Jekyll installation. Is there a way to "compile" the markdown and the ...
1
vote
0answers
46 views

How to distribute a a python script to users without them having to install python

I want to be able to compile my python script & associated files (a .py file with a few sounds and images + a .json save file) in a way that users can just download and play. I've already tried ...
-1
votes
0answers
41 views

GCC compiler and file name as argument in code

I made code in c++, and file name is taken as first argument in command line (filename.cpp in.txt). When i want to compile is using GCC it gives an error no input file. Can i somehow add this file as ...
0
votes
1answer
20 views

cx_Freeze : Importing modules fails

I would like to compile a Python3 project with cx_Freeze, but no matter what I do I can never import my own .py files. Here's my directory structure: projectname/ setup.py app/ code/ ...
-4
votes
1answer
58 views

How should I compile this old code with cc

I'm trying to compile source code, that from 2001, in Ubuntu 18.04.2 LTS. But, I got the errors below and actually don't know how I have to change the compiling code. Can you help me for compiling ...
1
vote
3answers
34 views

Is a semicolon required before a function closure in javascript?

I'm wondering if this is a compiler bug, or this is the way it's supposed to be. Using node.js v10.15.3, this code throws an error: var x x = false (function y() { console.log('foo') }()) But this ...
0
votes
1answer
37 views

Compile Module and Main Program In the Same File Using GFortran?

I am new to fortran and I have this fortran90 program I am trying to run where the module and the main are in the same file called main.f90: module real_precision implicit none integer, ...
2
votes
2answers
91 views

Is there a Rust interpreter?

I am just starting with Rust and was wondering: is a Rust interpreter? With an interpreter the Rust compiler would not need to compile all the source files every time it is invoked and would only ...
-1
votes
0answers
53 views

How to resolve ColdFusion 2018 compile issue?

I am getting a compilation error when trying to compile in my ColdFusion 2018 environment. No issues with ColdFusion 10 or ColdFusion 2016. Any help is appreciated! I am using the same version of ...
0
votes
0answers
24 views

Basic questions for Python beginner about compiling [duplicate]

I have never coded in Python and was given 2 files for an assignment, a .pyc as well as a .py file, and need to change the .py. How would I compile this correctly using another version of Python? The ...
-1
votes
1answer
26 views

undefined reference on compiling mysql-c code on linux

I want to write a c code, which does mysql queries. Found some websites on how-to. But when i try to compile I am getting undefined reference error. I am new to mysql-C any help would be welcome ...
0
votes
0answers
23 views

How can I generate multiple .java files using a script?

I recently finished a microservice project using entirely Java and Google's GRPC. Now, I believe that (for my purposes) entire future microservice projects could be created from a single script file ...
0
votes
0answers
14 views

Manual for using catkin tools and building with distcc

For now I use catkin tools build locally, but I want to do the build in the servers, I read that it is possible to use distcc for that purpose. I have installed distcc both in the client and the ...
4
votes
0answers
64 views

Linux latest stable compilation: cannot represent change to vmlinux-gdb.py:

The issue: It's been 20 years since: I last wrote >1K of C code compiled anything >10K source lines My current Distro's support (Ubuntu 16.04) for an 0cf3:e300 Atheros Communications, Inc. WiFi ...
-1
votes
0answers
22 views

(Solved) How to fix -lSDL_image not found

During Make I came across a problem /usr/bin/ld: cannot find -lSDL2_image /usr/bin/ld: cannot find -lSDL2_mixer I already have libsdl2-image and libsdl2-mixer. If I do: g++ -L /home/russell/...
0
votes
1answer
18 views

GTK_OBJECT was not declared in this scope when trying to transition to GTK3 (compile against gtk+-3.0 library)

I am beginning with GTK development, and I struggle. This first application took me 4 hours, I would like to know now if I am already doing too many obvious mistakes? Mainly I want to ask how do I ...
0
votes
1answer
24 views

How to make Visual Studio ignore some lines of code when compiling for one config but does not ignore when in other configs

I have a Visual Studio project in C++ where I need to build for 2 different configs/platforms. Each build config (let's say A and B) is using a different library. There is one cpp file in my project ...
1
vote
0answers
31 views

Is it possible to run custom clang tool on a translation unit and compile it at the same time?

As I stated in the title. I want to run custom clang tool on the translation unit while the compilation process is running. I want to take over this translation process and do a static analysis when ...
-2
votes
0answers
52 views

How compiler know which vfptr table belong to each class?

I wanted to know, if there is a way, to know how the compiler mapping the vfptr table to the classs. Im looking at a dump file with windbg, and i wanted to know is there is a way to know waht is ...
1
vote
0answers
47 views

gradle build failing with exception failed for task ':compileJava'. byteBuddy library issue

Hello and thank you ahead of time for any help. Firstly, I do know that other people have had this issue before and I've tried the solutions in all of their discussions and none of them have worked ...
2
votes
0answers
24 views

Hidden branching when using static variables in functions and thread safety [duplicate]

I encountered a behavior I didn't understand. Here is test code of a common singleton implementation, Code from the link: #include <iostream> using namespace std; class CFoo { public: ...
1
vote
1answer
49 views

Why Qt Creator can link dll correctly without .lib and LoadLibrary()?

Usually when we link to a dll, we must use .lib as well so that the linker can tell it is dynamic linking. However in Qt Creator we can do this without it. I followed the instruction on youtube, and ...
0
votes
2answers
27 views

At what stage does Typescript actually do compilation?

I'm reading that Typescript code is compiled in order to check types etc. Whenever I've written Typescript code, it seems to operate exactly like Javascript except that it checks types as you type ...
0
votes
1answer
7 views

Why am I getting a compile error in a new installation?

Brand new Windows 10 Pro system running 1809. Just installed Access via Office 365 (version 1904). We have a database that was originally created in 1998 and has been updated and working on other ...
0
votes
1answer
36 views

How to reduce the build time when a UWP project includes a lot of content files

I am developing a UWP project in C# using VS2017. I now have a requirement to add approximately 5000 image files (jpg & png) into the build so that they are included within the .appx bundle for ...
0
votes
0answers
18 views

Issue compiling EPPlus in VS 2013

Trying to use EPPLus for the first time. I downloaded it from https://github.com/JanKallman/EPPlus and I get errors while trying to compile the solutions on Visual Studio 2013. The first error I get ...
0
votes
1answer
55 views

Java Code Generation based on compiled Class files [closed]

I am trying to generate a wrappers for POJO classes that will contain some additional functionalities. So, for my case I need an ability to generate new java source code files based on compiled ...
-2
votes
0answers
21 views

hello when i compile opengl with all the dlls includes and libs i get this error message

this is my code: #include <iostream> #include <gl\GLU.h> int main() { std::cout << "Hello world"; return 0; } hello I am trying to build and run a simple test code coded ...
0
votes
1answer
17 views

How to compile source objects into another directory and then build an executable?

Good day. I am in a directory, where is Makefile and folders src and bin. How can I compile object files into bin folder and then build an executable file? I read some instructions and added $(BIN) ...
0
votes
0answers
21 views

How to compile for outdated kernel (2.4.5)

I'm working with a very peculiar environment: SH4 architecture, RedHat Linux, kernel 2.4.5. I'm trying to write a graphic application using Xlib that can run in this environment. I experimented long ...
1
vote
1answer
65 views

How to fix “the gcc compilation error (sys/ustat.h: no such file or directory) in archlinux?”

As of now, my archlinux system require current version of gcc (8.3) along with gcc 7.2 and gcc 5.5 (in some other path). I am trying to compile the source code as below: $ ./contrib/download-...
0
votes
0answers
21 views

My file when compiled with gcc gives me this: Python.h: No such file or directory ##[error] #include “Python.h”

When I compile my program with gcc it doesn't work... Error: [error]run.c:4:10: fatal error: Python.h: No such file or directory [error] include "Python.h" ^~~~~~~~~~ [error]compilation ...
0
votes
0answers
19 views

What role does plan 9 asm play in golang compilation process?

Although go tool can transfer go file to plan 9 asm, but the golang compiler will finally transfer go file to the executable file. So my questions are: Is the plan 9 asm the IR in the golang ...
0
votes
1answer
22 views

Inf2Cat DriverVer set to a date in the future

Am trying to compile microsoft XPS driver sample here but it keeps producing the below error 22.9.7: DriverVer set to a date in the future (postdated DriverVer not allowed) in package\xdsmpl.inf. ...
0
votes
1answer
29 views

Trying to compile an open-source program for Mac, failing to get Cocoa file requester and Menus working

I'm trying to compile XRoar for Mac OS High Sierra (https://www.6809.org.uk/xroar/). I've made a binary which runs and takes command-line arguments, but I have no Menus and no load/save file ...
0
votes
1answer
24 views

How to debug\compile\find errors in my JavaScript Code in 'script.js' file, in VS Code?

I am starting with web Development. I know basics of HTML and JavaScript.I'm working with VS Code. The problem I'm facing is that I cannot identify errors in my JavaScript code which i wrote in the '...
0
votes
0answers
31 views

Class has been compiled by a more recent version of the Java Runtime [duplicate]

So i have a project that requires me to create a program in Java. Since we are new to the language, out teacher advised us to write our code in Notepad++ and then type "javac Filename.java" and "java ...

http://mssss.yulina-kosm.ru