compilation

Build two interdependent dll

I have to interdependent dll here that i would like to build without having to build them twice (force build both of them and rebuild them again to allow linking). Here is an exemple : **DLL A** void fooA() { fooBB(); } void fooAA() { fooB(); } **DLL B** void fooB() { fooA(); } void fooBB() { } Is there a way to build those...

Product mode with a Debug DLL

I know that a class library compiled in 'Release' mode will run faster and more efficiently than one compiled in 'Debug' mode, but does anyone know to what extent? EDIT: This is for a .net dll. ...

getting error not all code paths return value by c# compiler

This is a basic string reverse program and I want to do some level of exception handling in it. But during compilation it gives me an error "NOt all code paths return value. I am not able to find out why public static string Reverse(string s) { try { if (string.IsNullOrEmpty(s)) ...

Compiling PHP 5.1.6 with PDO MySQL

I originally asked this question on ServerFault and haven't got any response and I figure it's programming related so, here goes... A while ago a large client of ours moved to a single hosting provider who spec'd out a software environment which would be consistent accross all the live servers. Amongs other things this includes Apach...

How can I speed up Netbeans Task Marker resolution?

I'm trying to quickly navigate and fix problems in code in Netbeans, and it just takes too long. I'll fix a problem, and it will take seconds to re-compile. While this is happening, the marker remains, and all the others that depend on it will too (requiring multiple next-marker key strokes to get to a "new" problem). If I'm doing a f...

mqueue.h not found

Hi all In one of my application, I am using "mqueue.h". I was able to compile and execute it. But one of our customer to whom I released the code, is complaining something like * mqueue.h is not found * He has not attached the exact error message though. In my linux PC, it is available in /usr/include. Can anyone guess any reason why ...

Taking A Compilation Course In Undergraduate CS Studies. Useful?

I don't know what every university calls that, but I'm talking about a course that primarily teaches you compilation principles, and how to implement a basic compiler. Do you think it's helpful for a programmer to have that knowledge (not necessarily one who wishes to develop a compiler in the future)? ...

Visual Studio C++ 2008 linking question

Hi, My project has a bunch a solutions containing several projects. There're 2 Configurations: Release (/MT) Debug (/MTd) We have a 3rd party library. Should we have 2 version of it for each Configuration (Release version compiled with /MT and Debug version compiled with /MTd) or it's enough to have one version (/MT or /MTd)? Tha...

display quasi-real-time data to user with php/ajax

Hi, I currently have a class Status, and I call it throughout my code as I preform various tasks, for example - when I upload an image, I call $statusHandler = new Status(121), when I resize it, I call $statusHandler = new Status(122). Every statusID corresponds to a certain text stored in the database. Class status retrieves the text, ...

BuildManager Resolving Page Inheritence

Hey all, I have written a VirtualPathProvider to change how aspx pages are loaded into my ASP.Net application. As part of this process I have removed Code-Behind files and I am simply ascerting that my page inherits from a particular page class. eg: <%@ Page Language="C#" AutoEventWireup="true" Inherits="Namespace.PageClass" %> If I...

Dynamically Loading Page Class/Assembly: Type or name could not be found in the global namespace

Hi, I am trying to create an ASP.Net Web application that stores it's "content" (ASPX/ASCX and assemblies) somewhere other than the file system (Inside a service, for example) and loads them in dynamically as required. I have successfully created a VirtualPathProvider that takes care of reading ASPX/Master/ASCX files from alternate loc...

XAML Conditional Compilation

Is there an easy way to use the same conditional compilation symbol that I'm using for my c# code, in my xaml files? ...

How to use the C++ Sockets Library

Hi, I'd like to do some network socket programming in C++ and have found the C++ Sockets library. First, is this a good way to go in C++? Normally in C, I'd use some of the stuff beej describes in his tutorial. Second, how do I compile the examples given on the site? I can't figure it out from their installation/configuration guide. ...

Eclipse C++ compilation warning problem

Hi, Here a code to demonstrate an annoying problem: class A { public: A(): m_b(1), m_a(2) {} private: int m_a; int m_b; }; This is an output on Console view: make all Building file: ../test.cpp Invoking: GCC C++ Compiler g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"test.d" -MT"test.d" -o"test.o" "...

Compiling PARDISO linear solver test case with GCC

I am trying to compile a linear system solver using PARDISO. The test case (pardiso_sym.c) also downloaded from the same website above. I have the following files inside the directory: [gv@emerald my-pardiso]$ ls -lh total 1.3M -rw-r--r-- 1 gv hgc0746 1.3M Aug 7 11:59 libpardiso_GNU_IA64.so -rw-r--r-- 1 gv hgc0746 7.2K Nov 13 2007 p...

How to build a resource library from rc files in Delphi 2009?

I need to build a resource DLL from a supplied rc file. Here's what I did upto Delphi 2007: library ResourceTest; {$R '..\..\src\Media\TestBitmaps.res' '..\..\src\Media\TestBitmaps.rc'} {$R *.res} begin end. Compiling this project would create the res file from the rc file and link it in the final DLL. In Delphi 2009 it doesn't wor...

Questions about .NET and Xenocode Postbuild

Referring to this topic (and accepted answer). Isn't .NET Windows only (except for emulators)? How will using Xenocode Postbuild affect the portability of the application? Will compiling my application using Xenocode Postbuild affect the size/speed of it? Which way? Generally: What are the differences/advantages/disadvantages of the VS...

Line wrapping within emacs *compilation* buffer

Hi, I have a little problem with compiling my project in emacs. The compilation buffer does not line-wrap and I have some very long compile and link commands which I would like to sanity check sometimes. Does anyone know how to force line-wrap on the output added to the compilation buffer, ideally as it is added (a la auto-fill). V...

Automatic reference of class files inside App_Code vs reference of class files outside App_Code

Hi, all questions refer to Web site projects. 1) Why are file classes inside App_Code folder automatically referenced by the rest of application, while file classes created outside App_Code aren’t? 2) I don’t know much about compilation, but why do we need to explicitly reference class files created outside App_Code? Because those...

Recompile C# while running, without AppDomains

Let’s say that I have two C# applications - game.exe (XNA, needs to support Xbox 360) and editor.exe (XNA hosted in WinForms) - they both share an engine.dll assembly that does the vast majority of the work. Now let’s say that I want to add some kind of C#-based scripting (it’s not quite "scripting" but I’ll call it that). Each level ge...