compilation

Haxe flash API -- how to get/set the the flash display size?

How do i get and set the size in pixels that the flash file's drawing output is? ...

Why are templates so slow to compile?

Large templated projects are slow to compile, the STL being a main culprit of this it seems from empiric evidence. But, why is it slow to compile? I've optimized builds before by watching for header includes and by combining compilation units, but I don't get why template libraries are quite so slow to compile. ...

How .NET build / compilation works

Hi, I was trying to find some simple overview but found nothing. So I hope someone will help me here. I would like to know what is the flow of compilation/assembly process in .NET. I just know: 1)The code is compiled into CIL 2) 3) ... 4) Executable binaries ...

std::sort and std::unique problem with a struct

The following code: #include <vector> #include <algorithm> struct myStructDim { int nId; int dwHeight; int dwWidth; }; void main() { ::std::vector<myStructDim> m_vec_dim; ::std::sort(m_vec_dim.begin(), m_vec_dim.end()); m_vec_dim.erase( ::std::unique(m_vec_dim.begin(), m_vec_dim.end())...

Building Java with ANT from Team Build Extensions 2010

Hi I have a basic C# project, but I want to kick off an ANT build (which compiles some very basic java code) and also fires a junit test. How can I find out from Team Build 2010 (TFS 2010 basically), if the junit test fails? If it does, I will fail the TFS build. I have the build extensions and I am using TFS 2010. However, the documen...

GCC Reducing Binary Bloat -- Strange Side Effect

The Weirdness I have compiled Google Protocol Buffers using no extra parameters for a "bloat" compile, and compile with the following command ./configure CXXFLAGS="-ffunction-sections -fdata-sections". a du-h reveals: 120K ./bloat/bin 124K ./bloat/include/google/protobuf/io 8.0K ./bloat/include/google/protobuf/compiler/java 12K ./bloat...

How to disable "warning as error" for generated files only? (MSBuild)

On our continous integration server (Teamcity 5.1.3) we have a msbuild script that is automatically building our applications. When we enable "Warning as error": in Visual Studio, it build fine (it ignores the methods within "*.designer.cs" files. But on the build server we always receive the following error: [(Rebuild target(s)):] som...

IDEA JetBrains IntelliJ - Compile error on 'make' but fine when compiled using Maven and no errors reported by IntelliJ in the class file

Hi, So I have a maven module (module-A) in IntelliJ. I recently moved some classes from it into another new maven module (module-B) and added a dependency to it. Once I had done this I also modified the signature of a method of one of the moved classes (now in module-B). I re-imported the poms so that IntelliJ would pick up the depend...

Why does a function declaration with a const argument allow calling of a function with a non-const argument?

Take note of the following C++ code: #include <iostream> using std::cout; int foo (const int); int main () { cout << foo(3); } int foo (int a) { a++; return a; } Notice that the prototype of foo() takes a const int and that the definition takes an int. This compile without any errors... Why are there no compilation errors...

C++: compilation error - "no .eh_frame_hdr table will be created"

I'm supposed to use a data analysis program for a physics experiment. I can't get it to compile though. The code is old, not really compatible with current GCC-versions from what I can find. To make things a bit more time-comsuming, I got the code from a guy who had modified all the makefiles to make it compile on Mac. I have no C++-exp...

How to validate generated Java code's syntax?

I made a little app to generate Java test classes based on certain set of information. Basically, I am generating the boilerplate code needed for a library that we are using. I would like to test the generated code in better way than just comparing the output to an expected string. Is there any facility to test if the Java code conta...

Continuous Integration and Vb6 compilation

I am implementing Continuous Integration using Cruise control.net and have more than 50 legacy Vb6 .dlls. Some of .dlls are dependent on each other. For ex: A.dll is dependent on B.dll. All .dlls are complied into one Common folder let say "Bin" and binary compatible. If signature of a method in B.dll is changed, vb6 IDE shows dialog bo...

Continuous Integration and Vb6 compilation

Possible Duplicate: Continuous Integration and Vb6 compilation I am implementing Continuous Integration using Cruise control.net and have more than 50 legacy Vb6 .dlls. Some of .dlls are dependent on each other. For ex: A.dll is dependent on B.dll. All .dlls are complied into one Common folder let say "Bin" and binary compati...

list of folders to be included BY DEFAULT while compiling C++ files

HI All I am using MS C++ compiler cl.exe at command line to build my projects. The list of directory that must be included with /I is huge. I don't want to include this big huge list for each file I need to compile. Do you know a way to set the list of folders to be included by default so that these will not appear at the command line ...

Ocropus 4.4. crashes on Xubuntu 10.4.

I have problems with Ocropus 4.4. (open source OCR). I installed Ocropus and neccessary libries following this script. Compilation/Installation goes without any problem. However after successful installation of ocropus, I am not able to run any of ocropus-* commands. Ocropus-page and ocropus-hocr crash without giving any error meaningfu...

java.util.EmptyStackException and org.apache.jasper.JspC

I try to manually compile JSPs using org.apache.jasper.JspC from my application. After setting the JSP and invoking execute() to compile it, I get an java.util.EmptyStackException without any further notice. Does anyone know what it means in the given context? ...

Failed to compile with distcc, but OK without it.

Hi guys. I'm trying to compile RaLink drivers for usb wifi dongle. Without using distcc everything is OK but if i use distcc there is error. Here make log: make -C UTIL/ cp -f os/linux/Makefile.6.util /home/tobi/RaLink_driver/UTIL/os/linux/Makefile make -C /home/tobi/linux/ SUBDIRS=/home/tobi/RaLink_driver/UTIL/os/linux modules mkdir -p...

compilation process in C++

I will be very grateful, if somebody can actually explain what exactly my compiler does when I press button BUILD, and compiler begins to compile all my .h and .cpp files how exactly this process is going on(what do I have inside object file?), why do I ask such question? I'm trying to understand what does it mean "minimize compilation d...

Java/JVM (HotSpot): Is there a way to save JIT performance gains at compile time?

When I measure the throughput of my Java application, I see a 50% performance increase over time: For the first 100K messages, I get ~3,000 messages per second For the second 100K messages, I get ~4,500 messages per second. I believe the performance improves as JIT optimizes the execution path. The reason given for not saving the JI...

Application doesn't display output

Possible Duplicate: Java application doesn't display output I am learning the basics of Java development so that I can get into Android development. In this very simple application I'm running into some problems. It's supposed to give me an output of the cars speed, gears, rpm and so forth. I can compile the application no pro...