News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Building Projects with CB

Started by SterlingM, March 12, 2010, 06:05:31 PM

Previous topic - Next topic

SterlingM

I just recently got Code::Blocks. I used to use VS, but I decided to try out CB. I am trying to remake a project I made in VS not too long ago (lost the files, not just remaking with a new IDE just because). And whenever I try to build the project, I keep getting this compiler error

-------------- Build: Debug in Dormitory ---------------

Compiling: Building.cpp
cc1plus: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings


In the project, Building is at the top of the class hierarchy. If I try to compile any of the other files other than Building.cpp it compiles fine. But if I try to build the project, or compile just Building.cpp I get this message. However if I go to the terminal and do g++ <files> it will compile fine. I never had this error with VS; I could just select build project all day and it would compile all the files and other normal acts(at least what I got used to as "normal"). So I'm not sure if it's some setting I should fix in CB or something else. Does anyone know why I would get this error? Any help would be appreciated, thanks.

MortenMacFly

Quote from: SterlingM on March 12, 2010, 06:05:31 PM
And whenever I try to build the project, I keep getting this compiler error

cc1plus: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.

Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

Why don't you do what's written in the log? This is obviously not a C::B issue as you see, so it actually does not belong to this forum.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]