compile

compile ms office interop app from commandline

how do I successfully compile this code from the commandline, using csc.exe, in terms of which dll's I should reference. I would like this to work with Office 2007 as well as Office 2003. I am use DotNet Framework SDK 2.0. I get this compilation error: (2,37): error CS0234: The type or namespace name 'Interop' does not exist in the ...

How do I compile an extension for PHP 5.3 for windows as a DLL?

I'm currently rewriting a PHP Extension that was originally written for PHP 4.2.2. My issue is having the build/compile process generate a DLL instead of compiling the extension into the PHP core. The environment is windows server 2003. I'm using Visual Studio 2008. I used the EXT_SKEL script to generate the framework, and I can succ...

"Unresolved text symbol" -- how do I find the right library

Please pardon the newbie question, my C is very, very rusty. Trying to build xrunclient from http://www.leftfield.org/~dd/sw.html, on IRIX64, I'm confronted with: ld32: ERROR: 33 : Unresolved text symbol "XOpenDisplay" I figure this is because it can't find the proper library, but it finds the header files without complaint. How can I ...

How to reference both ASSEMBLYVERSION and ASSEMBLYFILEVERSION?

I need to display both the AssemblyVersion and the AssemblyFileVersion. In AssemblyInfo.cs, I have: [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyFileVersion("2009.8.0")] However, I only get "2009.8.0" when I reference the above with: public class VersionInfo { public static string AppVersion() { ...

Undefined reference - C++ linker error

I'm getting an Undefined reference error message, on this statement: GlobalClass *GlobalClass::s_instance = 0; Any ideas? Code is shown below: ================================================ #ifndef GLOBALCLASS_H_ #define GLOBALCLASS_H_ #include <string> class GlobalClass { public: std::string get_value(); void set_valu...

Distribute a application to the public so they can compile, without revealing the source

I have a proprietary application I would like to hand out to a few people for testing, except we do not want to reveal the source to them. The application is written in C++ for Linux. It links against readily available packages on the Fedora/Ubuntu repos. Is there any way to process the source to something intermediate... then distribu...

Compiling a Delegate with Expression.Lambda() - Parameter Out Of Scope, but is it really?

...

How do I compile a 32 bit apache module for a 64 bit platform?

Hi, I am trying to comple mod_auth_kerb for apache on mac os x 10.5.7. I get no compilation errors, but when apache tries to load it: org.apache.httpd[95092]: httpd: Syntax error on line 160 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/mod_auth_kerb.so into server: dlopen(/usr/libexec/apache2/mod_auth_kerb.so, 1...

Borland Can't Compile, what is going on, I can't even get started

C:\BORLAND\BCC55\BIN>bcc32 hello.cpp Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland hello.cpp: Error E2209 hello.cpp 2: Unable to open include file 'iostream' Error E2090 hello.cpp 6: Qualifier 'std' is not a class or namespace name in fun ction main() Error E2379 hello.cpp 6: Statement missing ; in function main() *** 3 er...

C++ Compilation Problems with Microsoft Visual Studios 2010 Beta 1

Well, I just got the new MSVS 2010 Beta 1, and just like with 2008 express, I just can't figure out how to compile anything, not even a simple hello world program. Anyone have any pointers? I usually just get a blanket fail message. No real information. Edit: Sorry about that #include <iostream> using namespace std; main() { cout ...

Browser Compilation Error for Flex

Howdy All, I'm having an odd problem that isn't mission critical since I can use the command line with no probs. In my earlier post http://stackoverflow.com/questions/1141133/flex-web-tier-setup, I had problems getting the web compiler to work. Now that it's working I use this in a browser to compile: http://localhost/flex/topsight...

Turning .NET executable into native executable

Hello all, Is there any approach to convert an application developed in .NET into a native executable (sources are included)? Installing the whole framework (up to .NET Framework 3.5 SP1) takes a lot of time - not always the computers are updated from the internet. Is it possible to call NGen in order to produce independent executable...

(Ruby) Compiling dynamic applications for Windows?

Hi All, Does anyone have any insights regarding compiling Ruby code for Windows? I've tried both "Ruby2Exe" and "OCRA", but both present their own issues. Ruby2Exe keeps presenting vague or confusing warnings such as "can't modify frozen string". OCRA on the other hand seems to want to run your script and assumes that there are no dy...

C program - checking whether two enums are in sync at compile time.

The problem that I have is that I have two enums in two different files which should have the same sets of constants (two different processes are generated by the two files along with other files). I want the enums to be in sync i.e. when some one adds a new value to enum x and forgets to update the other enum, I want to throw a compilat...

Installing PL/Ruby for PostgreSQL on Windows

I have a problem installing PL/Ruby for PostgreSQL 8.4 on Windows XP PostgreSQL 8.4 is installed and working OK Ruby-186-27 is installed and working OK I have MinGW installed and I'm using MSYS as the command line shell I have downloaded plruby-0.5.3 and unzipped. My PostreSQL is in C:\Program Files\PostgreSQL\8.4 I've created a record...

Eclipse and Command Line's Java output differs

Could there be any obvious reason why a Java program I run from the Eclipse IDE's output is different from what I get if I do the same with the command line in Windows (XP)? I am using the JDK 1.6.0_04 and Eclipse 3.4.0 The program creates threads and then tests a locking algorithm. In Eclipse, the threads do not interfere with each oth...

compile shell script so can use suid

I need to suid a script so that it can be executed by users with less permissions. Since you can't suid a script and can only suid an executable I wanted to use the generic script compiler "shc" to create an executable and then set that executable's suid bit. Only problem is that on ubuntu jaunty I can't find shc or when I do apt-get i...

Xcode compiled application does not start after deleting file.

Hi all! I've added an image file (png) to my project. Compiled my application and it all worked. Now I have deleted the image file, cleaned the build target and compiled again. Everything compiles but the application does not start. All I see is a jumping icon on the dock. Xcode says: __TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION__ Can any...

Is optimization and generating debug info part of compilation or linkage

I am reading a Makefile from someone else as follows. LDFLAGS=-lm -ljpeg -lpng ifeq ($(DEBUG),yes) OPTIMIZE_FLAG = -ggdb3 -DDEBUG -fno-omit-frame-pointer else OPTIMIZE_FLAG = -ggdb3 -O3 endif CXXFLAGS = -Wall $(OPTIMIZE_FLAG) all: test test: test.o source1.o source2.o $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) M...

Prevent python imports compiling

I have have a python file that imports a few frequently changed python files. I have had trouble with the imported files not recompiling when I change them. How do I stop them compiling? ...