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"...
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...
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. ...
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_...
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...
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...
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. ...
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é
...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
...