Code::Blocks Forums

User forums => Help => Topic started by: -LeetGamer- on September 13, 2010, 07:26:30 pm

Title: Need help compiling
Post by: -LeetGamer- on September 13, 2010, 07:26:30 pm
Okay, well I'm no noob to programming. I have advanced Console application knowledge and okay Win32 knowledge in C++. I've used Code::Blocks before and it has always worked for me, but all my compilers started acting up for no reason whatsoever so I uninstalled them all and re-installed them, now when I compile any project even a console application hello world program I get this:

Code
mingw32-g++.exe: -pg and -fomit-frame-pointer are incompatible
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

Does anyone think they can help me please?
Title: Re: Need help compiling
Post by: stahta01 on September 13, 2010, 08:36:50 pm
Delete or fix your Compiler Configuration is the most likely solution.

Under the special folder %APPDATA% look for codeblocks subfolder the configuration should be in "default.conf" file rename or delete it with Code::Blocks closed.

Opening Code::Blocks should recreate it.

Tim S.
Title: Re: Need help compiling
Post by: -LeetGamer- on September 14, 2010, 10:06:36 pm
Delete or fix your Compiler Configuration is the most likely solution.

Under the special folder %APPDATA% look for codeblocks subfolder the configuration should be in "default.conf" file rename or delete it with Code::Blocks closed.

Opening Code::Blocks should recreate it.

Tim S.

It still does the same thing :(

When you say Opening Code::Blocks should recreate it do you mean I have to delete that thing when Code::Blocks is open every time ? =/
Title: Re: Need help compiling
Post by: stahta01 on September 15, 2010, 06:50:48 pm
When you say Opening Code::Blocks should recreate it do you mean I have to delete that thing when Code::Blocks is open every time ? =/

No.

Tim S.
Title: Re: Need help compiling
Post by: stahta01 on September 15, 2010, 07:27:36 pm
Next thing to do is remove the compiler options -pg and -fomit-frame-pointer from your project.

Note: Turning on FULL compiler Logging helps you to understand the CB/Compiler issues.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F


Tim S