News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Help Big problem!!!

Started by santi987655, October 24, 2013, 09:23:41 PM

Previous topic - Next topic

santi987655

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.

stahta01

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]

santi987655

Thanks stahta01 for reply but i cant find a solution to that problem.

oBFusCATed

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!]

santi987655

oBFusCATed what do you said i need to do?

oBFusCATed

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!]

thomas

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."

santi987655

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.

BlueHazzard

Quote from: santi987655 on October 24, 2013, 09:23:41 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

santi987655

Thaks i will try doing that.  :D

santi987655

I try puting all the flags on and then try to buil but it throws the sime error.  :(

stahta01

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

TRY Turning the flags off!!

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]

oBFusCATed

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!]

BlueHazzard

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

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...

santi987655

#14
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