Author Topic: Building Projects with CB  (Read 2835 times)

Offline SterlingM

  • Single posting newcomer
  • *
  • Posts: 2
Building Projects with CB
« on: March 12, 2010, 06:05:31 pm »
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
Code
-------------- 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.
« Last Edit: March 12, 2010, 06:07:18 pm by SterlingM »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Building Projects with CB
« Reply #1 on: March 12, 2010, 08:22: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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ