compilation

How patching or updating of the compiled application works?

Could you help to understand generally how the applying of patch or an update works for already compiled and live application at the level of code? I mean, if we want to fix an error (or improve a functionality) in some piece of code, what is happening with that already compiled code, how it gets changed? ...

Attribute to generate compilation error on method call ?

Hi, I would like to ensure that a method (actually a constructor in my case) is never called explicitly from code. It should only be called through reflection at runtime. To do that, I would like to apply an attribute on the method that would generate a compiler error if the method is called, something like : [NotCallable("This method ...

How to compile resource files conditionally in Xcode?

Hi. I have many image/video files should be included as resource. Their size overs 30MB. So it takes to much time when I compile them. This slows down my development speed. So I'm finding a way to compile those some resource files conditionally. Like #ifdef directive in source code. It's good if it can be specified in source code file....

How to compile a class file in Java?

I have the following code generated by Eclipse (.java file). import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Display; public class HelloWorldSWT { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Display display = new Display(); ...

Are there any XSLT to C++ compilers available?

I found only one attempt to create such compiler - http://sourceforge.net/projects/xsltc/. But this project is dead for decade already. Are there any other examples? Opensource or commercial? Are there any fundamental technical difficulties with building such software? With the whole approach of compiling XSLT natively? I suppose there...

Installing programs in different Linux machines with very limited acccess

Hi, I have to log into Linux servers from different customers and use there essential tools like SVN, etc. Most of the times I get no root access, and usually the administrator is on holidays :) so I have to get the way to use this tools there. Sometimes this is very straightforward process, just compile the code. But in some of the cas...

Why is WPO(whole-program optimization) not doing any improvements in my program size? (FPC 2.4.0)

I use FPC 2.4.0 for WinXP(binary from the official page), also tryed with same version but compiled from source on my comp. I put something like this: I:\pascal\fpc-2.4.0.source\fpc-2.4.0\compiler\ppc386 -FWserver-1.wpo -OWsymbolliveness -CX -XX -Xs- -al -Os -oServer1.o Server I:\pascal\fpc-2.4.0.source\fpc-2.4.0\compiler\ppc386 -FWser...

Auto compile sub project of a website solution.

Is to possible to make a configuration entry (web.config). That automatically compiles a referenced project(for example a class library) when the site runs? This would be easier for me to maintain on my hosting server. Otherwise i have to always recompile the files and upload them again for every small change. So is this possible? ...

ASP.NET 2: website compilation

I have website on the server, which is not precompiled (with source code, so dynamic compilation is used). Now I have new version of website and I want to pecompile it before deployment. If I copy new version over old, all source (code behind files) will stay at the server, so I will have new files (precompiled) and old (code behind). Co...

Incremental compilation in nvcc (CUDA)

I have many structs (classes) and standalone functions that I like to compile separately and then link to the CUDA kernel, but I am getting the "External calls are not supported" error while compiling (not linking) the kernel. nvcc forces to always use inline functions from the kernel. This is very frustrating!! If somebody have figured ...

Why is it that i have to use terminal to compile and run a program in java?

(I'm a mac user) I'm new at this whole programing thing. its been explained to me that i have to compile my program in terminal with: cd ~ javac filename.java and then run it with java filename Why do i have to do it this way? (i'm just curious) also what does cd ~ mean/do? What does javac mean? (is that javaCompile?) also i've...

How do I compile with -g option in Netbeans?

When debugging I get an warning message on exception saying 'variable info not available - compiled without -g' - how do I set to compile with -g in netbeans? thanks ...

Compiling a C/C++ application against OpenGL and Xm in OSX

Hi, I am rather new to Mac OSX. I am trying to get an old code compiled in OSX Leopard, which uses OpenGL and XM. The headers are like: #include <malloc.h> #include <X11/Intrinsic.h> #include <X11/StringDefs.h> #include <X11/keysym.h> #include <Xm/MainW.h> #include <Xm/RowColumn.h> #include <Xm/PushB.h> #include <Xm/PushBG.h> #in...

How does Google App Engine precompile Java ?

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

Compilation failed for Lighttpd 1.4.26 on Lenny AMD64.

Hello, yesterday I tried to compile Lighttpd 1.4.26 + mod_h264 on Debian Lenny ( AMD64 ) but it failed. I got those errors : mail:/usr/src/lighttpd/lighttpd-1.4.26# make make all-recursive make[1]: Entering directory `/usr/src/lighttpd/lighttpd-1.4.26' Making all in src make[2]: Entering directory `/usr/src/lighttpd/lighttpd-1.4.26/sr...

poco Lib dosnt compile in vs express 9

Hello all im trying to compile the poco lib in vs express 2008 but im keep getting this error : poco-1.3.6p2\foundation\src\eventlogchannel.cpp(40) : fatal error C1083: Cannot open include file: 'pocomsg.h': No such file or directory no i have the mc.exe in my sdk and all the paths in the IDE are seams to be right and nada . does any ...

can't get my code to run from a programming book(c++)

i got a new programing book (multicore programming by cameron hughes, tracey hughes). so far i have not got one of their programs to work their book says that it should work on 99% of computers so im a little confused but at the end of each program in their book they have "compile and link instructions"... do i need to enter that? it loo...

Compiling the compiler - how many times?

If you compile a new version of compiler, how many times should you recompile it iteratively? First: compile the new version of compiler[1] using the old version[0]. Second: compile the new version[2] using the newly compiled one[1], to apply new optimizations and fix bugs to the binary, not present in old[0] compiler. Now third? Comp...

Why's a simple change to rt.jar causing the Java Runtime Environment to crash silently?

This is what I'm doing: extract contents of my JRE's rt.jar extract src.zip of my JDK (same version) Now, if I copy Runtime.java from the extracted src folder and compile it using javac.exe without any modifications and then put it in the extracted rt folder to finally put everything back in a jar file using jar.exe, everything works...

Why Java cannot find my constructor?

Well, maybe it is a stupid question, but I cannot resolve this problem. In my ServiceBrowser class I have this line: ServiceResolver serviceResolver = new ServiceResolver(ifIndex, serviceName, regType, domain); And compiler complains about it. It says: cannot find symbol symbol : constructor ServiceResolver(int,java.lang.String,java...