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

How to get over LNK1170 error?

Hi,

Anyone knows how to compile a really (9000 files)
huge project using nmake?

Here is the output:
C:\TEMP\nm114.tmp : fatal error LNK1170: line in command file contains
131071 or
more characters
NMAKE : fatal error U1077: 'C:\XXX\link.exe' : return code '0x492'
Stop.
I'd appreciate any help :)
Jan 24 '06 #1
2 2835
one possible solution is to split your project into different sub projects,
providing individual makefiles for each sub project, and then in your main
makefile you build each subproject using those new makefile.

after all subprojects have been built your main makefile then links together
all generated object files.

that might cause you to have the same problem, because the list of object
files will be very long.
in that case you might have to compile the subprojects into static or
dynamic libraries that can then be linked against you main program.

having different makefiles also makes it easier to rebuild smaller parts of
your program after you changed some source files.

kind regards,
Bruno.

"Marko" <ma***@email.com> wrote in message
news:dr**********@sunce.iskon.hr...
Hi,

Anyone knows how to compile a really (9000 files)
huge project using nmake?

Here is the output:
C:\TEMP\nm114.tmp : fatal error LNK1170: line in command file contains
131071 or
more characters
NMAKE : fatal error U1077: 'C:\XXX\link.exe' : return code '0x492'
Stop.
I'd appreciate any help :)

Jan 24 '06 #2
Bruno van Dooren wrote:
one possible solution is to split your project into different sub projects,
providing individual makefiles for each sub project, and then in your main
makefile you build each subproject using those new makefile.


Right, that would be the final solution (desperate one).
I've tried to make a workaround according to KB156190 by adding
:" "="^ to objects var, but no luck.

IMHO having a limit of 128K (or any other limit beyond OS) is
pretty stupid. According to KB156190 it was 16K before, so
it probably depends on the linker version.
I mean, I have 2G of RAM, linker uses 12M, and it can not link
because of memory limit. ROTFL :)
Thanks, anyhow :)
Jan 24 '06 #3

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

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
5
by: Tony Wright | last post by:
Hi, I am having a problem installing an msi for a web site. The error message I am getting is: "The specified path 'http://mipdev05/features/Fas2' is unavailable. The Internet Information...
1
by: Aravind | last post by:
we have two files: 1. rc4.c (defines one function "create_pin()") 2. MyImpl.c(calling the function "create_pin()"),This implements JNI method. 1.When I am trying to create .dll file with one...
1
by: yanwan | last post by:
I met this problem in executing a c++ project in visual studio. Does anyone have suggestions to resolve "error lnk 2001"? --------------------Configuration: reconstruction - Win32...
5
by: Enos Meroka | last post by:
Hallo, I am a student doing my project in the university.. I have been trying to compile the program using HP -UX aCC compiler, however I keep on getting the following errors. ...
13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
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...

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.