User forums > Using Code::Blocks

auto-importing

(1/1)

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

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.

Navigation

[0] Message Index

Go to full version