Code::Blocks Forums

User forums => Help => Topic started by: santi987655 on October 24, 2013, 09:23:41 pm

Title: Help Big problem!!!
Post by: santi987655 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.
Title: Re: Help Big problem!!!
Post by: stahta01 on October 24, 2013, 09:41:55 pm
http://wiki.codeblocks.org/index.php?title=FAQ-Issues_and_Workarounds#Q:_I_posted_on_the_forums_that_Code::Blocks_was_not_working.2C_but_no_one_could_help_me.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Issues_and_Workarounds#Q:_I_posted_on_the_forums_that_Code::Blocks_was_not_working.2C_but_no_one_could_help_me.3F)
Title: Re: Help Big problem!!!
Post by: santi987655 on October 24, 2013, 10:51:53 pm
Thanks stahta01 for reply but i cant find a solution to that problem.
Title: Re: Help Big problem!!!
Post by: oBFusCATed on October 24, 2013, 11:23:42 pm
Remove this options from your project or target settings and it will work again.
Title: Re: Help Big problem!!!
Post by: santi987655 on October 25, 2013, 01:27:13 am
oBFusCATed what do you said i need to do?
Title: Re: Help Big problem!!!
Post by: oBFusCATed on October 25, 2013, 09:34:42 am
That you have to read the manual available on the site.
Title: Re: Help Big problem!!!
Post by: thomas on October 25, 2013, 12:41:03 pm
Or you could read the error message that you posted, which really explains everything.
Title: Re: Help Big problem!!!
Post by: santi987655 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.
Title: Re: Help Big problem!!!
Post by: BlueHazzard 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
Title: Re: Help Big problem!!!
Post by: santi987655 on October 25, 2013, 09:10:49 pm
Thaks i will try doing that.  :D
Title: Re: Help Big problem!!!
Post by: santi987655 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.  :(
Title: Re: Help Big problem!!!
Post by: stahta01 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.
Title: Re: Help Big problem!!!
Post by: oBFusCATed 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.
Title: Re: Help Big problem!!!
Post by: BlueHazzard 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...
Title: Re: Help Big problem!!!
Post by: santi987655 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
Title: Re: Help Big problem!!!
Post by: santi987655 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 .