473,413 Members | 2,058 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,413 software developers and data experts.

_ATL_MIN_CRT VC8 release build?

How do I get it to work? I keep getting the likes of

LIBCMT.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined in
atlmincrt.lib(atlinit.obj)

for the following (none of which I explicitly call).

__encode_pointer
__encoded_null
__decode_pointer
_osplatform
_get_osplatform
errno
set_errno
get_errno
_calloc

The project is a shell context menu extension DLL (essentially a rework of the
sample of the KB's Q298109). With VC7 it was a no-brainer, just check "Minimize
CRT use in ATL" ... nothing else ... 20K image. With VC8 it's 71K. I figure if
I can get _ATL_MIN_CRT to work I'll get it down to just under 50k.

And I get unresolved symbol "_main" ... why? It's a DLL and it's UNICODE.

Thanks.
--
- Vince
Mar 26 '07 #1
1 2373
Never mind (and thanks anyway). Turning off C++ exception handling did it. With
VC8 the image is now 29K.

On 26 Mar 2007 19:53:38 -0400, Vincent Fatica <ab***@localhost.comwrote:
>How do I get it to work? I keep getting the likes of

LIBCMT.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined in
atlmincrt.lib(atlinit.obj)

for the following (none of which I explicitly call).

__encode_pointer
__encoded_null
__decode_pointer
_osplatform
_get_osplatform
errno
set_errno
get_errno
_calloc

The project is a shell context menu extension DLL (essentially a rework of the
sample of the KB's Q298109). With VC7 it was a no-brainer, just check "Minimize
CRT use in ATL" ... nothing else ... 20K image. With VC8 it's 71K. I figure if
I can get _ATL_MIN_CRT to work I'll get it down to just under 50k.

And I get unresolved symbol "_main" ... why? It's a DLL and it's UNICODE.
--
- Vince
Mar 27 '07 #2

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

Similar topics

0
by: bnc mag | last post by:
Hello, Visual Studio 6 allows users to specify seperate post-build steps to perform on Debug and Release builds. I am trying to do the same thing in C#.NET 2003, but it appears as though I only...
5
by: David++ | last post by:
Hi there, I have built a DLL in Visual C++ 6. When I build the DLL it builds fine for the debug version of the DLL (and this DLL works fine), however, I seem unable to build a Release version of...
3
by: Steve Franks | last post by:
I'm using Visual Studio 2005 RC and cannot figure out how to produce a "release" build. Am I doing something wrong? I'm wondering if perhaps MS locked out the ability to produce a release build...
1
by: kurt sune | last post by:
I am having trouble publishing a website for RELEASE. 1. web.config: <compilation defaultLanguage="vb" debug="false"> 2. in Configuration manager I set the configuration to Release for the...
6
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++...
1
by: =?Utf-8?B?SlI=?= | last post by:
I have an MFC app that was originally built using VC++ 6.0. I have built it in both debug and release (both unicode) and run them both fine. I recently converted the projects to VC++ 7.1 and...
0
by: Akira Kitada | last post by:
Hi list, I was trying to build Python 2.6 on FreeBSD 4.11 and found it failed to build some of the modules. """ Failed to find the necessary bits to build these modules: _bsddb ...
0
by: M.-A. Lemburg | last post by:
On 2008-10-25 08:39, Akira Kitada wrote: Please post a bug report on python.org about these failures. The multiprocessing module is still fairly new and obviously needs more fine tuning for...
0
by: Akira Kitada | last post by:
Hi Marc-Andre, Thanks for the suggestion. I opened a ticket for this issue: http://bugs.python.org/issue4204 Now I understand the state of the multiprocessing module, but it's too bad to see...
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.