Hi SO users,
I'm trying to evolve an API. As part of this evolution I need to change the return type of a method to a subclass (specialize) in order for advanced clients to be able to access the new functionality.
Example (ignore the ugly :
public interface Entity {
boolean a();
}
public interface Intf1 {
Entity entity();
}
publi...
Hi everyone -
I am having trouble building a working version of Python with ctypes using the Intel Compiler (11.1). The trouble is, that libffi under the ctypes module does not work properly when interfacing with e.g. OpenGL.
Originally, libffi did not compile using the Intel Compilers as __int128_t is not defined, and I followed the w...
I'm attempting to install GCC 4.5.1 on my Apache server, but it says there is no acceptable C compiler found in $PATH. Any suggestions on what to do would be greatly appreciated.
When I use echo $PATH it prints:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/:/var/lib/:/usr/share/
These are the c...
Good day overflowers.
I'm writing the math functions for a small LLVM-based programming language,
and I'm currenly stumped by how to implement the common rounding fuctions floor, ceil and round (to even). Firstly because i haven't found any algorithm descriptions for these functions, secondly because I'm not familiar with what capabilit...
When compiling code with VC++, MSDN gives you the option between using the x86_amd64 toolset or the amd64 toolset (when calling vcvarsall.bat).
How do I choose between those two when compile x64 code? Will the amd64 option churn out more efficient x64 machine code than the cross compiler?
...
After building CLang on the linux environment I tried to build it on Windows using Visual Studio. Everything went right but when I tried to compile this classic Hello World! program
#include <iostream>
int main()
{
std::cout<<"Hello World!";
}
I got many errors
C:\Users\SUPER USER\Desktop>clang++ a.cpp
In file included from a.cpp...
Hi,
Looking at several posts, I get a feel that many of the questions arise because compilers/implemenetation do not emit a very meaningful message many times (but not always). This is especially true in the case of templates where error messages could be at the least very daunting. A case in point could be the discussion topic
Therefo...
Turns out it is perfectly valid for a C++ compiler to emit different machine code when recompiling the same program with exactly the same compiler/environment/whatever settings. Which implies that the compiler optimizer can decide how "deep" to optimize depending on various factors, amount of available memory included.
Does anyone have ...
Hi i have been using an IDE but now I need to run and compile from the command line.
The problem is that I have multiple packages and I have tried to find the answer but nothing has worked.
So I have
src/
Support/ (.java files)
Me/ (.java files)
Wrapers/ (.java files)
Do you know how to compile everything with javac?
...
Hi!
I have a library which uses an inline C function,
and is compiling just fine.
When another library references that library, it still compiles fine.
But if an actual app references the library, it fails to compile, saying that the _functionNameHere (yes, function name beginning with underline) - symbol is not found.
If I remove the i...
I'm having some problems statically linking ncurses to one of my programs
Here's a really simple sample program:
#include<ncurses.h>
int main(){
initscr();
printw("Hello world\n");
refresh();
getch();
endwin();
return 0;
}
When I compile it with
gcc -static -lncurses hello_curses.c -o curses
I get these...
Im trying to register an extern function with clangs JIT without success.
Heres the function im trying to call:
extern "C"
int myFunction(int val)
{
fprintf(stderr, "success!");
return 1;
}
Heres the code im using to register it:
llvm::FunctionType* ft = llvm::FunctionType::get(llvm::Type::getInt32Ty(llvm::getGlobalContext()),
...
Hi everyone,
this is my first post here, so please be gentle if I am missing something out ;-)
I am having a compilation problem with my code in Delphi 2006. I am using a static String array:
fsi_names : array [0..FSI_NUM_VARS-1] of string;
In a procedure I call at the start of the program, I assign values to this array. This code i...
The compiler seems to be ok with this (single digit hex values only):
byte[] rawbytes={0xa,0x2,0xf};
But not this:
byte[] rawbytes={0xa,0x2,0xff};
I get a "Possible Loss of Precision found : int required : byte" error?
What am I doing wrong - or are single digit hex numbers a special case ?
Java 1.5.x.
...
I have a WinForm app. I compile it, double-click on it. Predictably, csc.exe kicks in, then goes away, and the application comes up.
I am assuming that at this point the application has been jitted, so no reason for csc.exe to kick in ever again.
I then quit the app and start it again. I see csc.exe kick in again.
What's going on...
This might be a silly question, but:
Suppose an expression depends only on literals, or on other expressions that also only depend on literals; will the compiler evaluate this at compile time?
Suppose I have,
(def a (some-time-consuming-function some-literal))
(def b (some-other-time-consuming-function a))
Will both b and a be eva...
I'm building an iPhone application using Xcode 3.2.3 and I have experienced very weird behavior of the application when run in Release/Distribution Configuration. Let show the code first:
- (NSTimeInterval) durationValue {
NSTimeInterval duration = 0.0;
if (!self.startDateTime) {
return 0.0;
}
NSDate *lateDate = self.endDateTime...
Hello, are there any compilers for ActionScript 3 under *nix like systems or appropriate toolkit to work with Flash?
...
Hi,
I just want to know the language in which the C compiler was written. Please say something other than C.
...
Hi,
I am having trouble getting a Flex application (with as3httpclient) to work.
I compiled it (compc -load-config=build-swc.xml), put the as3httpclientlib-1_0_6.swc in my libs dir, and ran
mxmlc -compiler.include-libraries lib/as3crypto-1_3_patched.swc
lib/as3httpclientlib-1_0_6.swc lib/corelib.swc -- App.mxml
In my actionscript I ...