Hi all, I have a .cpp file with 10,000+ lines of code in it. When I try to compile it using my cygwin
tool chain. The build never finishes (no errors occur and I let it build for hours)! I have gone through my code with a fine tooth comb. I have concluded I have code that should compile. In the past I have compiled 7000+ lines of code with no problem. I have noticed that coders break up their code into separate files and then the main.cpp ties them all together for the build. Please forgive my ignorance I use basic C for my coding. If this is the method I will have to take in order to get my code to compile I will take it. Does anybody now any very basic examples for applying the above practice? examples of syntax etc...
Any posts regarding this problem of mine would be greatly appreciated.
My compiling problem
-
- DCEmu Junior
- Posts: 42
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Thu Feb 06, 2003 3:51 pm
- Has thanked: 0
- Been thanked: 0
-
- DCEmu User with No Life
- Posts: 3641
- Joined: Sat Feb 16, 2002 1:55 pm
- Has thanked: 0
- Been thanked: 0
Re: My compiling problem
Have you tried another compiler? Does the code make use of template metaprogramming?
"You know, I have a great, wonderful, really original method of teaching antitrust law, and it kept 80 percent of the students awake. They learned things. It was fabulous." -- Justice Stephen Breyer
Re: My compiling problem
I don't believe it does use template metaprogramming. I haven't heard of this method until you mentioned it.
Re: My compiling problem
I have 64 int's and 17 float variables. Could it be I have too many variables?
-
- Damn Dirty Ape
- Posts: 5031
- Joined: Thu Nov 07, 2002 11:11 pm
- Location: Saugerties, NY
- Has thanked: 0
- Been thanked: 0
Re: My compiling problem
That isn't very many variables. I don't think that's the issue.dciris wrote:I have 64 int's and 17 float variables. Could it be I have too many variables?
- toastman
- Iron Fist of Justice
- Posts: 4933
- Joined: Sat Nov 10, 2001 3:08 am
- Location: New Orleans
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: My compiling problem
Could you post it?
Although 10K+ lines is probably pushing it.
Although 10K+ lines is probably pushing it.
No signature.
-
- DC Developer
- Posts: 968
- Joined: Tue Feb 11, 2003 4:12 pm
- Location: In a Dream
- Has thanked: 5 times
- Been thanked: 6 times