This has been frustrating me intensely.
I am trying to compile my source code from the Windows 7 command prompt. I have added the directory in which my *.java file is located to the classpath. Yet, I still get this error:
C:\Users\Alex>javac HelloThere.java
javac: file not found: HelloThere.java
Usage: javac
use -help for a list of p...
I'm using cygwin and when I'm compiling hello world with gcc somehow the compiler doesn't understand about using std namespaces (some of them are missing), but when I compile with g++ yes they work. But when I click on the helloworld.exe it says that cygwin1.dll is missing.
Is there anything can I do?
...
In my source code, if I write 1.23 as a literal, e.g. doThis(1.23), gcc assumes it's a double.
Rather than type doThis((float) 1.23), is there a way to use floats for decimal literals/constants unless otherwise specified in an individual source file?
Mega-bonus points, is there a way that works across (nearly) every C compiler?
...
Is there a way to save a compiled version of my perl scripts?
Or a way to do a JavaScript style compile where you just remove comments, whitespace, etc?
...
What's .a files in C programming in linux ?
Is it library file ?
To merge with the math library libm.a you would type
cc -o program_name prog.c -lm
when you compile the program. The -lm means: add in libm. If we wanted to add in the socket library libsocket.a to do some network programming as well, we would type
cc -o program_name...
Which are the resources on implementation of interpreters/compilers for functional languages? I would like practical examples, and I already have a copy of The Implementation of Functional Programming Languages.
...
I have a .NET 4.0 class libary, which only uses .Net 2.0 features. To make this library more compatible with Mono, I'm considering changing the Target Framework to 2.0 instead of 4.0 Client Profile.
But the question is: Does changing the Target Framework to an older version, make the library run slower (hurt performance). The GUI of the...
Hi,
Can someone give me a link to a good online C++ compiler and an evaluator? I once bumped into such a site but I don't remember the name now. Thanks
...
Has anyone had success compiling QJson statically into an application? I am trying to use QJson statically in my Qt application (Windows/Mac), meaning I'm trying to use the source files directly rather than compiling a DLL and using it. Is this possible? My program is producing lots of errors when I attempt to do it, mostly "multiple dec...
I am compiling some C++ programs through a perl script using:
g++ -o out `find ./ -iname "*.h" -or -iname "*.cpp"`
This seems to generate an an out file every time, regardless of whether the program compiled successfully or not.
Whenever the script tries to run programs like this, it gets permission errors (weird since I'm running as ...
Here is my code
Dim provider = New Microsoft.VisualBasic.VBCodeProvider()
Dim parser = provider.CreateParser()
parser is always Nothing. I know the Method CreateParser is obsoleted. How to create a VB code parser?
Thanks!
...
Hi all!
I'm using Microsoft Visual C++ 6.0 and Microsoft Visual Studio 2008 to develop an academic computer vision project.
In this project i need to use OpenCV 1.1 (http://opencv.willowgarage.com/) and CvBlob (http://code.google.com/p/cvblob/).
I tried to compile this project with Microsoft Visual Studio 2008 and it compiles without...
Hi all,
I have created a C source file using the modules from other source files. Suppose the created source file is abc.c .Mine C file compiles fine using the following command.
gcc -c abc.c
I have compiled each and every source file that are linked to the abc.c .While creating the executable file using the following command:
gc...
I've just come across a pretty strange problem with VS2010 and Script#, which most of the time I am able to re-create.
In my simple scenario I have 2 projects in my solution; a standard Asp.Net MVC2 Web Application, and a Script# jQuery Class Library. I created a static class (attributed with [Imported]) with a static method on it, the ...
OK, the question title is a bit crappy, but I didn't really know how to phrase this better.
The problem I have is that given a std::vector<T> vs. a T* + size_t count my compiler (Visual Studio 2005 / VC++ 8) will actually generate worse code when looping over the pointer than when looping over the vector.
That is, I have a test struct ...
I'm making a JVM language. This language has modules (namespaces) and the ability to import java libraries. In the import section the user can import things like "java.io." or "java.concurrent." etc.
How do I know that a "File" reference in the source is in the package java.io and not somewhere else?
...
I have a for loop where each step i, it processes an array element p[f(i)], where f(i) is an injective (one-to-one) map from 1...n to 1...m (m > n). So there is no data coupling in the loop and all compiler optimization techniques such as pipelining can be used. But how can I inform g++ of the injectivity of f(i)? Or do I even need to (c...
Hi,
I'm developing a GPS application under Linux, with ARM7 microprocessor.
Which compiler do you recommend? Do you know if there is any toolkit with libraries ready to develop GPS applications?
A friend of mine recommended gcc... what do you guys think about it?
Thank you
...
when a compiler compile a high-level language into the target language that are executable , what form is the target language in ?
Is it a lower-level language like machine code ? Or the compiler just translate it to the OS's functions from the OS's API and the OS do all the work under the hood?
...