User forums > Help

Console Window Blank?

<< < (3/3)

oBFusCATed:
Hm, the strange formatting misled me, sorry.

I've just tried your example and it works for me.

XP sp2/3, tdm gcc/g++ 4.4.0, cb latest debugging branch nightly.

wolfcry:
Thanks for all the help all.

No worries OB, I wasn't mad or arguing or anything was just genuinely confused lol. I appreciate you trying to help.

Because I couldn't recreate this bug normally, I decided to mess around with CB a bit. I removed the -WI linker option I mentioned in my first post in this thread and ran a few times.

The possible bug may be associated with that auto-importer because when I run that code and a very basic "Hello World!" tidbit, it hangs and I noticed one it appeared to go blank then it processed the code and that was on the Hello World one. Replacing that linker option and restarting CB just to make sure, the debugging didn't hang as it did. So I'm thinking it has something to do with this but I could be wrong.

Also to note, this only happens during debugging not during building and running normally. And to get a picture of what I mean by going blank, it resembles the console window when you're debugging with a breakpoint set at "int main". Just a blinking cursor as the program waits for you to step into it.

Just so I know I'm using the right linker option syntax, is it "-WI, -enable-auto-import"  or "-WI --enable-auto-import"?  The first one only has one '-' in front of enable, the second has two. I'm currently using the first one.

Thanks

MortenMacFly:

--- Quote from: wolfcry on January 22, 2011, 11:21:19 pm ---Just so I know I'm using the right linker option syntax, is it "-WI, -enable-auto-import"  or "-WI --enable-auto-import"?  The first one only has one '-' in front of enable, the second has two. I'm currently using the first one.

--- End quote ---
Its:

--- Code: ----Wl,--enable-auto-import
--- End code ---
Notice, that there are no spaces and take are of upper/lower case characters. Otherwise the linker won't recognise this option and throw an error. Of course, this does only apply to the GCC compiler/linker. Place it in the linker options.

wolfcry:
Thanks MortenMcFly.

That's weird because I was using -WI, -enable-auto-import and I wasn't receiving any errors (other than maybe the blank console window if this is indeed associated). In either case, I changed it to what you posted so hopefully this will clear up any issues I was having.

Navigation

[0] Message Index

[*] Previous page

Go to full version