compile

Compiling in constants at runtime

I have a program for some scientific simulation stuff, and as such needs to run quickly. When I started out, I was somewhat lazy, and decided to allow inputting constants later; and just used #define macros for them all. The problem is that when I tried changing that, it got a lot slower. For example, changing #define WIDTH 8 //.......

compile command across emacs sessions

Hello, how do i maintain a compile command across emacs sessions for a given file? so, suppose I have file1.x, and I would like to use tool XComp to compile it. To do this, I need to run the following hypothetical command: Xcomp file1.x && extract file1.x && Xlink file1.obj So I do M-x compile, and write that thing. Now I have it ava...

Android build failure

I followed instructions from here. After $ repo sync I tried to build it with $ make, but got this error: host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so) /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/gcc/i48...

How to add Tkinter support for PIL Python library

Okay, well supposedly PIL is supposed to be able to work with Tkinter automatically, but mine is not. I found this text file in the Imaging directories Tk directory. Using PIL With Tkinter Starting with 1.0 final (release candidate 2 and later, to be precise), PIL can attach itself to Tkinter in flight. As a result, you no longer ne...

How do I build all configurations of a Visual Studio 2008 C++ project on the command line?

I'd like to build all the configurations of a VS 2008 C++ project on the command line. Something like: devenv TheProject.vcproj /build /nologo But this doesn't work because the /build command insists on having a configuration following it like this: devenv TheProject.vcproj /build "Release|Win32" /nologo Is there a way to get...

c/objective-c question

I am truing to use a c function in a .c file from within my objective-c class. I have imported the header for the c file. but I am still getting a problem and my program would not compile. Undefined symbols: "gluUnProject(float, float, float, float const*, float const*, int const*, float*, float*, float*)", referenced from: -[GL...

java - is it possible to choose version number when compile a file?

I've wrote a java code and compiled it. (foo1.6.class) According to my search, my local machine has Java 1.6, and the tomcat server that I uploaded foo1.6.class only accepts version number 1.5 This means that I have to have Java 1.5 to compile? I believe it is the cause that bad version number error is thrown like below. My question is...

The default class library not including com.sun.cnpi.rss ?

I use eclipse to write RSS parser wrapper function and it returns expected values when run from eclipse. package rss_parser_wrapper; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.Collection; import java.util.Iterator; import com.sun.cnpi.rss.elements.Item; import com.sun.cnpi....

"Launch Configuration" Shows up Blank When Trying to Export Runnable Jar?

Hey everyone, I've gotten this to work in the past, but now whenever I choose File > Export... > Runnable JAR File and select the drop-down menu "Launch Configuration", all I get is a blank bar. How can I get my main class to show up? Many Thanks, Justian ...

What is the difference between compiling and building in Delphi?

With Delphi-6 there are two options: Build and Compile. I know when I run a program it compiles only the files which have changed and uses the DCUs for those which haven't. When I click build apparently it rebuilds the DCUs. What I have been wondering is, when I make a program for release (changing build settings, conditional variable...

Compile multiple flavors of the same Java software from Ant

I'm looking for a way to compile a few flavors of my Java software using Ant. By flavors I mean, for instance, trial and full version. In the code I have a public static final boolean TRIAL variable which specifies whether it is trial or full version. It would be very nice to be able to set it from Ant and to compile both versions ...

Visual Studio 2010 is Eating My DLLs! - referenced third party dlls missing after build

Please help I am pulling my hair out over this: I have a Visual Studio ASP.NET MVC solution in which a project references a third party DLL, log4net in this case. My solution tree is as follows: GenericLibrary MyApp.NHibernate MyApp.Library MyApp.WebUI MyApp.WebUI is the main start-up MVC web project and has references to GenericLib...

Compiling into executable file

I am currently writing a programming language in C/C++ as an exercise (but mostly for fun). At the moment it compiles into a list of commands that are then executed (kind of like a low-level API). Its working fantastically, however, I think it would be more exciting if instead of having a interpreter executable, having the language act...

How to load image in a directory different than NSBundle ?

hi, SUPER HARD QUESTION Here is my projet: I use 3000 jpegs in an iPhone Project. In a normal situation, the 3000 files are loaded in the 'NSBundle' (encapsulated with the App) and then load on the iPhone. The problem is the app is around 500 Mo. So i'd like to copy the images in a different directory ('Documents' for example) t...

Please help me Compile with different Classpaths in Java

My structure looks like this \Project1 \src \pkg1 Main.java \pkg2 Auxillary.java \Destination \class \lib I need to compile Main.java which has dependencies in Auxillary.java and jars in \lib into \Destination\class I am in the Project1 directory. I tried javac -cp Destination\lib\*;src\pkg2\* -d D...

Compiling a perl script to a .exe

Possible Duplicates: How can I compile my Perl script so it can be executed on systems without perl installed? How can I package my Perl script to run on a machine without Perl? what is the best way to accomplish this. I have been using the activestate add on for the komodo IDE, but my license expired and now I am trying to ...

Explaining readelf -S output

I'm trying to load an elf file into a MIPS simulator I made. The problem I'm having is that I don't quite understand the meaning behind the elf section header offset. When I do a segment dump, segments 25 - 31 and 33 - 35 "start" at 0x00000000 but the header states that the segment starts at an offset of some value (ex. 010190). Also ...

How to check if program was compiled with debug symbols?

I'd like to trace some code in GIMP and therefore need GIMP with debug symbols enabled. I don't remember whether I have enabled them during compilation. How to check that without recompiling the program? ...

Why is my .cpp file not being processed?

I'm trying to compile (make) a game source and it seems that my gRace.cpp file is being excluded or something because it keeps returning undefined reference errors for all my gRace class methods. libtron.a(libtron_a-gGame.o): In function `gGame::StateUpdate()': gGame.cpp:(.text+0x99e9): undefined reference to `gRace::Reset()' libtron.a(...

Visual Studio: How can I see all errors in asax and aspx files?

I've been converting some web site projects to web application projects. This involves using some automated tools to make many, many changes across projects. Oftentimes, the files become syntactically incorrect. When this happens to the codebehind files, I get a compile-time error and I know to fix the problem. However, when the code...