compilation

Eziriz Intellilock on Vista 64 bits

Hi all, I'm using Eziriz Intellilock to protect a .NET windows application. The application targets .NET 2.0 and is built with "Any CPU" target. When it's unlocked it works fine in both 32bit and 64bit Vista. However, when I lock it with Eziriz Intellilock, I can only run the locked version in 32bit Vista. When trying to run in Vista 64...

Will a website still work if parts of the site have compilation errors?

Will a website still work if parts of the site have compilation errors? ...

How do I compile assembly routines for use with a C program (GNU assembler)?

Hello! I have a set of assembly function which I want to use in C programs by creating a header file. For instance, if I have asm_functions.s which defines the actual assembly routines and asm_functions.h which has prototypes for the functions as well as some standard #define's I needed. My goal is to use a C program, say test_asm.c to ...

Why isn't all code compiled position independent?

When compiling shared libraries in gcc the -fPIC option compiles the code as position independent. Is there any reason (performance or otherwise) why you would not compile all code position independent? ...

Visual Studio 2005 won't compile in Release Configuration mode

SUMMARY: How to compile in Release mode...I cannot get it to "take" what I want to do. I have a webservice project in VS2005 C# that I am trying to optimize. One of the things I've had my awareness raised on is the recommendation to compile in Release mode. I am not sure what to expect here but here is what I am seeing: I rightmouse on...

Not all code paths return, but compiler treats it as if all paths return

I can't think of a good title, but my question is not as naive as it appears. Consider this: public static void ExitApp(string message) { // Do stuff throw new Exception(...); } OR public static void ExitApp(string message) { // Do stuff System.Environment.Exit(-1); } Neither of these methods will ever return. But...

How does IIS know if it's serving a Web Site or a Web Application project?

I understand that Web Site Projects compile source on-the-fly, and Web Application Projects pre-compile source into a DLL (much like ASP.Net 1.x). But how is the difference specified in IIS? I know that Visual Studio knows -- there are different projects for each, etc. But the running instance (IIS + Framework) has to know which compi...

How does code written in one language get called from another language

This is a question that I've always wanted to know the answer, but never really asked. How does code written by one language, particularly an interpreted language, get called by code written by a compiled language. For example, say I'm writing a game in C++ and I outsource some of the AI behavior to be written in Scheme. How does the c...

C++ question... definition doesn't recognize vectors specified in declaration

I'm working on a class assignment that started small, so I had it all in one file. Now it's gotten bigger and I'm trying to separately compile main, functions, and classes (so all the classes are together in one .h and one .cpp) I have one class B, which is the parent of a lot of others and comes first in the file. One of its data member...

How can I filter compilation output only for a specific mode or buffer in Emacs?

I have a HTML page, with html-mode enabled. I call function sgml-validate to check for any markup errors. It's based on compilation-mode. I want to remove some warnings from the compilation output, so I wrote a function and hooked it to compilation-filter-hook (this variable is not documented, but compilation-filter invokes it). Everythi...

C Programming: difference between ++i and i=i+1 from an assembler point of view?

This was an interview question. I said they were the same, but this was adjudged an incorrect response. From the assembler point of view, is there any imaginable difference? I have compiled two short C programs using default gcc optimization and -S to see the assembler output, and they are the same. ...

Easiest way to determine compilation performance hardware bottleneck on single PC?

I've now saved a bit of money for the hardware upgrade. What I'd like to know, which is the easiest way to measure which part of hardware is the bottleneck for compiling and should be upgraded? Are there any clever techniques I could use? I've looked into perfmon, but it has too many counters and isn't very helpful without exact knowled...

is it better to register dll's to GAC or reference them from bin folder in ASP.NET

and if the answer is "it depends", could you provide a short explanation why ? ...

GCC --target triplet for HP-UX

I want to compile GCC and binutils which would produce 64bit executables. From GNU documents I've found out that it must look like ia64-*-hpux*. For ia64-hp-hpux11*, the default output type is 32bit: % file ./a.out ./a.out: ELF-32 executable object file - IA64 That is what I have: % uname -s -r -v -m HP-UX B.11.31 U ia64 ...

Unable to Compile Objective C using Gnustep on windows

Hi i am a beginner learning objective c. i am finding an error "hello.m:1:34: Foundation/Foundation.h: No such file or directory" i came to know that i need to make a make file may i know how to make the make file please ...

Generics, inheritance, and failed method resolution of C# compiler

I ran across a compilation issue today that baffled me. Consider these two container classes. public class BaseContainer<T> : IEnumerable<T> { public void DoStuff(T item) { throw new NotImplementedException(); } public IEnumerator<T> GetEnumerator() { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnume...

WPF - Compilation error: Tags of type 'PropertyArrayStart' are not supported in template sections

Ordinarily I wouldn't just post an error message on SO, but after a Google search only found one hit, I thought I'd at least open the floor for this error here on SO. I have a custom control called Sparkline with a dependency property called Values of type unit[]. Here's an example where I use it in a DataTemplate: <DataTemplate DataT...

How can I compile C/C++ code in PHP on the Windows platform?

Can anyone help me with the compilation of C++ code in PHP on the Windows platform? I am using Microsoft Visual C++ 6.0. I have tried the following options which I knew, but none of them work: system('test.c') exec('test.c') The file 'test.c' has been placed in my php/www/ folder. I need to first compile the code, which makes test....

Is there any way to ensure a function is compiled JIT?

I have a function that I want to be sure is compiled JIT (i.e. right before it's called). Are there attributes or assembly settings that will ensure this? If not, then how can I guarantee that a function is compiled JIT? Thanks! EDIT: I want to do this to prevent my application from crashing due to a missing referenced assembly. If my...

pthreads compile but binary is not created.

I am trying to compile a program I wrote in C++ for an assignment that uses pthreads. I am using Eclipse in Linux, and I didn't have any problems compiling, after I added "-lpthread" to the compiler arguments (to g++, gcc and linker). However, when I was about to run and debug, Eclipse gave me an error message window "Launch failed. Bina...