compilation

Compiling .NET code in .NET 4?

廉价感情. 提交于 2019-12-03 15:41:30
I remember when .NET 4 was in beta there was a video of a developer that made a command-line app that he could type C# code into and it would compile the code on the fly. The idea was that the compiler was now available in the .NET language. Anyone recall where this is? I need to create an application with a small macro language and I would love to use C# as that macro language, but I don't know where to find this library.. You can use the CSharpCodeProvider class to compile assemblies at runtime. You'll need to make a boilerplate template to wrap the macro commands in a static method in a

How does Google App Engine precompile Java?

徘徊边缘 提交于 2019-12-03 15:34:31
App Engine uses a "precompilation" process with the Java bytecode of an app to enhance the performance of the app in the Java runtime environment. Precompiled code functions identically to the original bytecode. Is there any detailed information what this does? I found this in a googlegroups message : Yes, pre-compilation reduces the time to load an application. This will benefit you on your first request after a deploy, after you've been cycled out or if more application instances are created to scale up with your load. You will see up to 30% improved loading time on your first request. Pre

How to get your head around C++ linking/dependencies?

依然范特西╮ 提交于 2019-12-03 15:31:13
I'm a Java developer and I never have to worry about including files or messing with BUILD files. Whenever I need to write C++ code, things get more complicated. I can think of creating *.h files as interfaces in Java, but figuring out how to write the build file and what order classes should be included in gives me a headache. Is there a simple way to think of this? How do you know when to include something or how to separate things out properly. For example, what is generally a good way to deal with a project with dozens of sources files that are interdependent on each other. Is there some

Should I Compile My Application Inside of a Docker Image

杀马特。学长 韩版系。学妹 提交于 2019-12-03 15:28:17
Although most of the time I am developing Java apps and am simply using Maven so my builds should be reproducible (at least that's what Maven says). But say you are compiling a C++ program or something a little more involved, should you build inside of docker? Or ideally use vagrant or another technology to produce reproduce able builds. How do you manage reproducible build with docker? VonC You can, but not in your final image, as that would mean a much larger image than necessary: it would include all the compilation tool, instead of limiting to only what you need to execute the resulting

why use g++ instead of gcc to compile *.cc files?

你。 提交于 2019-12-03 15:06:57
I compiled a library which use the g++ instead gcc. First I thought the source code was written in C++ but I found out later that there was not any C++ code in the *.cc files. To confirm this, I replaced the g++ in the original makefile with gcc. And I still got the correct program. Anyone can explain this? It was not the first time I met such a situation. It depends on what exactly you changed in the makefile. gcc / g++ is really just a front-end driver program which invokes the actual compiler and / or linker based on the options you give it. If you invoke the compiler as gcc : it will

How do I fix “sed: illegal option — r” in MacOS Sierra Android build?

[亡魂溺海] 提交于 2019-12-03 13:43:35
I am trying to build Android on my MacOS, but it gives me this error: "sed: illegal option -- r" I tried: make bootimage make systemimage make recovery brunch mka bacon All of them give me the same error. Another option is to use homebrew to install gnu-sed: brew install gnu-sed --with-default-names Editing PATH manually is one way. However, this is an alternative solution that might work for some. Most of the developers these days have conda . conda can install the latest sed and make it visible via $PATH conda install -c conda-forge sed conda takes care of editing PATH variable P.S. Most

Compiling Qt - Visual Studio 2010

ぐ巨炮叔叔 提交于 2019-12-03 13:36:14
问题 I am looking for any tutorials or information on compiling Qt 4.7 with Visual Studio 2010. I've recently have run into an bug using Qt 4.7.1 libraries on Visual Studio 2010 and have found information that recompiling Qt with 2010 can potentially solve it. Edit : This has solved the issue. Ref: http://www.qtforum.org/article/34406/heap-corruption-caused-by-calling-selectedindexes-method-of-qitemselectionmodel-class.html After Researching for awhile, I was successfully able to compile Qt in

How to compile rhino/javascript files to .class bytecode for java at runtime

给你一囗甜甜゛ 提交于 2019-12-03 13:31:36
问题 I'm making a falling sand game in Java. I want users to be able to write their own engine for it using a simpler language. Falling sand games can be very CPU intensive so I want to have the engine running as fast as possible while not having to manually compile. I need to know how to compile rhino javascript files to .class files by at runtime to be used. I've looked for a way but couldn't find any other than manually compiling it by using the command line which I don't want users to have to

PHP: Call to undefined function mb_strlen() - on custom compiled PHP with mbstring enabled

和自甴很熟 提交于 2019-12-03 13:24:13
I have this custom compiled PHP (v5.3.3) with the following extensions enabled (via configure): ./configure --prefix=/usr/local/php5.3.3 --with-config-file-path=/usr/local/apache2/conf --with-apxs2=/usr/local/apache2/bin/apxs --with-bz2 --with-curl=/usr/lib --with-curlwrappers --with-freetype-dir=/usr/local --with-gd=/usr/local --with-gettext --with-gmp --with-iconv=/usr/local --with-imap=/usr/local/imap2007e --with-imap-ssl --with-jpeg-dir=/usr/local/lib --with-kerberos --with-libxml-dir=/usr/lib --with-mcrypt=/usr/local --with-mhash --with-mysql=/usr/lib/mysql --with-mysql-sock=/var/lib

How to programmatically build a visual studio solution?

浪子不回头ぞ 提交于 2019-12-03 13:21:20
I would like to compile a solution by passing the solution file path (.sln file) and the build mode (debug, release). I do not want to call a command line process like devenv.exe or msbuild.exe, instead I would like to use an API and know if there were compile errors. Is it possible ? Please provide samples if you think you know how to do that. You're going to have to launch a process at some point to do the compilation you might as well spawn a process to kick off the compilation. It is going to be much easier than struggling with an API. Edit Andrew gives some good advice about how you might