User forums > Help

I can't compile

<< < (3/3)

Max:
Ciao,

I think the problem is in both the sorce code and in the old compiler you are using (3.4.5). With that version of the compiler I got the same strange behavior. Upgrade to 4.2.1 and you get a lot of errors and warnings.

Using GCC 3.4.5 the compiler returns 0x01 flagging an error. No exe is created. I think you are triggering a bug in the compiler with your buggy code. Upgrade the compiler to 4.2.1 (easy to do with packages located in www.mingw.org) and fix your code.

Hope this helps

Max

stufava:
ok, i've done it.
I set the upgraded version of MinGW, but i can't understand which executable in the "lib" folder of MinGW is the "debugger" one.. with the old versione i had "gdb.exe"... however i've fixed my code and my program has been built!! The only problem now is this: if i run it, the .exe starts and immediately stops, reporting this error:


--- Code: ---Checking for existence: C:\programmazione\project\bin\Debug\project.exe
Executing: "C:\Programmi\CodeBlocks/cb_console_runner.exe" "C:\programmazione\project\bin\Debug\project.exe"  (in C:\programmazione\project\.)
Process terminated with status -1073741571 (2 minutes, 40 seconds)

--- End code ---

where i was wrong?

rcoll:
Actually, I don't see how this can work.  You have classes (for example "data" and "persona") that include themselves inside their own definition.  Doesn't this make a recursive definition?  How does the compiler ever know when to stop?

Try re-structuring your classes into smaller, more manageable definitions, then try it again.

Ringo

Navigation

[0] Message Index

[*] Previous page

Go to full version