Author Topic: Help Big problem!!!  (Read 12004 times)

Offline santi987655

  • Single posting newcomer
  • *
  • Posts: 8
Help Big problem!!!
« on: October 24, 2013, 09:23:41 pm »
Hello .
Well here is my problem , no matter what program i write in codeblocks it allways give me the same error saying:
-------------- Build: Debug in ttt ---------------

Compiling: Untitled1.c
mingw32-gcc.exe: -pg and -fomit-frame-pointer are incompatible
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

Can someon help me with this??. I have windows7, im  using "c" , i try dowloading again and intalling but nothing happen i already try downloading another version but it throws the same error.
« Last Edit: October 25, 2013, 04:23:53 am by santi987655 »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline santi987655

  • Single posting newcomer
  • *
  • Posts: 8
Re: Help Big problem!!!
« Reply #2 on: October 24, 2013, 10:51:53 pm »
Thanks stahta01 for reply but i cant find a solution to that problem.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Help Big problem!!!
« Reply #3 on: October 24, 2013, 11:23:42 pm »
Remove this options from your project or target settings and it will work again.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline santi987655

  • Single posting newcomer
  • *
  • Posts: 8
Re: Help Big problem!!!
« Reply #4 on: October 25, 2013, 01:27:13 am »
oBFusCATed what do you said i need to do?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Help Big problem!!!
« Reply #5 on: October 25, 2013, 09:34:42 am »
That you have to read the manual available on the site.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Help Big problem!!!
« Reply #6 on: October 25, 2013, 12:41:03 pm »
Or you could read the error message that you posted, which really explains everything.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline santi987655

  • Single posting newcomer
  • *
  • Posts: 8
Re: Help Big problem!!!
« Reply #7 on: October 25, 2013, 08:32:04 pm »
Sorry but i started just 2 month ago with c leaguaje so im not soo  good with this porgram, thats why even if i read that error i dont have a clue of what i need to do to make this program build, if you can tell me step by step what i need to do i will really apreciate that efford.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Help Big problem!!!
« Reply #8 on: October 25, 2013, 08:40:50 pm »

-------------- Build: Debug in ttt ---------------

Compiling: Untitled1.c
mingw32-gcc.exe: -pg and -fomit-frame-pointer are incompatible
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

well, what is written here: " -pg and -fomit-frame-pointer are incompatible"
that means "-pg" and "-fomit-frame-pointer" are incompatible compiler flags... I don't think that this are standard falgs, so probably you set the flags, and so we asume you know where set it.
if you don't know: Project->Build options->Compiler flags
or: Project->Build options->Other options

if you don't know what flags are: http://bit.ly/H7eloX

greetings

greetings

Offline santi987655

  • Single posting newcomer
  • *
  • Posts: 8
Re: Help Big problem!!!
« Reply #9 on: October 25, 2013, 09:10:49 pm »
Thaks i will try doing that.  :D

Offline santi987655

  • Single posting newcomer
  • *
  • Posts: 8
Re: Help Big problem!!!
« Reply #10 on: October 25, 2013, 09:21:20 pm »
I try puting all the flags on and then try to buil but it throws the sime error.  :(

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Help Big problem!!!
« Reply #11 on: October 25, 2013, 09:24:39 pm »
I try puting all the flags on and then try to buil but it throws the sime error.  :(

TRY Turning the flags off!!

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Help Big problem!!!
« Reply #12 on: October 25, 2013, 09:25:51 pm »
Hm, I guess you have problem with the meaning of incompatible.
In this context it means that you cannot have -pg and -fomit-frame-pointer enabled at the same time. So you either enable -pg and disable -fomit-frame-pointer or vice versa.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Help Big problem!!!
« Reply #13 on: October 25, 2013, 09:28:38 pm »
I try puting all the flags on and then try to buil but it throws the sime error.  :(

1) i would suggest you to read a english dictionary. In the errormesage is clearly written what the problem is, turning al flags on doesn't make sense with your error message...
2) You should relay read some c/c++ tutorials and understand the basics. this is the wrong place to ask....
3) Your flags are not the basic flags ("Hello world basic"), i would suggest you to try first Hello world programs, to understand the compiler and linker, don't think you can avoid these in programming with c...
4) If you have a other compiling issue read pleas the faqs and use the template specified there : http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29

I'm out...

Offline santi987655

  • Single posting newcomer
  • *
  • Posts: 8
Re: Help Big problem!!!
« Reply #14 on: October 25, 2013, 09:40:42 pm »
I alrready try using "Hello world" but nothing is the sime error . I dont know what the hell i need to do to get rid of this problem. The only thing im doning is reading all the information that you post but nothing not a clue of who i can build projects.

I dont know why i cant build projects i mean i did the sime thing in the university computer and everything works perfectly
« Last Edit: October 25, 2013, 09:48:24 pm by santi987655 »

Offline santi987655

  • Single posting newcomer
  • *
  • Posts: 8
Re: Help Big problem!!!
« Reply #15 on: October 25, 2013, 09:58:00 pm »
Well for the people who dont know how to solve this problem you need to go to
 Compiler and Debugger settings < Compiler Flags < "Profile code when executed [-pg]" and put off that one .