compilation

How many errors do you fix per compilation.

I notice that I tend to fix one error, then recompile, then fix another one. SOmetimes if there are problems with many files I might fix one per file. How about you? ...

[Visual Studio 2003] Setting environment variables in pre-build event and using in compilation step

In Visual Studio 2003, I am trying to set an environment variable in the pre-build event that will then be used in the compilation step, but the value doesn't seem to be propagated. For example, if the pre-build event contains this (either directly or within a batch file): set MY_LIB_VERSION=1.0.0 and AdditionalIncludeDirectories has...

Usage of MATLAB classes compiled to .NET

I compiled a MATLAB class to .NET, but instead of having my proper constuctor and methods in my class classdef Foo properties p1 p2 end methods function bar ... I have these functions in the .NET assembly: ~Algo() public Algo() public void Foo(int numArgsOut, ref MathWorks.MATLAB.NET.Arrays.MWArray[] argsOut, Mat...

What do you do during compile times?

Closed as an exact duplicate of this question. When I write C++ code I compile frequently so that I can see that I'm not making a mistake or what errors to fix next. However, that practice is unfortunately highly inefficient, especially with bigger projects that take a long time to compile. Even if compilation takes only 30 seconds or...

VB6 compilation from command line

Anyone knows how to compile a vb6 webclass dll from a command line? I am trying to build a tool for automating version building, but it fails with an 'Compile Error in File '[file name]', Line xxxx : Variable not defined' alert displayed. ...

Making GCC and Other C++ Compilers Very Strict

I'm working on a large collaborative C++ project that is both developed and run on various flavors of Linux, OS X and Windows. We compile across these platforms with GCC, Visual Studio C++ and the Intel C++ compiler. As more and more people start developing code for the project, we're starting to see weird errors in compilation and runti...

ASP.NET Page says I need to reference an assembly that does not exist!

My asp.net site has to run on several client servers. It's working fine on a majority of them, but a couple have run into an error message on a few pages: Compiler Error Message: CS0012: The type 'MetaNameValuePair' is defined in an assembly that is not referenced. You must add a reference to assembly 'App_Code.t_3vcono, Version=0.0...

Netbeans - Executing files in different projects with [SHIFT]+[F6]

In Netbeans you can run a file by pressing Shift+F6 (on Windows) So I have three projects open at the moment. What I want to do is jump between the three projects and compare the results of executing a program in each of these three panes. Netbeans seems to have a problem with this. It doesn't seem to be able to recognize that I want ...

Should I put many functions into one file? Or, more or less, one function per file?

I love to organize my code, so ideally I want one class per file or, when I have non-member functions, one function per file. The reasons are: When I read the code I will always know in what file I should find a certain function or class. If it's one class or one non-member function per header file, then I won't include a whole mess ...

compiling c++ applications so they can work on other computers as well

So I have this very simply SDL application I want to be able to pass to my friend without having him download a whole bunch of SDL packages. how can I go about this? I was told to use this line to compile: (note that I use ubuntu linux and so does my friend, and that this application compiles and runs without the "-Wl,-Bstatic" options...

Netbeans occasional non-compliation using Ruby MRI - solution?

Quite frequently when I save changes to a Ruby file in Netbeans and try to run the file, the interpreter simply doesn't do anything. The only way around it is to temporarily switch to the JRuby interpreter and then switch back to the default Ruby interpreter (1.86). Besides this hack, is anyone aware of a fix for this problem? It has pre...

Templates: Use forward declarations to reduce compile time?

I have to deal with a library that consists of many templated classes, which are of course all implemented in header files. Now I'm trying to find a way to reduce the unbearably long compile times that come from the fact that I pretty much have to include the whole library in each and one of my compilation units. Is using forward declar...

Conditional registration of certain dll(s) during installation process. (vague)

I have an application that will use a device in some cases (i.e. printer). Basically, in one office this printer will be used, and in another office this printer will never be used. The functionality to use the printer is sitting in the application code, and the dll's that communicate with the printer are referenced in the code. So the ...

the halting problem and background compilation?

I'm trying to figure out how I could write an autocompletion algorithm for Lua, but since as with many scripting languages it lacks a static type system I think I need background compilation, but during background compilation it's easy to hit the halting problem so I was wondering if anyone has solved this sort of thing before, and what ...

Can I install a pre-configured Perl binary package in my home directory?

I want to set up Perl 5.10 in my home directory in addition to the ancient Perl currently on the machine in the /usr/local. I am not a super-user on this machine. I found the require 5.10 HPUX perl binary package and it seems to work, but for some reason it seems to assume it's running in /usr/local (as evidenced by @INC error messages...

Why do compilations take so long?

I am designing a programming language and one of the problems i was thinking was why do programming languages take long to compile. Assumed c++ takes a long time because it needs to parse and compile a header everytime it compiles a file. But i -heard- precompiled headers take as long? i suspect c++ is not the only language that has this...

Can the list of C++ files in a Visual Studio project be dynamically filled ?

I have a tool that generates most (but not all) files that need to be compiled in Visual Studio. The tool reads a configuration file and generates c++ files afterwards. This list can differ from one call to another when the configuration is altered. I am wondering whether it would be possible to adapt the compiling process to my needs, ...

python PIL install on shared hosting

I'm going to deploy a django app on a shared hosting provider. I installed my own python in my home, it works fine. My promblem comes with the installation of PIL, i have no support for JPEG after the compile process. I know that the compiler dont find "libjpeg", so i tried to install it at my home, i download the tar.gz and compile it ...

Problem in compiling in release mode --VC++

Hi All, I am compiling my project in the release mode in VC++. I have a .def file where i have declared the setLog and now i am getting following error Linking... Creating library Release/HKL.lib and object Release/HKL.exp HKL_libinterface.obj : error LNK2001: unresolved external symbol _SCTP_setLog@8 Please help me on the above to...

Does changing the debug symbol to none improve performance in a VS compiled project?

Does changing the debug symbol to none improve performance in a VS compiled project? The default is 'pdb-only' for release mode. Is there going to be any adverse effect if I change it to none? ...