473,386 Members | 1,720 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,386 software developers and data experts.

LNK1000 error when building resource-only DLLs

I frequently get a LNK1000 error when building a resource-only DLL. If I
rebuild, the problem usually goes away.

Thanks,
Dan

------ Build started: Project: vaac_startupUIRes, Configuration: Debug
Win32 ------

Linking...
LINK : fatal error LNK1000: Internal error during ProcessResFiles

Version 7.00.9466

ExceptionCode = C0000005
ExceptionFlags = 00000000
ExceptionAddress = 00465F2C (00400000) "C:\Program Files\Microsoft
Visual Studio .NET\Vc7\bin\link.exe"
NumberParameters = 00000002
ExceptionInformation[ 0] = 00000001
ExceptionInformation[ 1] = 00000004
CONTEXT:
Eax = 00000001 Esp = 0012F710
Ebx = 00000000 Ebp = 00000001
Ecx = 00C45040 Esi = 4000734C
Edx = 00142F0E Edi = 00C49E08
Eip = 00465F2C EFlags = 00010202
SegCs = 0000001B SegDs = 00000023
SegSs = 00000023 SegEs = 00000023
SegFs = 00000038 SegGs = 00000000
Dr0 = 0012F710 Dr3 = 00000000
Dr1 = 00000001 Dr6 = 00C45040
Dr2 = 00000000 Dr7 = 00000000

Build log was saved at "file://...\Debug\BuildLog.htm"
vaac_startupUIRes - 1 error(s), 0 warning(s)

Nov 16 '05 #1
9 3738
>I frequently get a LNK1000 error when building a resource-only DLL. If I
rebuild, the problem usually goes away.


Dan,

I think many of us have seen LNK1000 errors occasionally - usually
with no reliable way of reproducing them.

Have you checked normal transient type problems such as low disk space
on your temp folder drive?

Any AntiVirus scanner running - you could try disabling it.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 16 '05 #2
Hi Dan,

I agree with David's reply.

In addition, according to MSDN documentation on LNK1000, you may get this
error if you mix standard header files (for example, dos.h) and your own
files. #include the standard headers first, followed by your own header
files.

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 16 '05 #3
I've got plenty of disk space, and I've already disabled anti-virus. Other
developers also have the same problem...

I think it's interesting that this is only for resource-only DLLs.

Dan

"David Lowndes" <da****@mvps.org> wrote in message
news:o2********************************@4ax.com...
I frequently get a LNK1000 error when building a resource-only DLL. If I
rebuild, the problem usually goes away.


Dan,

I think many of us have seen LNK1000 errors occasionally - usually
with no reliable way of reproducing them.

Have you checked normal transient type problems such as low disk space
on your temp folder drive?

Any AntiVirus scanner running - you could try disabling it.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq

Nov 16 '05 #4
This only occurs for a resource-only DLL, and a very simple ones at that -
no (minimal) header-file stuff.

Dan

"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:HW**************@cpmsftngxa06.phx.gbl...
Hi Dan,

I agree with David's reply.

In addition, according to MSDN documentation on LNK1000, you may get this
error if you mix standard header files (for example, dos.h) and your own
files. #include the standard headers first, followed by your own header
files.

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 16 '05 #5
>I've got plenty of disk space, and I've already disabled anti-virus. Other
developers also have the same problem...

I think it's interesting that this is only for resource-only DLLs.


That does seem odd, but you also said that it happens frequently - how
frequently? 1 in every 2 builds, 1 in 10, or 1 in 100?

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 16 '05 #6
I'd say about 1 in 2 or 1 in 3 builds. This is all from the IDE, and a
rebuild usually fixes the problem, so it's more of a nusiance than anything
else.

In the meantime, I've added /incremental:no since the default of "yes" makes
no sense for resource-only DLLs.

Dan

"David Lowndes" <da****@mvps.org> wrote in message
news:m0********************************@4ax.com...
I've got plenty of disk space, and I've already disabled anti-virus. Otherdevelopers also have the same problem...

I think it's interesting that this is only for resource-only DLLs.


That does seem odd, but you also said that it happens frequently - how
frequently? 1 in every 2 builds, 1 in 10, or 1 in 100?

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq

Nov 16 '05 #7
>I'd say about 1 in 2 or 1 in 3 builds.

OK, that's much more frequent than I've ever experienced.

Do you have a minimal project that reproduces the problem that you
could share so that others can try to reproduce it?
In the meantime, I've added /incremental:no since the default of "yes" makes
no sense for resource-only DLLs.


Has that made any difference to the occurrences of the problem?

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 16 '05 #8
Things seem to be working much better with /incremental:no; I'll post a
sample project if that turns out not to be the case.

Dan

"David Lowndes" <da****@mvps.org> wrote in message
news:qq********************************@4ax.com...
I'd say about 1 in 2 or 1 in 3 builds.


OK, that's much more frequent than I've ever experienced.

Do you have a minimal project that reproduces the problem that you
could share so that others can try to reproduce it?
In the meantime, I've added /incremental:no since the default of "yes" makesno sense for resource-only DLLs.


Has that made any difference to the occurrences of the problem?

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq

Nov 16 '05 #9
Hi Dan,

Thanks for your information.

As you know, LNK1000 is acutally a linker crash. If the problem is caused
by the incremental linking, it may be caused by what described in the
following KB article:

FIX: "Fatal Error LNK1105" Error Message When You Incrementally Link Large
Projects
http://support.microsoft.com/?id=329593

In addition, I recommend you add a "/verbose" flag to your link options and
view the KB article below. It will be very helpful if you can provide a
reprodicible sample project.

HOWTO: Get Info for Troubleshooting Compiler & Linker Problems
http://support.microsoft.com/?id=134650

Please feel free to let me know if you have any problem sor concerns.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 16 '05 #10

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

Similar topics

2
by: ST | last post by:
Hi, I keep getting the parser error, and I have no idea why. I've tried a number of things including: 1)building/rebuilding about 100x 2)making sure all dll's are in the bin folder in the root...
1
by: Todd Bright | last post by:
I'm getting an error building my app. The error is... 'Could not transform licenses file 'Licenses.licx' into a binary resource. (1): error LC0004: Exception occured creating type...
9
by: Joel Rodrigues | last post by:
Hi, I get the following error when I run make on Mac OS X v 10.1.5 Any ideas ? ---------------------------------------------------------- ar: illegal option -- s usage: ar -d archive file ......
0
by: Davis Ming | last post by:
Hi All, I used Microsoft Liner (7.00.9210) with makefile to compile an existing project. It works well until I add "/PDBSTRIPPED" option in order to get public symbol files. The error message is...
6
by: ST | last post by:
Hi, I keep getting the parser error, and I have no idea why. I've tried a number of things including: 1)building/rebuilding about 100x 2)making sure all dll's are in the bin folder in the root...
5
by: Me to You | last post by:
I downloaded the latest VB.Net Resource Kit from MS. When I try to install it, I get the following error..... "unknown error (0x800xcc810) cannot create virtual directory VB.NETResourceKit"...
0
by: Herman Jones | last post by:
I'm getting the following error when I build a Class Library project: Embedding manifest... Project : error PRJ0002 : Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'. It happens with...
1
by: BobPitbull | last post by:
When doing a "Whole Program Optimization" release build, I get the following error during LINK:- Searching \main\Binaries\lib\pc_retail\AAALibs.lib: LINK : fatal error LNK1000: Internal error...
2
by: Nesster13 | last post by:
Hi, I am building an application that will utilize the local resource file. Right now the application is separated into two part, the header and the content. One of the line at the top of the...
1
jhardman
by: jhardman | last post by:
I'm working with my first real xbap project, and I have run into a real wall. Although my project runs just fine when debugging and I get no error while building, immediately as the publish finishes...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.