|
Is there any way to know if I'm compiling under Microsoft Visual Studio 2008 ?
Started by Vhaerun on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
There are a couple of methods.
That would change a bit the code , if compiling under WinCE .
|
|
Related to this question . What's the process for compiling a C program (assume 1 file)?
Started by RCIX on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Cc single_main.c
You might complain that 'a.out' is a too generic name... .
Quoting http://users.actcom.co.il/~choo/lupg/tutorials/c-on-unix/c-on-unix.html :
The easiest case of compilation is when you have all your source code set in a single file .
|
|
Hello,
I am compiling a demo project.
The project is written for windows and linux. I have written a Makefile. However, I am not sure how to specify the platform the compiler will be compiling on.
I will be compiling on Linux.
In my source file I have...
Started by robUK on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
In linux, there will always be a:
#define __linux__ 1
in the output .
Also, if you run:
echo "" | cpp -dD
You can see the list of default #define when compiling.
You can add -DLINUX=1 when compiling.
|
Ask your Facebook Friends
|
Is there a specific Xcode compiler flag that gets set when compiling for iPad?
I want to conditionally compile iPad vs iPhone/iPod Touch code for example:
#ifdef TARGET_IPAD code for iPad #else code for iPhone #endif
I know there is already TARGET_OS_...
Started by Rei on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
And because of the possibility of running the app in both devices, there... .
Use NSClassFromString to see if a class exists because the same app can be installed on both devices .
Instead of using compile-time flags, you should use run-time check e.g.
|
|
Is there a difference between compiling php with the parameter:
--with-[extension name]
as opposed to just compiling it as a shared module and including it that way? Is there any performance benefit? If not, why would you want to do this?
Started by ryeguy on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Hi,
Maybe it won't be a full answer to your question, but here's what I've been able to find so far : there is some kind of a partial answer in the book " Extending and Embedding PHP ", written by Sara Golemon ( amazon ; some parts are also available ... .
|
|
Is there any performance to be gained these days from compiling java to native code, or do modern hotspot compilers end up doing this over time anyway?
Started by jason on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Experience, unless you are writing a video codec, there is no benefit to compiling Java apps vs.
|
|
Hi,
Why compiling C++ in Mac always create *.dSYM directories? Is there a way to disable that?
Started by neversaint on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It's because your Xcode....
You can type in "sym" in search field to help find it .
Go to "Project"/"Edit Project Settings" menu item, click on build tab, under "GCC 4.0 - Code Generation" section, uncheck Generate Debug Symbols .
I assume your using Xcode.
|
|
About 10% of the time when I go to compile code that should compile, blend fails. I know the code should compile because w/o changing a thing it will compile in VS just fine. The really weird thing is that about 50% or more of the time, after compiling...
Started by Narcolapser on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I do have a gripe of my own, which is that Blend insists on building the whole solution, even though ... .
Afraid I can't answer your question, other than to say that there ought to be no difference: both VS and Blend make use of MSBuild to compile.
|
|
Can anyone please help me with compiling servlet? Do I have to include path for JDK or Tomcat or both to compile servlet in command prompt?
Started by Bhuvana Nagulan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
So you basically need to compile your servlets like:
javac -cp .....
Tomcat has it in flavor of servlet-api.jar in its /lib folder .
You obviously need to include at least the Servlet API in the classpath .
You'll need servlet.jar in your classpath.
|
|
Hello.
Linux kernel is written for compiling with gcc and uses a lot of small and ugly gcc-hacks. Which compilers can compile linux kernel except gcc?
The one, which can, is the Intel Compiler. What minimal version of it is needed for kernel compiling...
Started by osgx on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Must be compiled with gcc...Since....
In short, you cannot, because the kernel code was written to take advantage of the gcc's compiler semantics...and between the kernel and the compiled code, the relationship is a very strong one, i.e.
|