Using minGW and have a 2D char array issue?
-
So I'm using minGW for my windows compiler for C / C++... I declared a 2D character array of char stringArray[70000][51]. But it segfaults INSTANTLY, come to find out 70,000 is too much for this char array. However in GCC it worked just fine. Apparently the farthest I can go with this char array under minGW as it is, is just around 40,000. Is there ANY way that I can pass this size limit under minGW ?
-
Answer:
No, afraid not. An array like that is a horrible thing anyway - you're better off using a set of smaller arrays. (Actually you're better off using linked lists if you can handle those.)
ret80sof... at Yahoo! Answers Visit the source
Related Q & A:
- How do I issue multiple commands using telnet or netcat?Best solution by Super User
- How to convert a char array into an int in C++?Best solution by Stack Overflow
- Is there a way where u can send someone an email using hotmail and adding a small picture in the?Best solution by Yahoo! Answers
- What is a relevant issue in China's Hospitality Industry?Best solution by Yahoo! Answers
- Can I get written up for a medical issue?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.