compile

How to dynamically compile and load a Java class that complies to an interface at runtime?

I'm trying to compile and load a class at runtime, without knowing the package of the class. I do know that the class should comply with an interface, and the location of the source, (and hence the class name). I'm trying the following: /* Compiling source */ File root = new File("scripts"); File sourceFile = new File(root, "Test.java"...

Trying compile a C Code with PHP

I have a file named gcc.exe and I have a php page... I want to use: gcc test.c And, if there's some compilation error, I want to show it on the php page... But I can't. What happens is: If the file is correct, it generates the .exe file, but if it's wrong, nothing happens. What I want here, again, is to show all errors. Anyone has an...

Is there an intelligent way to know the name of the library to link to at compile time? (Linux/Kubuntu)

Please bear with me. I really want to know as I am curious about the answer: Is there an intelligent way to know the name of the library to link to at compile time? Allow me to give you an example that illustrates perfectly the reason for my question. I am a C++ newbie. I am learning about compiling, linking and libraries like boost. ...

Java Regular expression

I have a string and a pattern that i want to search for in that string. Now, when i match the pattern in the string, i want to know the string that matches my pattern. String template = "<P ALIGN=\"LEFT\"><FONT FACE=\"Verdana\" SIZE=\"12\"> My Name is xyz </FONT></P>"; String pattern = "<FONT.*>"; Pattern.compile(pattern,Pattern.CASE_...

How to get your head around C++ linking/dependencies?

I'm a Java developer and I never have to worry about including files or messing with BUILD files. Whenever I need to write C++ code, things get more complicated. I can think of creating *.h files as interfaces in Java, but figuring out how to write the build file and what order classes should be included in gives me a headache. Is the...

The SDL library I built from source crashes!

I've successfully built SDL from source using bcc 5.5.1 but any SDL test application using it crashes right away at startup. I'm looking for some help and/or guidance on how to resolve this issue. Just to fill in some info, SDL-1.2.14 was used. The project's compiled as a dll with multithreading enabled and linked to C runtime dynamical...

Java compile speed vs Scala compile speed

I've been programming in Scala for a while and I like it but one thing I'm annoyed by is the time it takes to compile programs. It's seems like a small thing but with Java I could make small changes to my program, click the run button in netbeans, and BOOM, it's running, and over time compiling in scala seems to consume a lot of time. ...

Flash builder 4 - Build into different output folders

Hi, Can I configure Flash Builder 4 to build into different folders? Something like: build applications files into "folder a" and modules files into "folder b"? Thanks, André ...

why am I getting "error CS0016 : process cannot access ...", when I recompile the dynamically compiled and unloaded dll.

hello, in my application, i use CSharpCodeProvider class to dynamically create a dll file and load the file into another appdomain to use the class in it. when i am done with the class, i simply unload the appdomain. everything is perfect so far. but if i try to recompile the dll at runtime, i get the following error. E:\projects\Com...

Teradata FastLoad Inmod Compilation on Windows or Unix

Hi, I have an inmod for processing one file records and eliminate some unwanted rows and then feed the records to fastload utility. But I am not able to find a correct way to compile it and use it. I have GCC (GNU C Compiler) and TCC (Tiny C Compiler) on my windows macine and I got Fastload utility also installed. I tried to compile the...

Can't compile C++ in Ubuntu using GCC -- Include/Library Problems (collect2: ld returned 1 exit status)

I guess I'm not linking something right? I want to call ABC.cpp which needs XYZ.h and XYZ.cpp. All are in my current directory and I've tried #include <XYZ.h> as well as#include "XYZ.h". Running $ g++ -I. -l. ABC.cpp at the Ubuntu 10 Terminal gives me: `/tmp/ccCneYzI.o: In function `ABC(double, double, unsigned long)': ABC.cpp:(.text...

When compiling a static libssh2 library as i386 it always returns an x86_64 library

Hey, Been working on this for hours now so any insight would be greatly appreciated. I'm trying to compile libssh2 for the iPhone Simulator on OS X (I already have it compiled successfully for the device). I'm using the following environment variables and commands: export DEVROOT=/Developer/Platforms/iPhoneSimulator.platform/Develope...

Debug Mode vs. Release Mode - IsJITOptimizerDisabled Property

Hi everyone, I just had a look at previous questions on topic, but I've got some strange results. First of all, I followed and used the method that Scott Hanselman proposed in a old post in his blog: http://www.hanselman.com/blog/HowToProgrammaticallyDetectIfAnAssemblyIsCompiledInDebugOrReleaseMode.aspx Thus, Using the IsJITOptimizerD...

server side compile and running languages

In my website my users will submit source code of languages by using a html form . I want to compile and run this code belonging to different programming languages like c,c++,java etc... on the server and return the output or errors to the webpage. many clients upto 3000 submit such codes every week and i need to run them and sh...

Compiling C# + WPF on Linux in order to run on Windows

I have a C# application of which some parts are written using WPF (which is not supported by Mono). Is it possible to compile this application on Linux? Ultimately, the application will run on Windows, but it is part of a larger framework and our entire build process runs on Linux, so I would like to be able to compile the C# application...

Trying to compile libdwarf, gives undefined errors

I'm trying to build the libdwarf api under windows but I'm receiving the following compile errors. in dwarf_elf_access.c undefined type Elf32_Ehdr, undefined symbol EI_CLASS undefined symbol ELFCLASS64 undefined symbol ELFDATA2LSB ... I did a search through all the header files and source files and I couldn't find them defined anywher...

Removing the default language in an assembly and moving it to a satellite assembly

Hi everyone, I have a .Net 3.5 application written mostly in C# that uses .resx files to store internationalization data for several different languages, consisting of strings, control sizes and positions, etc. What I'm trying to figure out is this: it is possible to compile my application in such a way that the default culture data...

Should I be making things const?

Possible Duplicate: Sell me on using const correctness In C (and I guess C++ as well), is there any particular reason to declare a variable const other than to prevent yourself from modifying it by mistake later on? Are const variables treated differently at compile time other than the fact that they aren't allowed to be modif...

Compile C lib for iPhone

I'm trying to compile ZeroMQ C binding in order to be able to use it on iPhone, here is my configure options: ./configure --host=arm-apple-darwin --enable-static=yes --enable-shared=no CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1 CFLAGS="-pipe -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Wre...

.ASP Do I need to compile?

I'm poking my head around ASP for work and I'm not sure how it works... I'm used to being able to create a HTML, PHP, ColdFusion page, put it on the webserver and execute it. Do I need to compile ASP pages or is that just ASPX? I just want to create an ASP page and put it on my web server to test... ...