I am writing a DOS screen football game(No graphics), I have reached 61,283 lines any bigger than this I get a error that says linker warning, exceeded memory limit for block line cache in module. Old compiler version 4.0.
tiverton
0
Newbie Poster
Recommended Answers
Jump to PostTry using a new compiler. In Windows both Visual Studio and Code::Blocks have free C++ ide's with up to date compilers.
Also have you tried optimizing your code? Especially look for redundant blocks that can be put into a function.
Jump to PostWhat new compiler did you install? Visual Studio will compile both 32 and 64 bit programs, its just an option change. The compiler itself is a 32 bit compiler and is always installed in the Program Files (x86) folder.
Is your entire program contained within just one *.cpp file? If …
Jump to PostThe limit only applies to old 16-bit compilers, and I think the compiler you installed is like that. Why don't you install either Code::Blocks with MinGW compiler or Visual Studio 2013 Express (both are free).
Jump to Postcout,cin,endl are no longer supported
Really? I suspect that actually, your code is wrong. Alternatively, you've not told it you're trying to code in plain C++ (Visual Studio supports many languages). Possibly you're learning C++ from before 1990 and you're not using namespaces. Let's see your code.
Jump to Post
Visual C++
is just the name of a software tool released by Microsoft.That code would be better written as this:
include <iostream> using namespace std; int main() { cout<< "Enter string to copy \n"; }
but apart from the
void main()
(main returns …
All 20 Replies
tinstaafl
1,176
Posting Maven
tiverton
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
tiverton
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
tiverton
0
Newbie Poster
tiverton
0
Newbie Poster
Moschops
683
Practically a Master Poster
Featured Poster
tiverton
0
Newbie Poster
Moschops
683
Practically a Master Poster
Featured Poster
tiverton
0
Newbie Poster
tiverton
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
tiverton
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
tiverton
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.