compilation

FSC recompiles every time

主宰稳场 提交于 2019-12-07 17:47:53
问题 FSC recompiles my .scala files every time even there is no need - I can compile it twice without editing anything between attempts and it recompiles them! For example, I have 2 files Hello.scala class Hello{ print("hello") } And Tokens.scala: abstract class Token(val str: String, val start: Int, val end: Int) {override def toString = getClass.getSimpleName + "(" + "[" + start + "-" + end + "]" + str + ")"} class InputToken(str: String, start: Int, end: Int) extends Token(str, start, end)

Compiling Programs from Within Emacs?

拟墨画扇 提交于 2019-12-07 17:31:29
问题 What is the best way to compile programs inside emacs? I am currently opening a separate buffer with C-x 3 and running eshell inside it using M-x eshell then invoking either make or clang directly; most of the time I do have a Makefile set up. Is there any advantage with running the compilation process using M-x compile vs running make inside eshell? Any other ways to do it and what are the advantages/disadvantages of those? 回答1: The easiest way to do this is to use the Emacs built-in compile

Ionic 2 RC0 And Angular 2 latest Error on Build android (ngc: Error: Error encountered resolving symbol values statically)

折月煮酒 提交于 2019-12-07 17:00:48
问题 Error Appear when i build android using ionic build android command ngc: Error: Error encountered resolving symbol values statically. Reference to a local (non-exported) symbol 'dictionary'. Consider exporting the symbol (position 14:8 in the original .ts file), resolving symbol TRANSLATION_PROVIDERS My code in translation.ts file export const TRANSLATIONS = new OpaqueToken('translations'); // all traslations const dictionary : any = { [LANG_EN_NAME]: LANG_EN_TRANS, [LANG_AR_NAME]: LANG_AR

Compile a .pyw file so it can be run like .pyc without console

天涯浪子 提交于 2019-12-07 16:33:03
问题 I'm trying to compile a pyw file into a pyc without console. When I try a straight compile with it, the result is a pywc file, but it seems that pythonw.exe doesn't register that extension as one of it's files like python.exe does for a pyc. The result of course is that it has no double click handler when you try to just execute, or if you change the extension to pyc, you get the console. Does anybody know a way around this issue? Something to the affect of a .pyc with no console? Thanks!

How do I determine the memory layout of a structure?

半世苍凉 提交于 2019-12-07 16:00:49
问题 Suppose I have the following structure (in C): struct my_struct { int foo; float bar; char *baz; }; If I now have a variable, say struct my_struct a_struct; How can I find out how the fields of that structure are going to be laid out in memory? In other words, I need to know what the address of a_struct.foo , of a_struct.bar and a_struct.baz are going to be. And I cannot do that programatically, because I am actually cross-compiling to another platform. CLARIFICATION Thanks the answers so far

Compiling GTK+ applications on windows?

☆樱花仙子☆ 提交于 2019-12-07 15:53:29
问题 I was following this thread in order to learn gtk but I cant seem to get it to compile. I've downloaded the GTK all in one bundle and extracted it to c:\gtk (have also set bin as a path variable), but when I try gcc foo.c %VAR% it says gcc: %VAR%: No such file or directory , what am I missig here?. this is my VAR.bat file set VAR = -mms-bitfields -IC:/gtk/include/gtk-2.0 -IC:/gtk/lib/gtk-2.0/include -IC:/gtk/in clude/atk-1.0 -IC:/gtk/include/cairo -IC:/gtk/include/pango-1.0 -IC:/gtk/include

Compiling VIM with breakindent patch

本秂侑毒 提交于 2019-12-07 15:17:28
In Ubuntu 12.04 Precise the only way to get breakindent patch working in VIM seems to be compiling VIM itself after patching it. Here's what I've done: Install pbuilder and create local environment sudo apt-get install pbuilder debootstrap sudo pbuilder create --debootstrapopts --variant=buildd Get the sources sudo apt-get source vim Patch them with breakindent patch retrieved from the official repo cd vim-7.3.429 patch -p1 < vim-breakindent.patch sudo pbuilder build vim_7.3.429-2ubuntu2.1.dsc Pbuilder correctly generates deb packages but, after installing them, no breakindent option is

two static libraries with duplicate symbols in Xcode

笑着哭i 提交于 2019-12-07 15:17:22
问题 I have two static libraries which seem to have duplicate symbols(TBXML.o) and won't compile. ld: duplicate symbol _OBJC_METACLASS_$_TBXML in /Users/Hoya/Desktop/SocialSync/include/SMUFLib/deviceLib/libSFCommonLibs.a(TBXML.o) and /Users/Hoya/Desktop/SocialSync/Cauly/libCaulyDevice.a(TBXML.o) for architecture armv6 Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1 The developer of both libraries don't provide the source code so there is nothing I can

Should I compile a library from source?

主宰稳场 提交于 2019-12-07 14:47:28
问题 I'm working on an application that will run on a custom-built, debian-based linux system. We have a toolchain so that we can cross-compile the application for the target system, that way we don't have to depend on the host OS (as opposed to target OS) on which we're doing the compilation. I'm not sure, however if we should be cross-compiling the 3rd party libraries from source or whether we should just use the pre-canned libraries and header files. For example, libSDL1.2 seems to be distro

Nuitka not compiling an exe with nuitka --recurse-all hello.py [error]

邮差的信 提交于 2019-12-07 14:45:37
问题 I am trying to create a simple exe through nuitka so that I can run it on my laptop without Python needing to be installed. I am on windows 10 and using Anaconda Python 3. I typed in: nuitka --recurse-all hello.py However, I keep getting the following error message: C:\Users\Bain3>Nuitka --exe 123.py Nuitka:WARNING:Not recursing to 'selenium' (C:\Users\Bain3\Anaconda3\Lib\site-packages\selenium), please specify --recurse-none (do not warn), --recurse-all (recurse to all), --recurse-not-to