compilation

Compiling a Windows C++ program in g++

I'm trying to compile a Windows C++ program in g++. This is what I get. /usr/include/c++/4.4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionalit...

Error when using --static option with macrubyc

I want to create a binary executable for a relatively simple script that would not require people to install macruby or HotCocoa. The script is here. I've understood that I want to use the --static option for the compiler and I'm using the following command: macrubyc -o postprocessor --static postprocessor.rb I get the following error...

makefile compilation problem

I have a problem with a makefile. I have three classes. They do pretty simple stuff. One does an addition on a subtraction, and the last one will instantiate the two and simply print the resulted addition and subtraction. Now when I create my makefile, I compile my Plus.java and my Minus.java but don't know how to compile the main class...

Where is System.CodeDom.Compiler.CompilerParameters in Silverlight ?

Dear All, I want to create Mathematics Expression Evaluator in Silverlight. To do that easily, I need compilation on the fly using System.Reflection, System.Reflection.Emit, System.CodeDom.Compiler, and other related assemblies. However, I cannot find this class available in Silverlight. Give me some suggestion please. Thank you in a...

Can I compile and execute C# expression without saving the assembly to disk?

I can compile, get an instance and invoke a method of any C# type programmaticaly. There lots of info on that, including the StackOverflow (http://stackoverflow.com/questions/53844/how-can-i-evaluate-a-c-expression-dynamically). My problem is that I'm in the web environment and cannot save anything to /bin directory. I can compile "in-me...

Lisp vs Python -- Static Compilation

Why can Lisp with all its dynamic features be statically compiled but Python cannot (without losing all its dynamic features)? ...

Implementing dynamic scope when using CPS as intermediate language

I am currently studying the implementation of programming languages and became interested in using Continuation-Passing Style as the intermediate language of the compiler. I also want to implement limited dynamic scope (for exception-handling or Scheme parameter objects) but I cannot find the relevant literature. I think it can be done w...

How can I see Eclipse compilation details log.

Is it possible to see Eclipse compilation details logs? After a number of project changes, the compilation speed became very low (~10 seconds after a simple file change). Whould be nice to see, what compilation steps take most time. ...

linux/unix and makefiles

In linux make file: I want to run the output program only in case of successful compilation. Is there a way to do this? ...

How do you compile different classlibraries to one dll?

The question explains it all. I have different classlibraries but I would like to compile them into one general DLL. Is this possible? I'm using .NET 3.5 with visual studio 2008. cheers, M ...

How to remove strings from a compiled binary (.so)

How do I remove strings from / obfuscate a compiled binary? The goal is to avoid having people read the names of the functions/methods inside. It is a dynamic library (.so) compiled from C++ code for Android with the NDK tools (includes GCC) I compile with -O3 and already use arm-eabi-strip -g mylib.so to remove debugging symbols, but ...

Unity doesn't work

Yesterday I've implemented the code: CustomerProductManager productsManager = container.Resolve<CustomerProductManager>(); It was compilable and working. Today (probably I've modified something I am constantly getting the error: The non-generic method 'Microsoft.Practices.Unity.IUnityContainer.Resolve(System.Type, string, par...

Android compilation is slow (using Eclipse).

When I change any .java file and build, the compilation takes 16 seconds. I don't understand why it should be so slow!? I enabled verbose output for Andoroid. Window > Preferences > Android > Build output > Verbose. The result output (Console > Android) is: [19:46:10] Refreshing resource folders. [19:46:10] Starting incremental Pre ...

How do I compile irb from source on Ubuntu?

I would like to compile irb from source without any optimizations so I can get more information while stepping through (interpreter) code using gdb. I have successfully compiled ruby 1.9.1 without problems, but I cannot find any documentation regarding irb. I believe that irb is included in the ruby 1.9 source, but have not been able t...

best-practice on for loop's condition

what is considered best-practice in this case? for (i=0; i<array.length(); ++i) or for (i=array.length()-1; i>=0; --i) assuming i don't want to iterate from a certain direction, but rather over the bare length of the array. also, i don't plan to alter the array's size in the loop body. so, will the array.length() become constant ...

ASP.NET - Missing #includes cause compilation errors: Failed to map the path '...'

I have an ASP.NET application which features some server-side includes. For example: <!--#include virtual="/scripts.inc" --> These files are not present in my ASP.NET website project because my website starts in a virtual directory: /path-to-my-application When I choose Build Web Site, I get this error: Failed to map the pat...

P.Package kernel-package has no installation candidate

Hi, I want to install kernel package by this command sudo apt-get install kernel-package but it gives me the error : Package kernel-package has no installation candidate How can I solve this??? P.S: I am use ubuntu 2.6 ...

FSharp.Compiler.CodeDom for VS2008 and VS2010 side-by-side

I'm using FSharp.Compiler.CodeDom (from the PowerPack) to dynamically create F# classes. The problem is, that I have both VS2008 and VS2010 on my computer side-by-side (they works fine), and using F# in this configuration is buggy at best: If I don't install InstallFSharp.msi, then under VS2008 the built classes complain about not find...

XCode iPhone OS Deployment Target Tool

Problem I'm currently stuck trying to figure out what "iPhone OS Deployment Target" setting to use. I do not want to write conditional code right now, so I'd like the lowest version that runs my application fine. At first I thought it would be 2.0 as I wasn't using any 3.0 features, but then i realized that AVAudioRecorder is a 3.0 API...

Gcc and ld arguments

Hi, how can I pass the option --enable-auto-import to ld from gcc? ...