473,402 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

print compilation options

Is there any way to get VS to print the compilation settings that it is
invoking as it is calling all the compiler tools, for instance
instead of

Compiling...
stdafx.cpp
myprog.cpp
Linking...

I want
cl.exe ...blah blah blah...
link.exe ...blah blah blah...

so I know what options it is using, in order to find out how it builds a
damn static library!
If I try compiling with /D"_LIB", it complains that entry point must be
defined, and tries to create an .exe. If I use /LDd, then it outputs a .LIB
file - fine, but it outputs a DLL aswell, and it's the DLL where the
functions are! I want ALL the functions to be in the .lib file, not just
their stubs. But I want to do this without using Visual Studio.
If a combination of cl.exe and link.exe can't create a static library, then
how the bloody hell does Visual Studio do it????!!!


Why don't I use Visual Studio you might ask? Well however immoral nicking it
is, to nick it for the purposes of building an application that I intend to
sell is something that I would be a bit hypocritical if I did - especially
when the application I'm building is to help other people build *their*
applications. So I'm sticking to the SDK.
Please DON'T say why don't I use the Express edition - answer, because it
can't create resource files which my application needs (and someone at
Microsoft has confirmed this to be an issue that isn't likely to be fixed, as
the resource editor relies on ATL in some way).

Nov 21 '05 #1
5 1103
Bonj wrote:
Is there any way to get VS to print the compilation settings that it
is invoking as it is calling all the compiler tools,


Just look at the buildlog.htm after a build from within VS - it tells you
everything you need to know.

-cd
Nov 21 '05 #2
Right, OK.
It confirms that the build process uses "lib.exe". Can anybody confirm for
sure whether this is or isn't included in the 32-bit SDK, or is it something
you can *only* get if you purchase Visual Studio, and if the latter, any
thoughts on why, other than sheer bloody-mindedness?

Also, any thoughts on whether gcc or borland includes a lib.exe (or
equivalent)?
I'm rapidly losing patience with this microsoft shite, they give us
optimizing compiler and then take away a whole bunch of other stuff...

"Carl Daniel [VC++ MVP]" wrote:
Bonj wrote:
Is there any way to get VS to print the compilation settings that it
is invoking as it is calling all the compiler tools,


Just look at the buildlog.htm after a build from within VS - it tells you
everything you need to know.

-cd

Nov 21 '05 #3
>> Is there any way to get VS to print the compilation settings that it
is invoking as it is calling all the compiler tools,


Just look at the buildlog.htm after a build from within VS - it tells you
everything you need to know.


Interesting. How do you get it to generate that? Is that a VC++ only
feature? I would love to get that for VB / C#!
--
Peace & happy computing,

Mike Labosh, MCSD
"I have no choice but to believe in free will."
Nov 21 '05 #4
Bonj wrote:
Right, OK.
It confirms that the build process uses "lib.exe". Can anybody
confirm for sure whether this is or isn't included in the 32-bit SDK,
or is it something you can *only* get if you purchase Visual Studio,
and if the latter, any thoughts on why, other than sheer
bloody-mindedness?
I'm sure lib.exe is included in the PSDK tools. Even if it's not, it's just
a wrapper on link.exe anway. Trying typing

link /lib

on a command prompt...
Also, any thoughts on whether gcc or borland includes a lib.exe (or
equivalent)?


They certainly do.

-cd
Nov 21 '05 #5
Mike Labosh wrote:
Is there any way to get VS to print the compilation settings that it
is invoking as it is calling all the compiler tools,


Just look at the buildlog.htm after a build from within VS - it
tells you everything you need to know.


Interesting. How do you get it to generate that? Is that a VC++ only
feature? I would love to get that for VB / C#!


It's a C++ feature, AFIAK.

-cd
Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: aladdin | last post by:
Hi, I wonder what's the difference of compilation between using command line and using VS.NET IDE. For I have a windows service program, there's always a difference between the output file...
10
by: Sune | last post by:
Hi, previously I used Eclipse CDT for compiling my files just to get started with C and leave C++ behind. Now it's time to get a little more serious so I've moved my files to a new workplace and...
1
by: Bonj | last post by:
Is there any way to get VS to print the compilation settings that it is invoking as it is calling all the compiler tools, for instance instead of Compiling... stdafx.cpp myprog.cpp Linking......
1
by: Pardhasaradhy | last post by:
Hi, Please see the following error and revert back as early as possible. I am getting this once I request for the asp.net page. Server Error in '/tanishq' Application. Timed out waiting for...
2
by: Steve | last post by:
Hi I'm receiving the following error whenever a new build is placed onto our production server: Timed out waiting for a program to execute. The command being executed was...
0
by: Marco Viana | last post by:
Hi, I'm developing an ASP.NET application with Visual Studio .NET 2003 in a Win XP Professional, .NET Framework 1.1 and IIS 5.1 computer with all the lattest patches. When testing a page...
6
by: swartzbill2000 | last post by:
Hello, I have a VB 2005 Express project with a TraceListener-derived class to route Debug.Print output to a log file. It works fine for Debug builds. What is the correct combination of changes to...
4
by: Bob | last post by:
Hi, In VS2003 conditional compilation constants and their state could be defined at project level. I was using this to control what features where offered by various builds. i.e....
2
by: tkirankumar | last post by:
Hi all, uname -a SunOS cbmrsd1a1 5.10 Generic_118833-17 sun4us sparc FJSV,GPUZC-M g++ -v Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/specs Configured with:...
3
by: psroga | last post by:
Can anyone look at this code and let me know why pthread_mutex_unlock and pthread_mutex_lock are giving me the "phtread_mutex_unlock" was not defined in this scope error. I am compiling the code...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.