Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Paolo_R on March 21, 2010, 07:15:16 am

Title: auto-importing
Post 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'.
Title: Re: auto-importing
Post by: oBFusCATed on March 21, 2010, 11:21:44 am
This is a linker thing if I remember correctly, so you should add it in the linker options
Title: Re: auto-importing
Post by: Paolo_R on March 22, 2010, 01:08:04 am
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"
Title: Re: auto-importing
Post by: Paolo_R on March 22, 2010, 01:17:21 am
OK, I realise I should have added '-enable-auto-import' so the full flag is '-WI, -enable-auto-import'
and that stops the warning.