compilation

Java builder with proper dependency handling

Hello SO, After a recent juggling with our ant scripts I've started to wonder if something better is possible. I need a builder that will know to recompile all required .java files for me. For ex. for this structure public class A { ] public class B extends A {} public class C { B b; } For: Compile('C') Will know to compile A,...

Preserving parameter/argument names in compiled java classes

When I compile something like this: public class MyClass { void myMethod(String name, String options, String query, String comment) { ... } } and compile this to a class file, it seems that argument names are lost. That is, when some other Java code references MyClass and wants to call or overwrite myMethod, my IDE (c...

What caused the "Fatal error in ccfe" compilation error in the Solaris C++ compiler?

I got this error message from the C++ compiler: CC: Fatal error in ccfe: Segmentation Fault (core dumped) What could cause it? ...

How to compile c code with fattach()

I'm trying to write a program that uses fattach but the compiler says fattach not implemented. I have included the header file stropts.h. what should I do? ...

PHP 5.2.9 build fails on zend_execute.lo - out of memory?

I'm trying to get PHP compiled with EXIF support. Every time I try to build PHP 5.2.9 on my virtual dedicated server running CentOS 5.3, it fails when it gets to building zend_execute.lo. I tried compiling just that file by itself, and it fails. Says out of memory allocating [####] bytes after... something. How can I get PHP compiled...

Does java implement type erasure in user defined generic classes too?

Suppose I have a class and I want to use it somewhere as a generic type: class MyList<T> { T[] list=T[10]; public void add(T element) { list[0]=element; } } After compilation, does it remove its type information like it is the case for generic collections? I don't need to use this code anywhere, so please do...

Looking for a source tree to benchmark compilation

I need to run a set of compilation benchmark tests on a system, I'm looking for a Visual Studio project (e.g. from Codeproject.com) which would take about 5 minutes to build on a modern laptop. Any ideas? ...

Tracking workflow compilation error source from msbuild output

Hi, When building a solution on a machine without VS installed, and getting workflow compilation errors I would like to track down the source of the errors, but the msbuild output is not very helpful: C:\Program Files\MSBuild\Microsoft\Windows Workflow Foundation\v3.0\Workflow.Targets(80,3): error : The type or namespace name 'Foo' cou...

How can I explicitly disable compilation of _tkinter.c when compiling Python 2.4.3 on CentOS 5?

I'm trying to explicitly disable the compilation of the _tkinter module when compiling Python 2.4.3. It's easy enough to do by modifying the makefile but I'd rather just append a configuration option to avoid supplying a patch. I do not understand the complex interplay between Modules/Setup*, setup.py and their contribution to the gener...

Is it possible to recompile a single .java Java file without having the whole project?

I have this .JAR file. I decompiled it to multiple .java files. There is any way to have a new functional .JAR file, after updating a single .java file and recompiling it? If it is possible how would we recompile this .java file without having it's dependencies? (ie. external libraries) ...

Compilation error while porting from gfortran to ifort

I'm trying to port a program from gfortran to ifort (Intel Fortran Compiler 11). I'm stuck with two files that only compile with gfortran: gfortran -x f77 -c daedrid.ff gfortran -x f77-cpp-input -c daedris.ff when I try to run intel fortran compiler with these files, I get: ifort -fpp -c daedrid.ff ifort: warning #10147: no action pe...

Jsp doesn't see included taglibs. Seems to be a local webshpere 6 configuration issue?

Ill try to be as descriptive as possible. situation: struts tag's not being resolved on a jsp. When you look at what should resolve as links you see: <html:link page="/dto/initDTO.do"><b><i>Design To Order Control System ( DTOCS )</i></b></html:link> Which leads me to believe that the struts tag is not being resolved. The source o...

Are there programmatic tools for Perl to Python conversion?

In my new job more people are using Python than Perl, and I have a very useful API that I wrote myself and I'd like to make available to my co-workers in Python. I thought that a compiler that compiled Perl code into Python code would be really useful for such a task. Before trying to write something that parsed Perl (or at least, the ...

Newbie question: how to include JAR files when compiling?

I have the following in a java file (MyRtmpClient.java): import org.apache.mina.common.ByteBuffer; and ByteBuffer is inside a JAR file (with the proper directory structure of course). That jar file and others I need are in the same directory as the .java file. Then I compile with the line: javac -cp ".;*.jar" MyRtmpClient.java But...

PowerPoint version compilation

Let's say I am using SharpDevelop/VS to develop an app that uses PowerPoint. Do I need to recompile the app so there is a build for each version of MS Office? I have MS Office 2007, but I would also like the app to work with Office 2003 and later, without having to recompile the app for each version. Do I just need to install the appr...

Fastest way to debug Firefox addons during development

Debugging a Firefox addon is a slow process: (1) edit source code in a JS editor (2) package into XPI using a build script (3) drag into Firefox to install (4) restart Firefox (5) open the JavaScript Debugger Can we speeden up the process? Like install it into Firefox without a restart, or configure the build script to install it into F...

What tools for migrating programs from a plateform A to B

Hi, As a pet project, I was thinking about writing a program to migrate applications written in a language A into a language B. A and B would be object-oriented languages. I suppose it is a very hard task : mapping language constructs that are alike is doable, but mapping libraries concepts will be a very long task. I was wondering what...

Two folders : Bin and Obj....Does anyone know why...?

I had a very basic question. When we compile VS 2005 C# application, it creates two folder. One is Bin folder and other one is Obj folder . Doe any one know why it creates Obj folder....I tried to find out the docs for it but could not find it.... ...

Compiling a set of NSIS scripts using Eclipse

Hi All, I have a script having dependencies to two other scripts. I'm using Eclipse as my NSIS editor. whenever I have changes to script3, I have to compile script1 and script2 first. And I do it manually. Other than creating a batch file, is there a way you could tell Eclipse that everytime you compile script3, it has to compile scri...

Undefined symbol error for base class in C++ shared library

I compiled the following code as a shared library using g++ -shared ...: class Foo { public: Foo() {} virtual ~Foo() = 0; virtual int Bar() = 0; }; class TestFoo : public Foo { public: int Bar() { return 0; } }; extern "C" { Foo* foo; void init() { // Runtime error: undefined symbol: _ZN3FooD2Ev foo = new TestFoo()...