compiling

sqrt from math.h causes compile error

So I've run into an interesting problem I've never seen before. I created a small program, as follows: #include <math.h> #include <stdio.h> #include <unistd.h> int main(int argc, char *argv[]) { int i; double tmp; double xx; for(i = 1; i <= 30; i++) { xx = (double) i + 0.01; tmp = sqrt(xx); ...

Visual Studio Compilation Time Statistic

Anyone know an add-in or something that could give me the number of time spent on compiling during the day? I am interested to gather some data about the time I use Visual Studio to code and to compile. Any tips would be welcome too if no add-in exist. Edit: I would need to have in the time all DLL loaded too by the ASP.Net webserver, ...

How do you actually use a C library?

I'm sure this question has been asked many times, but I can't figure this out. Bear with me. So when you download a library, you get a bunch of .c and .h files, plus a lot of other stuff. Now say you want to write a program using this library. I copy all the .h files into my project directory. It just doesn't compile. Great, so then I...

My flex/yacc program compiles differently on two different linux machines

One one machine, everything compiles fine. On another machine, it complains about the -ly option when I use gcc to create the output file. If I remove the -ly option, then it makes the program, but then it runs differently. What's happening. How can I get the program to run correctly on this linux machine? ...

executing gcc from notepad++?

Hello, How would I compile a file through notepad++, is there away i can invoke the compiler (gcc) and pass through the file onto gcc? i have gcc in C:\Program Files\gcc ...

How do i compile my delphi project on the command line?

Guys, Has anyone ever managed to compile there Delphi 6 & 7 (NOT any Delphi > 7 ) project using the command line? All the instructions i see are not very clear on what exactly need to go where! Am looking for step by step kind of instructions. Answers should be limited to Delphi 6 & 7, i understand Delphi2006 and > uses MSBuild which...

avoid compiling whole asp.net project?

Hi I'm developping based on a API of a .net CMS. Now I create my own class with some code. Whenever i re upload my class... it takes so long for recompiling or reloading the website. Is it possible to prevent compiling the other basic classes which I have not touched and not reuploaded and just the new uploaded? Thank you. ...

Code generation for Java JVM / .NET CLR

Hello, I am doing a compilers discipline at college and we must generate code for our invented language to any platform we want to. I think the simplest case is generating code for the Java JVM or .NET CLR. Any suggestion which one to choose, and which APIs out there can help me on this task? I already have all the semantic analysis don...

Can I tell Borland C++ Builder to copy a file somewhere else after it is built?

I have two computers. One is intended to be left 'free' for high-performance activities (such as playing games) The other is my 'all purpose' computer where I install all the apps I use for creating things, and so on. On the second computer I use Codegear C++ Builder to work on an app that I use on the first computer. If I have BCB co...

Compiling multiple languages together

Is it possible to compile multiple languages together in order to get the best of the different languages. ...

Compiling multiple languages together to make them run on different platforms

I would like to start with a THANK YOU to all those that answered my previous question on Compiling multiple languages together. Now I want to know whether or not it's possible to Compile multiple languages together so that they would run on different platforms. ...

Compiling a java program into an exe

I've just made a simple program with eclipse and I want to compile it into an exe file, but can't seem to found out how to do it simply. Any suggestions? ...

getting Xcode to build my iPhone app on the iPhone Simulator after setting up my physical iPod to test with?

Hello. I am new to developing apps for the iPhone. I just went through the entire process the other day of properly setting up my developer account to allow me to test my programs on my physical iPod. Once I set it up though, I was not able to figure out how to get the iPhone Simulator working again. I would like to test my programs ...

How can I check compilation errors in python?

#!/usr/bin/python str = "this" if(1): print "Hi" else: print str.any_random_function() This doesn't fail when I run the program. I tried py_compile but that didn't indicate the error in the 'else' loop either. Now how can I compile the program and detect errors reliably in python code? Thanks. ...

Process to convert simple Python script into Windows executable

I wrote a script that will help a Windows user in her daily life. I want to simply send her the .exe and not ask her to install python, dlls or have to deal with any additional files. I've read plenty of the stackoverflow entries regarding compiling Python scripts into executable files. I am a bit confused as there are many options but ...

What does C(++) do with values that aren't stored in variables?

I'm a bit curious about how C and C++ handle data which isn't stored in variables, e.g: int IE6_Bugs = 12345; int Win_Bugs = 56789; Yeah - everything clear. IE6_Bugs has 123456 stored at it's specific memory address. Then what about.. if ( IE6_Bugs + Win_Bugs > 10000 ) { // ... So C grabs the values of the two variables and adds...

Compiling a basic C /GDI+ program (beginner question)

I am just trying to compile this simple example : http://msdn.microsoft.com/en-us/library/ms533895(VS.85).aspx what needs to be done , in order to compile and run this? I have installed platform sdk set the correct paths for include and lib dirs tried different c compilers (visual c++ , c-free , dev-C++ ) first I was getting gdiplu...

Building linux application through Vmware

Hello, I used to develop using Visual Studio on windows... (C++) we recently migrated our app to linux (red-hat) , and currently each employee is building his own app is his own virtual machine using Vmware. out native OS is still Windows. At first, it seemed that building using g++ was faster then using VS compiler, however, after so...

Any working example of compiling a DLL in wxWidgets

I have found some examples of how to compile a DLL in wxWidgets but none of them compile in wxWidgets 2.8.9 Examples, such as, http://wiki.wxwidgets.org/Creating_A_DLL_Of_An_Application (here some of the download links don't even work, such as, http://www.frogmorecs.com/dl/fromdll.zip). Even the code at this forum http://wxforum.shadone...

Compiling a single .cpp in VS 2008 w/ the Command Line

I was using MinGW's GCC manually without a makefile to compile a DLL. It's since proved ridiculously hard to get more than one MinGW DLL running in an app compiled with Visual Studio. I've decided to compile the DLL with the Visual Studio 2008 Command Line, but I'm having a hard time figuring out how to do that. It seems there are sizab...