compilation

Automatically separate class definitions from declarations?

I am using a library that consists almost entirely of templated classes and functions in header files, like this: // foo.h template<class T> class Foo { Foo(){} void computeXYZ() { /* heavy code */ } }; template<class T> void processFoo(const Foo<T>& foo) { /* more heavy code */ } Now this is bad because compile times are unbearab...

Configuring conditional compilation symbol in app.config file

Can we configure conditional compilation symbol in app.config file? If it is possible then let us know how to do it. Thanks, P. Gopalakrishnan ...

Determining C executable name

When we are compiling a C program the output is stored in a.out. How can we redirect the compiled output to another file? ...

Estimating relative CPU usage during compilation...

While compiling this morning I had a thgought. Given a dedicated Linux machine (running Fedora for example), users remotely log in and compile (using gcc) their c++ software, which is stored on their own machines (on a small LAN), linked with symbolic links, to the Linux box. Assume that each user is compiling exaclty the same code fo...

Designer Generated Code in Visual Studio C++/CLI Winforms Project

The Windows Forms Designer in C++/CLI projects generates both the declarations and definitions of all event handlers in the header file itself. The .cpp it generates is a mere stub which simply includes the generated header and stdafx.h. I feel that I could reduce compile times if I moved the implementation (i.e. definition) of all class...

Running :make from gVim in Background

I use gVim in windows to edit my code (mostly C++). I use :make in gVim to compile the project, but this is a blocking operation, that prevents me from using gVim until the compilation is complete. How can I do :make asynchronously and still get the benefits of reading the errors back into Vim and jump to the errors in source code? Bonus...

Static compilation in the .NET world

I'll be writing a small desktop app for a client that has WinXP machines and they won't be installing the .NET framework (at least not for me). So my choices are limited to either C++ or VB6, neither of which sound great. I remember reading back in the day that Mono came up with a static compiler, but recently the only thing I could f...

When compiling swf files in debug vs. release, what are the performance differences?

Where can i find information on the differences between compiling a swf in release or in debug? I would like to know about differences in terms of file size, memory consumption, and overall. ...

Website project (ASP.NET) - what assembly will my code compile to?

I've got a Website project in VS.NET 2008. I have a class in App_Code folder namespace RM{ public class MyClass{ ... } } I need to know what assembly this will compile to? You'd think it should be RM.dll but doesn't look like it. I know that it's better to use WebApplication project instead, but it's not an option at ...

How is the order of Compilation of source files decided

I have a workspace containing many *.c files, which I compile. (I could use any toolchain say MSVC6.0, or gcc etc) Which source file is compiled first? How is the order of the files to be compiled subsequently decided? ...

What is the significance for Ruby programmers of SAP's new implementation of Ruby?

SAP announced Blue Ruby, a version of Ruby that runs inside the ABAP Virtual Machine. This seems to lend additional credibility to the Ruby language but, except for SAP developers, does this have any applicability to the rest of the Ruby community? I'm just wondering what other significance this may have. Additional job opportunities,...

Parser error when trying to access the ASP.NET password recovery page?

When I try to access my ASP.NET password recovery page, I get the following error: Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load ...

Converting from Derived* to Base*&

I was trying to answer the question mentioned here by passing the reference to the pointer instead of pointer to pointer like this: class Parent { }; class Child : public Parent { }; void RemoveObj(Parent*& pObj) { delete pObj; pObj = NULL; } int main() { Parent* pPObj = new Parent; Child* pCObj = new Child; pP...

VIM Compilation in windows

I am interested in compiling windows for Python25 support but when I make -f Make_ming.mak gvim.exe I get the following (_MAX_PATH undeclared) : gcc -c -Iproto -DWIN32 -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 -DHAVE_PATHDEF -DFEAT_BIG -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_GUI_W32 -DFE...

iPhone - Strange Compile Errors.

I have an iPhone (Xcode) Project that was working fine. Something must have been changed, because all of a sudden I am getting errors that pertain to NSLog, UIActionSheet, and several other items I have been using JUST FINE until now. What am I missing? Any assistance would be GREATLY appreciated! Checking Dependencies Ld /Users/markgo...

My code compiles in Eclipse but I get a ClassNotFound at runtime how can I fix it?

What would cause a jar to be added successfully to an Eclipse Java project but then at runtime some of the classes from that jar are not found with ClassNotFound exceptions? ...

Shell script to emulate warnings-as-errors?

Some compilers let you set warnings as errors, so that you'll never leave any compiler warnings behind, because if you do, the code won't build. This is a Good Thing. Unfortunately, some compilers don't have a flag for warnings-as-errors. I need to write a shell script or wrapper that provides the feature. Presumably it parses the com...

How long can template compilation really take?

Template metaprogramming can be used for computing things like factorial at compile time instead of during runtime. I've heard that some programming contests have introduced limitations on compilation time exactly to weed out template metaprogramming abuse. Is there any innocent looking example of using templates that takes some really-...

Running corba project in Netbeans with corba compiler vbjc

Hi I am doing a small assignment in Corba using java. I am using netbeans ide for this purpose. In order to compile and run i need to compile and run with commands vbjc and vbj. I can do it by command line but for that i have to remove all the package declaration which is painfull. Can any one help me with this as it will speed up my ...

Slow compilation of boost-based unit test suite

Hi all, I use boost.test library to write unit tests for my application. The problem is, when one particular *.cpp file containing test suite grows up to certain size, compilation of that file becomes extremely slow. I use BOOST_AUTO_TEST_CASE macro to define test cases. Boost version is 1.34.1 Build env is autotools + gcc 4.3 under...