Author Topic: auto-importing  (Read 9494 times)

Offline Paolo_R

  • Single posting newcomer
  • *
  • Posts: 5
auto-importing
« 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'.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: auto-importing
« Reply #1 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
(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!]

Offline Paolo_R

  • Single posting newcomer
  • *
  • Posts: 5
Re: auto-importing
« Reply #2 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"

Offline Paolo_R

  • Single posting newcomer
  • *
  • Posts: 5
Re: auto-importing
« Reply #3 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.