[SOLVED] Code::Blocks, MinGW starter problem - error when compiling examples


I wanted to get started with openFrameworks, so I followed this guide: http://openframeworks.cc/setup/codeblocks/
Since I have used Code::Blocks before it was already installed on my PC (13.12). So I just downloaded the additions for Code::Blocks (linked on the side) and copied the contents in the folders as described in the guide.

When I tried to compile the examples I get the error:
[…]\of_v0.8.4_win_cb_release\libs\openFrameworks\utils\ofUtils.cpp|787|error: ‘_popen’ was not declared in this scope|

Using openFrameworks 0.8.4 I also tried compiling it with Code::Blocks 12.11 (following the link in the guide), the same error. I tried both C++98 and C++11. (I am working with Windows 7, 64bit).

I saw that I am not the only one getting this error, however, I could not find a solution on the web so far …

I would appreciate some help, tips or suggestions …

did you compile the openFrameworks library located in the libs/openFrameworksCompiled/project/win_cb/" folder?

See my linked thread for a few possible workarounds/solutions.

For example add -U__STRICT_ANSI__ to CB’s Settings > Compiler > Other options.

And a more structural solution that has been applied to the GitHub repo for 0.9.0 and beyond.

Thank you for your answers.

I read the linked thread and tried -U__STRICT_ANSI__ and it seems to work :slight_smile: I also tried the GitHub solution which works fine too :smile:
You are my hero of the day, thanks a lot! :wink: