News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Need help compiling

Started by -LeetGamer-, September 13, 2010, 07:26:30 PM

Previous topic - Next topic

-LeetGamer-

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:


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?

stahta01

#1
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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

-LeetGamer-

Quote from: 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.

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 ? =/

stahta01

Quote from: -LeetGamer- on September 14, 2010, 10:06:36 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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]