My compiling problem

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
dciris
DCEmu Junior
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

My compiling problem

Post by dciris »

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.
Ex-Cyber
DCEmu User with No Life
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

Post by Ex-Cyber »

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
dciris
DCEmu Junior
DCEmu Junior
Posts: 42
Joined: Thu Feb 06, 2003 3:51 pm
Has thanked: 0
Been thanked: 0

Re: My compiling problem

Post by dciris »

I don't believe it does use template metaprogramming. I haven't heard of this method until you mentioned it.
dciris
DCEmu Junior
DCEmu Junior
Posts: 42
Joined: Thu Feb 06, 2003 3:51 pm
Has thanked: 0
Been thanked: 0

Re: My compiling problem

Post by dciris »

I have 64 int's and 17 float variables. Could it be I have too many variables?
OneThirty8
Damn Dirty Ape
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

Post by OneThirty8 »

dciris wrote:I have 64 int's and 17 float variables. Could it be I have too many variables?
That isn't very many variables. I don't think that's the issue.
User avatar
toastman
Iron Fist of Justice
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

Post by toastman »

Could you post it?

Although 10K+ lines is probably pushing it.
No signature.
nymus
DC Developer
DC Developer
Posts: 968
Joined: Tue Feb 11, 2003 4:12 pm
Location: In a Dream
Has thanked: 5 times
Been thanked: 6 times

Re: My compiling problem

Post by nymus »

behold the mind
inspired by Dreamcast
Post Reply