473,325 Members | 2,860 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,325 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 3736
>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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.