compilation

Partial recompilation in the C# world

Hi Guys, So I'm not from the Java world but I gather that those guys have a concept of partial recompilation whereby when a solution is re-built then only the files that have changed are recompiled. From my point of view there are two things of interest here, firstly I wonder if this sort of thing would be possible in .NET, namely wh...

How to understand everything regarding a Simple Program creation?

I have referred quite a few books on C, C++, etc. in fact i have even read the Dragon book on Compilers. But my basic doubt remains, is there any link or book i can read which explains a simple C program creating from writing source code in a Editor to Compilation to Linking? Would appreciate an internet link is provided. ...

Prepending (w/out newlines) to an auto-generated dependency list for Makefiles.

Not sure if the title makes sense... so I'll elaborate a bit. I'm toying with this makefile that uses gcc's auto-dependency list generator. At the same time, I wanted to keep a nice sorted directory structure that separates source, headers, and resources. The layout's nice and simple like so MAIN src include objects dependencies ...

How to force OpenMPI to use GCC instead of ICC? Is recompiling OpenMPI necessary?

I have a C-code for parallel computing written for gcc, and I want to compile it on a cluster, which apparently uses icc via mpicc. Correcting the code to be icc-friendly seems to be too time-demanding, so I wonder if I can ask OpenMPI to use gcc instead. I don't have the admin rights on that cluster, and I would actually prefer to do no...

Compiling node.js on Cygwin

Hi. I'm trying to build node.js on my Windows XP box (Yes, it IS painful, thanks.) using Cygwin following Ryans instructions here. Sadly calling "./configure" from the node source directory barfs up this: $ ./configure /home/LWE/sources/node.js/wscript: error: Traceback (most recent call last): File "/home/LWE/sources/node.js/tools/w...

Compile Error IcePy (Ice 3.3.1) : relocation against local symbol

Hello all, I have a problem when I try to build IcePy (from Ice 3.3.1) (for python 2.4.4). Compilation, testing and install of Ice itself (cpp version) is OK but when I tried to build the python interface ("py" directory) I get the following error (sorry for the truncated paths) : .../lib/python2.4/config/libpython2.4.a(abstract.o): re...

String concatenation in Python.

Can you describe difference between two ways of string concatenation: simple __add__ operator and %s patterns? I had some investigation in this question and found %s (in form without using parentheses) a little faster. Also another question was appeared: why result of 'hell%s' % 'o' refers to another memory region than 'hell%s' % ('o',)...

ANT_HOME is set incorrectly or ant could not be located.

I'm trying to build a project in Ant, using BuildFile (build.xml). Although ANT_HOME environment variable clearly exists and is set to the path where "ant.bat" is located, it always displays this error message. How to configure Ant properly to compile builds in Windows? Thanks ...

Java Project Compilation Errors

I have downloaded a complete package of Java product and trying to compile it using Ant. The project compiles with many errors, mostly related to imports starting with "org.apache.commons". I'm new to Java. It looks to me that some system component is missing. Some of the errors are: package org.apache.commons.logging does not exist ...

C++ Templates compilation

I am failing to answer questions related to templates. Basically how templates are compiled by the compiler. I googled but did not find answers. Can somebody help me ...

Class not registered error while compiling the solution in asp.net

Hi Experts, Unable to write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\mascottestsystem\168a196f\ae6ae894\App_Theme_.svn.ev4lzvrq.pdb': Class not registered vbc : I am really clueless that what it means. Please help me. Thanks in advance. ...

Was executable compiled with debugging info?

How can you check if a Linux executable was compiled with symbolic debugging info? ...

C++ templates and object code instantiation

With this question I'd like to better understand how C++ templates system works with regards to this question. As far as I know, template-based classes and functions are usually placed into header files. This is due to the technical issue of managing generic data types, which characterstics are unknown in principle. As soon as they are ...

Framework for building and managing third-party libraries

I am working on a cross-platform project which uses a large number of third party libraries (currently 22 and counting, and I expect this number to increase significantly). My project is CMake-based, and keeps the ThirdParty/ directory organized like so: ThirdParty/$libname/include/ ThirdParty/$libname/lib/$platform/$buildtype/ My CMak...

Error while compiling the Linux kernel 2.6.35

I am trying to compile the Linux kernel on my Ubuntu machine But I am getting the following error. I've searched on Google but have not been able to find any error related to this. drivers/platform/x86/intel_scu_ipc.c: In function ‘pwr_reg_rdwr’: drivers/platform/x86/intel_scu_ipc.c:175: error: ‘MRST_CPU_CHIP_PENWELL’ undeclared (firs...

Performance Characteristics of Fundamental Operations for Computational Estimation of Algorithmic Complexity

I've made a compiler for a general-purpose programming language. As part of the toolchain, I'd like to include a profiler with the ability to estimate the time complexity of a given expression. It seems fairly straightforward to calculate the algorithmic complexitythat is, assuming all constant-time operations take the same amount of tim...

What is the difference between building C++ Builder project from IDE and command line?

Hello, I have different behaviour of compiler, when building project from IDE and from command-line, which I can not explain. The detailed issue's description is rather big, but it's really simple. I have a C++ Builder project, which has a PAS-file included (IncludeUnits.pas). This pas-file has several units and inc-files listed. Th...

Will a hybrid hard drive improve Visual Studio compilation times?

I've seen various suggestions that hard disk speed is a big factor in Visual Studio compilation performance. There is now a relatively cheap hybrid hard drive available called the Seagate Momentus XT. This has a 7200 RPM hard disk of 250, 320 or 500GB and a 4GB SLC NAND SSD. Has anyone tried this in their development machine? Did it ...

Compiling C code for 64-bit Matlab on Intel MAC

Hi all, I need compile a piece of C code to be called from matlab (mex compiling). I am doing that on an intel mac and, since I am using Matlab's R2010a (7.10.0.499), I'd like to compile the C code into a version for 64-bits. For whatever reason, just doing mex with the -arch=maci64 option did not seem to work... As a way around, I...

Flex code doesnot(only sometimes) compiles in java+flex (+ BlazeDS+Tomcat ) combined project.a

i am working on a flex+java combined project. My IDE and computer configuration is as follows: Windows 7 Professional, 64-bit, Core2Duo 2.1GHz, 2GB Ram Eclipse (helios) with Flash Builder Premium v4.0 Eclipse plugin Flex=javaEE combined project with BlazeDS v4.0.0.14931 and Apache Tomcat 6 using BlazeDS remote object--RPC fo...