Questions tagged [compilation]

1

votes
2

answer
424

Views

How to make Makefile recompile when a header file is changed?

I have written a Makefile to compile an openCV program on OSX (more general in Unix systems). The code has a header named constants.hpp where some constants are defined. I would like to make the Makefile recompile the program when this header file changes because the values of the constants in it ch...
Francesco Boi
0

votes
0

answer
5

Views

Powershell cannot use database view unless recompiled

Powershell program on Widnows server 2012 performs some database operations in Oracle database using regular Oracle client. Database is XE 11g. Program first retrieves data from a view and then loops through recordset and sends processed data to SQL server using its client. The problem is it sees so...
some1
1

votes
1

answer
29

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: https://gist.github.com/jdegoes/1b43f43e2d1e845201de853815ab3cb9 When I run $ scalac fpmax.scala, it com...
Vasily802
1

votes
1

answer
1.8k

Views

Cython throws SyntaxError on cdef-class

I want to create a simple class with the cdef statement, but it shows me a SyntaxError. cdef class MyClass: pass This is my self-written cy-compile script. Yes, I'm sure the script is not causing the problem. What the heck is wrong here ?! Thanks :) EDIT: My file was name .py and not .pyx and this c...
Niklas R
1

votes
2

answer
245

Views

How does GC work without a separate runtime or VM?

My understanding is that executables of applications written in Go can stand alone without the need of Go installed in the machine. Normally my understanding is that the GC (Garbage Collection) is handled by a VM. In this case, if the application is running independently without such a runtime how...
Vipin Menon
1

votes
2

answer
47

Views

Is it normal for some C expressions allowed in its grammar, not to be allowed when compiled in practice?

I was studying the C grammar: http://www.quut.com/c/ANSI-C-grammar-y-1999.html#unary-expression There's this rule assignment_expression : conditional_expression | unary_expression assignment_operator assignment_expression ; And unary_expression : postfix_expression | INC_OP unary_expression | DEC_...
Tiago Oliveira
-1

votes
0

answer
15

Views

.java file showing unreadable characters

i was performing class file to exe conversion using jsmooth, may be due to misconfiguration Jsmooth gave and error and i closed it. now my original Main.java file is showing unreadable characters and my whole code is gone :( i have compiled it before using javac Main.java (using Windows PowerShell)...
Junaid Ahmed
1

votes
1

answer
40

Views

Is it possible to apply type erasure to returned value in protocol?

Okay now, the title might be a little bit ambiguous, but basically, what I'm trying to achieve is the following: Let's say I have two classes that I use to fetch data from backend and they both cache the fetched data, thus, they both have an invalidateCache() method. Since they are used for data fet...
Dan Karbayev
1

votes
0

answer
61

Views

Roslyn compiler causes recycling of application pool during compilation

I have a fairly large ASP.NET website with Roslyn compiler installed. I have also app pool recycling enabled for 'private memory usage' (IIS 10, limit set to 4GB). I was wondering why my website recycles with event log message ID 5117 A worker process serving application pool 'pool_name' has reques...
mivra
1

votes
1

answer
800

Views

How to validate Elasticsearch Painless scripts?

We use many ScriptQuery and ScriptField in our project, and provide inline scripts for them in painless language. My question is, how can we validate these painless scripts? In other words, how to make sure that they will compile? The approach we use today is to test them out locally through Kibana...
Sunil Purushothaman
1

votes
1

answer
319

Views

Visual Studio hangs and crashes on build error

A few days ago Visual Studio 2015 started dying on me when compiling. If the build is successful it takes forever to compile and Visual Studio hangs. If the build fails Visual Studio kindly hangs and then I get a message saying the program has stopped: This has never happened before and my work has...
Shy Agam
1

votes
2

answer
127

Views

Prevent same macro having different definitions in multiple translation units

I'm creating a library that will need different command-line defined macros (-D option) per resulting binary (.exe, .so, .dll) that uses it. I would like to ensure each translation unit that will be a part of resulting binary, was compiled with the same macro definition. This is to e.g. prevent acci...
stoper
1

votes
0

answer
344

Views

Edit priv-app / SettingsProvider / SettingsProvider.apk

I am new by editing Android ROM. I want to change just one configuration in SettingsProvider.apk. I know how to decompile the apk, the xml file that I need to change and how to compile again. For all this work I use apktool. Also, I learned how to generate a keystore and how to sign an apk but after...
Argenis
1

votes
0

answer
75

Views

Compiled ADB from source has big file size

I want to recompile adb from source, I downloaded the whole android source (using repo) and from root directory I send 'make adb' command to build adb (I use USE_MINGW=1 to build for Windows too). The problem is that the output file (both adb for linux and adb.exe for windows) is about 17MB, which i...
Francesco
1

votes
1

answer
84

Views

What are the temporary 'object' files (with alphanumeric file extensions) that are created during C compilation?

When I compile my C program I get certain files that are created temporarily for each object file. These temporary files are entitled utilities.o-fb62414b etc (i.e. something.o-suffix where 'something' is my object file and the suffix is alpha numeric characters). I can't find a description of the...
p-robot
1

votes
0

answer
77

Views

Issue dynamically Compiling VB code

When I compile VB code using CodeDom, I need not specify fully qualified path for system references. For example: Dim param As New CompilerParameters param.ReferencedAssemblies.Add('System.dll') works as expected. But when I do the same using roslyn, it is expecting me to give a fully qualified path...
Anoop
1

votes
0

answer
59

Views

Is it still true that external include-guards lead to faster compiling times in large C++ projects?

Let me start by defining what is usually called 'external include-guards'. Suppose you have a header file called someheader.h and a code file called source.cpp. You can have the traditional include-guards inside someheader.h: //someheader.h #ifndef _SOMEHEADER_H_ #define _SOMEHEADER_H_ // ... #endif...
Jorget Millani
1

votes
0

answer
59

Views

Added OClint to Obj-c code. But it is not showing warnings

I tried adding oclint to Xcode referring to this Doc link Followed the sane steps as shown in the link. But I see no warnings. Can somebody help me out here?
Deepa
1

votes
0

answer
85

Views

Issue using 'My.Computer' with roslyn

I am trying to compile VB code using Roslyn. Some of the files use My reference like: My.Computer.FileSystem.FileExists(ExtraPath) While compiling code I am getting the error: error BC30456: 'Computer' is not a member of 'My'. I am not exactly sure what I am missing. I did create a MetaDataReference...
Anoop
1

votes
0

answer
91

Views

Roslyn slower than CodeDom

I am using Roslyn to generate a runtime dll using a number of VB files on disk. I am first creating syntax trees from all those files and then using them for creating VBCompilation and them emitting the assembly. The whole process takes ~ 10 min. Creating syntax trees takes up a significant portion...
Anoop
1

votes
0

answer
279

Views

Error Building Qt from Source on Windows

I am trying to build Qt 5.10 from source on Windows. I think I have all the dependencies installed following : http://doc.qt.io/qt-5/windows-building.html However, I am facing a really weird issue. The configuration I use is : configure -skip webengine -nomake examples -nomake tests however 'jom' se...
Prateek Khatri
1

votes
0

answer
163

Views

Visual studio 17 build fails when it is done by PowerShell script

I have following ps script:- function buildVS { param ( [parameter(Mandatory=$true)] [String] $path, [parameter(Mandatory=$false)] [bool] $nuget = $true, [parameter(Mandatory=$false)] [bool] $clean = $true ) process { $msBuildExe = 'C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe' if ($nuget) {...
masiboo
1

votes
1

answer
53

Views

Disassemble symbols on shared object file

I've a shared object xlib.so file built with Android-NDK which I need to deliver. I don't want it to be reverse engineered. I tried to use 'objdump' and created a disassembled version where I can see something like which seems like sort of function labels in front of addresses. Can I get rid of...
pilogo
1

votes
1

answer
75

Views

Typescript Generic type makes compilation error

I've got a case where i need to get a hierarchy between differents class of items. They all extend the same class ItemExt. I'm using Typescript 2.4.2 Here is my Code : export class ItemCollection { constructor(private typeClass: { new (): ItemSon; }, parent? : ItemFather, fatherColl? : ItemCollectio...
rdecla
1

votes
1

answer
429

Views

Cmake toolchain for 32-bit MIPS processor

Need to run an Azure IoT SDK C sample on an Axis camera. Using the standard cmake to build the samples does not work, as they are compiled for 64-bit x86_84. Need it to be compiled to MIPS32. Eugene Sh. suggested making a toolchain file for it. I've written one now, but it fails at 16% with the foll...
Kagemand Andersen
1

votes
1

answer
240

Views

Unable to locate Python.h despite having it in the system (Ubuntu 16)

I have Anaconda 3.6 and I'm trying to compile Pycaffe (from Caffe framework) but I get the following error: python/caffe/_caffe.cpp:1:52: fatal error: Python.h: No such file or directory I have installed the python-dev packages specific to Python 3.6 with sudo apt-get install python3.6-dev and when...
J. Devez
1

votes
0

answer
63

Views

Creating standalone executable from a NetLogo model

I have a NetLogo model. I want to have a standalone executable with the same/similar interface and behavior. I want the user to be able to run my model without downloading/installing NetLogo first. Is there a way to do this? Or is there a programming language or framework to which I can easily trans...
Muhammad Nizami
1

votes
1

answer
86

Views

Building libFLAC 1.3.2 for iOS

I'd like to integrate FLAC support in an iOS audio app so I need to build libFLAC 1.3.2 for iOS targets, and I've been stuck on that for a while. I tried to adapt Chris Ballinger's libOpus building script. I managed to take care of the dependency on libogg by downloading and extracting libogg 1.3.3...
LeT0C
1

votes
1

answer
50

Views

How to provide exteranl jars at runtime while invoking the .class file

I am trying to compile and run a java class at run time in eclipse which uses an external jar example : JSON library in this case. I have successfully compiled the java code but when i am trying to invoke the method, it is giving me following error java.lang.reflect.InvocationTargetException And it...
Prakhar Agrawal
1

votes
0

answer
130

Views

Visual Studio project dependency

My background is in Java, and I will start working on a project written in Visual C++. This Visual C++ project is dependent on several other internal and external projects. Most of them are internal company's projects and exist on my organisations internal Git repository. And some of them, while ext...
andreas
1

votes
1

answer
312

Views

about Build.VERSION.SDK_INT

From the android.jar source code, the SDK_INT is a constants: public static final int SDK_INT = 0; So, it is my understanding, when compiling the code, the java compile will remove below code: if (Build.VERSION.SDK_INT >= 11) { //Some logic for device above 11. } From the test/debug result, the Buil...
David Guo
1

votes
0

answer
65

Views

Throw after conditional return in constexpr

GCC 7.2 (-std=c++17) doesn't compile this, complaining that f is an invalid constexpr due to throw: #include template...
davide
1

votes
2

answer
102

Views

C code works in Visual Studio 2013, but does not in 2017?

Today I wrote a code at the university on VS 2013 and it worked. I sent it to myself through email to try at home. Its not working on VS 2017. Fortunately I have VS 2013 and it does work on it. Why is this happening? Here is the part of the code that fails on VS 2017: #include #include #include type...
Just Steve
1

votes
0

answer
117

Views

Xcode ignoring architecture-specific EXCLUDED_SOURCE_FILE_NAMES on iOS

I have this in my Xcode .pbxproj file for iOS: buildSettings = { CONFIGURATION_BUILD_DIR = bin/arm/Debug; 'EXCLUDED_SOURCE_FILE_NAMES[sdk=iphoneos*][arch=arm64]' = ( AES_AESNI.cpp }; 'EXCLUDED_SOURCE_FILE_NAMES[sdk=iphoneos*][arch=x86_64]' = ( AES_ARMV8.cpp }; However, Xcode is ignoring these direct...
Myria
1

votes
0

answer
67

Views

PHP multi threading support is auto enabled, how to compile with disabled

I have found that a manually installed (compiled) PHP 5.6.34 on Ubuntu Server 16.04 has automatically enabled thread safety. The source is downloaded from php.net. Here is the build commands I have used: $ ./configure --prefix=/opt/php56 --disable-posix --enable-soap --enable-mbstring --enable-mbreg...
kanevbgbe
1

votes
0

answer
19

Views

can compilation libraries work without python?

I try to make python editor with compiler to exe, which can work on PC where Python isn´t installed. Is possible to run these libraries (PyInstaller,cx_Freeze,py2exe) on PC where isn´t Python, or it´s impossible
John
1

votes
0

answer
43

Views

What do I need to compile a program against a much older Linux kernel on a different architecture?

Background I'm trying to restore an old DNS/DHCP appliance machine. It's from around 2009 and runs what appears to be a customized Linux 2.6 kernel. The copy of OpenSSH installed on the appliance appears to have been modified to only allow a proprietary, restricted shell to run. Bash is available, b...
Mikey T.K.
1

votes
0

answer
22

Views

PPL get Compiling Errors when run command

I need to run some ppl code in ppl command. Here is the code: service tar0_starter function start const pathFolder= OS.consol?.ask_string ('Please enter at path of file:') if_null: error const my_folder = directory.creat(directory_path.create (pathFolder)) if not my_folder.exists then OS.out.write_...
foo
1

votes
1

answer
230

Views

Compile PHP with readline support on a mac?

I'm trying to compile PHP 7.2.3 and install clean into /usr/local with readline support, so that php -a will give an interactive shell session. I keep getting the error clang: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument] clang: warning: argument unused du...
ziggurism
1

votes
0

answer
46

Views

what triggers gcc -fsplit-stack option to allocate another stack segment

I'm trying to make sense of how this option works. In the source code of g++, it only says a segment of stack is allocated when a processor specific function is called. I'm wondering which processor function will trigger it. For reference, here is the source code of this option, https://sourceware.o...
L. Chen

View additional questions