Author Topic: Need help compiling  (Read 4743 times)

Offline -LeetGamer-

  • Single posting newcomer
  • *
  • Posts: 4
Need help compiling
« 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: [Select]
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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6612
    • My Best Post
Re: Need help compiling
« Reply #1 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.
« Last Edit: September 13, 2010, 08:39:04 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline -LeetGamer-

  • Single posting newcomer
  • *
  • Posts: 4
Re: Need help compiling
« Reply #2 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 ? =/

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6612
    • My Best Post
Re: Need help compiling
« Reply #3 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6612
    • My Best Post
Re: Need help compiling
« Reply #4 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
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org