User forums > General (but related to Code::Blocks)

mingw with dragonegg

<< < (2/2)

zhangxinghai:
hi,reckless
I download http://sourceforge.net/projects/cbadvanced/files/mingw32-gcc-4.6.2-dragonegg.7z/download and unpack it.
I write a helloworld program

#include <string>
#include <cstdio>

int main(int argc, char** argv) {
   std::string greeting = "Hello World!";
   printf("%s\n", greeting.c_str());
   return 0;
}

I invoke the command
g++ -o hello.exe d:\helloworld\hello.cpp -fplugin=dragonegg-cc1plus --verbose

But I get error:
cc1plus.exe: error: cannot load plugin d:/mingw_cb_dragonegg/mingw32/bin/../lib/
gcc/i686-w64-mingw32/4.6.2/plugin/dragonegg-cc1plus.so

How to resolve ,thanks

Navigation

[0] Message Index

[*] Previous page

Go to full version