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...
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
...
When we are compiling a C program the output is stored in a.out. How can we redirect the compiled output to another file?
...
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...
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...
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...
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...
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.
...
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 ...
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?
...
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,...
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
...
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...
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...
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...
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?
...
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...
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-...
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 ...
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...