Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Paolo_R on March 21, 2010, 07:15:16 am
-
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'.
-
This is a linker thing if I remember correctly, so you should add it in the linker options
-
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"
-
OK, I realise I should have added '-enable-auto-import' so the full flag is '-WI, -enable-auto-import'
and that stops the warning.