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

auto-importing

Started by Paolo_R, March 21, 2010, 07:15:16 AM

Previous topic - Next topic

Paolo_R

I'm new to code::blocks and gcc so please bear with me.

Just compiled a standard 'hello world' program (c++). I get a warning "auto-importing has been activated without --enable-auto-import specified on the command line"

What does this warning indicate and how do I pass this option (-WI, I believe) to the compiler? 'Settings' -> 'Compiler and debugging settings' -> 'Compiler flags' doesn't have this as an option, neither does 'Project Build options'.

oBFusCATed

This is a linker thing if I remember correctly, so you should add it in the linker options
(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!]

Paolo_R

OK, I added -WI in 'Linker Settings' -> 'Other Linker Options' but it made no difference.

The full warning states "auto-importing has been activated without --enable-auto-import specified on the command line"

"Info: resolving std::cout by linking to __imp___ZSt4cout"

Paolo_R

OK, I realise I should have added '-enable-auto-import' so the full flag is '-WI, -enable-auto-import'
and that stops the warning.