compile

Compiling C-code from the Command Prompt in Windows?

Hello! I want to compile C code from the Command Prompt in Windows. I have added the environment variable to the PATH and I can compile .cs files with: csc app.cs That's OK, but how do I compile app.c? ...

How to temporarily replace one primitive type with another when compiling to different targets?

How to easily/quickly replace float's for doubles (for example) for compiling to two different targets using these two particular choices of primitive types? Discussion: I have a large amount of c# code under development that I need to compile to alternatively use float, double or decimals depending on the use case of the target assembl...

optimization and debugging options in Makefile

I wonder where to put the optimization and debugging options in Makefile: linking stage or compiling stage? I am reading a Makefile: ifeq ($(STATIC),yes) LDFLAGS=-static -lm -ljpeg -lpng -lz else LDFLAGS=-lm -ljpeg -lpng endif ifeq ($(DEBUG),yes) OPTIMIZE_FLAG = -ggdb3 -DDEBUG else OPTIMIZE_FLAG = -ggdb3 -O3 endif ifeq ($(PROF...

How can I create an executable to run on a certain processor architecture (instead of certain OS)?

So I take my C++ program in Visual studio, compile, and it'll spit out a nice little EXE file. But EXEs will only run on windows, and I hear a lot about how C/C++ compiles into assembly language, which is runs directly on a processor. The EXE runs with the help of windows, or I could have a program that makes an executable that runs on a...

How to compile pjsip for iphone 3.0

Hello, I have been trying to compile pjsip for iphone 3.0 but I have been unable to do so. I have tried following the guides on siphon and voiphone (open souce iphone projects that use pjsip). And apparently I am not the only one that is unable to compile pjsip for iphone 3.0 has anyone been able to do so succesfuly?. How can it be done...

AdaptRecursive StackOverflowError

While compiling my project I get: The system is out of resources. Consult the following stack trace for details. java.lang.StackOverflowError at com.sun.tools.javac.code.Type$WildcardType.isSuperBound(Type.java:435) at com.sun.tools.javac.code.Types$1.visitWildcardType(Types.java:102) at com.sun.tools.javac.code.Types$1.visi...

compile against libc++ statically

I wrote some custom c++ code and it works fine in ubuntu, but when I upload it to my server (which uses centos 5) its fails and says library is out of date. I googled all around and centos cannot use the latest libraries. How can I compile against the stl so that it is included in the binary and it doesn't matter that centos uses an ol...

Building from the command line to produce a binary for Mac OS 10.5 (and 10.6)

I am referring to the following source: http://clpbar.sourceforge.net Build process is the standard: ./configure followed by make If I build on 10.5 I get a binary whose file contains: Mach-O executable i386 If I build on 10.6 I get a binary whose file contains: Mach-O 64-bit executable x86_64 How can I build from the command line on ...

How to compile dll loadable in tcl

Hi, After trying many and searching web option to compile and load dll I could not able to create dll for tcl. Can you explain me how to do this. ...

compile php5 on centos with --enable-pcntl

I am trying to enable pcntl on my php on centos. I see I am suppose to do a ./configure make build but have not ever done it. Could someone give me some direction? ...

Link libraries compiled by various compilers

Hello, I would like to ask in more detail about a answer I recently got here (3rd one): Compiled languages basics If I write in C and MinGW and I link to C++ library compiled by VC - will it work? How do I know in advance? In other words, if I'm able to create without warnings an .exe which links to that C++ .dll, and I'm able to run ...

How do I turn on multi-CPU/Core C++ compiles in the Visual Studio IDE (2008)?

I have a Visual Studio 2008 C++ project that has support for using multiple CPUs/cores when compiling. In the VCPROJ file I see this: <Tool Name="VCCLCompilerTool" AdditionalOptions="/MP" ... I can't find where that was turned added via the IDE and I want to set up another project that uses all of my cores during compilat...

dynamic code compilation

I'm working on a program that renders iterated fractal systems. I wanted to add the functionality where someone could define their own iteration process, and compile that code so that it would run efficiently. I currently don't know how to do this and would like tips on what to read to learn how to do this. The main program is written ...

Eclipse compiling problem

Is there a way to set Eclipse report compile errors same as javac? I stumble upon few cases where something is working in eclipse, and cannot be compiled with javac. I understand that eclipse uses ECJ and that cannot be changed, but can it anywhere be set that everything that cannot compile with javac be a compile error in Eclipse? (sin...

Compile an ASP.Net in a WinForms application

I'm trying to develop an agent/client that will listen to HTTP requests on a given port, and serve a simple ASP.Net page. To that end, I'm using the HttpListener and ApplicationHost classes. I've added a simple page to my project (mypage.aspx). When it contained all the code in the single file, all worked well (tested it by adding <% Res...

Customizable / Dynamic SWF generation

Hi guys Wondered if anybody knows how customizable Flash swf files are made, where there appears to be a template swf that the user can then input some changes (eg text or image) and receives a newly-compiled swf file with their changes. Some examples: - http://flashfreezer.com/landingconfetti/index.html Constraints: - user receives a...

How do you compile high-level code to get assembly code?

I was wondering if there's some special way to compile high-level code (preferably from c/c++ or java) to get the corresponding assembly code. ...

How to decrease build times / speed up compile time in XCode?

What strategies can be used in general to decrease build times for any XCode project? I'm mostly interested in XCode specific strategies. I'm doing iPhone development using XCode, and my project is slowly getting bigger and bigger. I find the compile / link phases are starting to take more time than I'd like. Currently, I'm: Using S...

Compile OpenCV with ffMpeg support

I'm having problems compiling OpenCV with ffMpeg support under Debian. I downloaded new ffMpeg and installed it, downloaded opencv-1.1pre1.tar.gz and unpacked it. then ./configure --enable-apps --enable-shared --with-ffmpeg --with-gnu-ld --without-quicktime CFLAGS=-I/usr/local/include CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/loca...

iPhone application compatibility, compiled using 3.1 sdk. Can resubmitt binary compiled using 3.0?

Hello I have recently uploaded an application to the app store and it got approved. The issue is the application has been compiled using the 3.1 sdk, and thus is not working on 3.0 devices. Would there be any problems if i resubmitted the application compiled using the 3.0 sdk? (I want to support 3.0 because a lot of people still have no...