compiling

Can you call compiled JRuby classes from java?

So I came up with the general idea to write some code in JRuby, then access all the classes via Java. I have no idea if this is at all possible but I wanted to ask anyway. Lets say I have some JRuby code: class adder def addme return 22 end end If I compiled this with jrubyc is there any way I could then possibly do somet...

How to compile Python scripts for use in FORTRAN?

Hello, Although I found many answers and discussions about this question, I am unable to find a solution particular to my situation. Here it is: I have a main program written in FORTRAN. I have been given a set of python scripts that are very useful. My goal is to access these python scripts from my main FORTRAN program. Currently, I s...

what are the instructions for compiling in IBM Jikes

what is the instruction for compiling via IBM Jikes . for example : public class Test{ public static void main(String[] args) { System.out.println("HelloWorld!"); } } ...

How can I compile and run a Java program?

How can I compile and run a Java program? ...

Problems compiliing c++ code using cygwin

I am trying to compile some source code in cygwin (in windows 7) and get the following error when I run the make file g++ -DHAVE_CONFIG_H -I. -I.. -I.. -Wall -Wextra -Werror -g -O2 -MT libcommon_a Fcntl.o -MD -MP -MF .deps/libcommon_a-Fcntl.Tpo -c -o libcommon_a-Fcntl.o `test -f 'Fcntl.cpp' || echo './'`Fcntl.cpp Fcntl.cpp: In functi...

Compiling for older versions of Mac OS X

I have recently started producing applications for the Mac, on my most recent release I got overwhelming suggestions to get the app working on OSX 10.5 as I'm working in and compiling for 10.6. I tried looking for the 10.5 SDK but couldn't find it anywhere to download! How can I go about compiling my app for older versions of Mac OS X u...

problems installing ruby 1.9.1-p378 on snow leopard

i've installed the latest upgrades to the dev tools, and tried re-installing, and yet i still get this error: You have to install development tools first. from /Users/jian/Downloads/ruby-1.9.1-p378/lib/mkmf.rb:427:in try_compile' from /Users/jian/Downloads/ruby-1.9.1-p378/lib/mkmf.rb:473:intry_static_assert' from /Users/jian...

Makefile issue with compiling a C++ program

I recently got MySQL compiled and working on Cygwin, and got a simple test example from online to verify that it worked. The test example compiled and ran successfully. However, when incorporating MySQL in a hobby project of mine it isn't compiling which I believe is due to how the Makefile is setup, I have no experience with Makefiles ...

Get Doxygen to show XCode compile errors if documentation is missing

I have been successful with this in the past but now I can't seem to find the setting that tells XCode or Doxygen (or both) to display compile errors if documentation is missing. I have looked at the Apple documentation that tells how to create docsets and that works fine but XCode does not throw compiling errors on missing comments in ...

Recompiling php troubles

Hey, so I know there are somewhat similar questions on here, but I haven't been able to get a helpful answer (not that they're not helpful, just not for my specific question) on another thread. Also, I'm not quite sure this isn't a SF question, but here goes: I recently was working on a VPS that had php sans curl. I've tried working ar...

pretty print makefiles

The linux kernel (and various other projects including git) have very nice makefiles that hide the giant cc calls into nice little acronyms. For example: gcc -O2 -o cool.o cool.c -llib gcc -O2 -o neat.o neat.c -llib would become: CC cool.c CC neat.c Which is really nice if you have a project with a large number of files and long c...

building odcctools in a 64-bit OS

The odcctools package provides binutils for the Darwin OS. -- this allows you to cross compile to Darwin and OSX for example. However, odcctools does not seem to build properly on 64-bit OSes: ./../expr.c: In function ‘expression’: ./../expr.c:311: error: ‘union <anonymous>’ has no member named ‘n_name’ Or, if you set CFLAGS to -m32, ...

error compiling gcc: undefined reference to libc_name_p

When compiling GCC it is possible to get very far in the build process only to hiccup on an error complaining about the lack of gperf installed. After installing gperf and running, I hit an "undefined reference to libc_name_p." I've looked at the solutions here and here but they weren't helpful. ...

Compile C++ code via C# class in Visual Studio

Hi All.. I use this method to compile C++ file in VS. But even i provide the correct file it returns false. Can any one help me... This is class called CL class CL { private const string clexe = @"cl.exe"; private const string exe = "Test.exe", file = "test.cpp"; private string args; public CL(String[] args) { ...

Unexpected return value

Program stopped compiling at this point: What is causing this error? (Error is at the bottom of post) public class JFrameWithPanel extends JFrame implements ActionListener, ItemListener { int packageIndex; double price; double[] prices = {49.99, 39.99, 34.99, 99.99}; DecimalFormat money = new DecimalFormat("$0.00"); ...

unable to cuda code

I'm getting an error when i try to compile and build cuda code Error 1 error C2065: 'threadIdx' : undeclared identifier Error 2 error C2228: left of '.x' must have class/struct/union ...

Netbeans 6.8: Lib-Import works, but "package does not exist" when compiling

Hello, I'm working on a JavaME project and need to import external libraries, which are available to me as jar files. So I selected the project properties -> libraries & resources -> add Jar/Zip and added the jar file there. When editing the code, everything works. I can import the classes from this library and use them as expected. B...

Porting/cross-compiling external libs

How do you cross-compile libraries like SVL (Simple Vector Lib) or SDL_gfx for Linux/ARM cpu when you're on Win 64? I'm using "arm-none-linux-gnueabi-gcc" to compile my stuff, but I have no idea how to do it with external libs. Spent last 7 days googling, but no luck so far. ...

Error trying to compile latex document. Where can I find the file "report output*"?

Help!!! I am trying to compile a LaTeX document that has been compiled before, but now for some reason it just won't go through. The error message I am getting is not very informative, and I can't even find the file it is pointing to. The details: I am using Aquamacs, and when I try to compile the document the mini-buffer displays the ...

Invoke OCaml compiler to just produce .cmi

Hello, maybe I'm just failing in a really simple thing but I'm developing an intepreter written in OCaml with standard tools as ocamllex and ocamlyacc and I have this situation: iparser.mly contains parser spec ilexer.mll contains lexer spec impossible.ml contains the vm that executes the code and all the types needed The instruction...