question

SR-5146 avatar image
0 Votes"
SR-5146 asked DavidLowndes-6766 commented

Using /Zm with CL In Visual Studio 6.0

I am using a software called Symbols for engineering modelling. It produces a .cpp file for the model, along with a .bat file for command line compiling.
It uses a compiler to produce a .dll file which it then calls back to complete the simulation.

It uses Visual C++ 6.0 Complier. I am getting and error xxx.cpp(64952) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit

I tried adding /Zm500 to the bat file, but it produced no change. There were some suggestions online to use /MP. Tried that. That also didn't work. I also tried adding a User Defined Environment Variable CL with values as #/Zm500 /Zm500 =/Zm500 etc. but none of those worked.
I am not an expert in Programming and can't do much edits to the code as it is auto generated.

Anyone can help regarding this? Why /Zm is not working? Should I be doing something else?
I am using Visual Studio 6.0 in Win10 Machine. The .cpp file has 151,000 lines of code.
Adding below the contantes of .bat file


 @ECHO OFF
 ECHO --------------------Configuration: 8 Coil No MC 45L 1Rd - Win32 Release--------------------
 SET OLDPATH=%PATH%
 PATH="C:\WINDOWS";"C:\WINDOWS\system32";"C:\WINDOWS\COMMAND";"F:\Program Files (x86)\Microsoft Visual Studio\Common\MSDev98\Bin";"F:\Program Files (x86)\Microsoft Visual Studio\VC98\Bin";"F:\Program Files (x86)\Microsoft Visual Studio\Common\Tools";"F:\Program Files (x86)\Microsoft Visual Studio\Common\Tools\WinNT";
 ECHO Compiling...
 CL.EXE  /Zm500 /MP /nologo /I "D:\Symbols\SYMBOLS Sonata\Bin" /I "D:\Bondgraph_Works\Header_Files" /I "F:\Program Files (x86)\Microsoft Visual Studio\VC98\Include" /I "F:\Program Files (x86)\Microsoft Visual Studio\VC98\ATL\Include" /I "F:\Program Files (x86)\Microsoft Visual Studio\VC98\MFC\Include" /MT /W3 /GX /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /Fo"8 Coil No MC 45L 1Rd.obj" /Fp"8 Coil No MC 45L 1Rd.pch" /Fd"" /FD /c "8 Coil No MC 45L 1Rd.cpp" 
 ECHO Linking...
 LINK.EXE /libpath:"D:\Symbols\SYMBOLS Sonata\Bin" /libpath:"D:\Symbols\Borland\BCC55\Lib" /libpath:"F:\Program Files (x86)\Microsoft Visual Studio\VC98\Lib" /libpath:"F:\Program Files (x86)\Microsoft Visual Studio\VC98\MFC\Lib" kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib  /nologo /subsystem:windows /dll /incremental:no /machine:I386  /def:"8 Coil No MC 45L 1Rd.def" /out:"8 Coil No MC 45L 1Rd.dll" "8 Coil No MC 45L 1Rd.obj" "Library.Lib"
 PATH=%OLDPATH%
 ECHO End of Compilation.




c++
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I'd ask whoever produces the package you're using how they would propose you work around this. Even if you manage to alter settings such that it scrapes through today, I guess you're only going to meet the limit again soon afterwards when you modify your model.

0 Votes 0 ·
SR-5146 avatar image SR-5146 DavidLowndes-6766 ·

It is a old software made in 2000s by 2 professors. Both of them have passed away. The software is working well for the purpose it was built. My problem is slightly bigger and causing problems.

0 Votes 0 ·

And no-one has taken over or understands their project to maintain it? :(

0 Votes 0 ·
Show more comments

0 Answers