Dear All,
After 4 years of FreeBSD usage I decided to migrate to Fedora x environment for reasons that FreeBSD team already knows [hardware support, a lot of troubleshooting and continuously messing with portupgrade and broken dependencies...oh the most important - Flash Player and USB headset].
A major reason was Code::Blocks. Under Windows I use a Portable Edition of Code::Blocks I have created myself and works amazing.
Now my problem is that I have installed Code::Blocks and at first, an error message appeared. Something about a missing file or directory...I immediately remembered the case where a setup.h file was supposed to be inside wx directory. I searched for it and found it TWICE under /usr/lib/wx/copy. One inside config and once within include. I tested both of them and the error message this time altered dramatically.
Here is my issue:
:: === wxMyGod, Debug ===
/usr/include/wx-2.8/wx/defs.h:42: error: #error "No Target! You should use wx-config program for compilation flags!"
/usr/include/assert.h:39: error: missing binary operator before token "("
/usr/include/assert.h:105: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:46: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:50: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:138: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:196: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:205: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:214: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:223: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:235: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:245: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:254: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:262: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:276: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:297: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:302: error: missing binary operator before token "("
/usr/include/sys/cdefs.h:309: error: missing binary operator before token "("
/usr/include/sys/types.h:158: error: missing binary operator before token "("
/usr/include/assert.h:69: error: expected constructor, destructor, or type conversion before ‘extern’
/usr/include/assert.h:77: error: expected initializer before ‘__THROW’
/usr/include/assert.h:83: error: expected initializer before ‘__THROW’
/usr/include/assert.h:86: error: ‘__END_DECLS’ does not name a type
/usr/include/stdio.h:49: error: expected constructor, destructor, or type conversion before ‘typedef’
/usr/include/stdio.h:65: error: expected constructor, destructor, or type conversion before ‘typedef’
/usr/include/gconv.h:72: error: ‘size_t’ has not been declared
/usr/include/gconv.h:88: error: ‘size_t’ has not been declared
/usr/include/gconv.h:97: error: ‘size_t’ has not been declared
/usr/include/gconv.h:174: error: ‘size_t’ does not name a type
/usr/include/gconv.h:176: error: expected ‘;’ before ‘__flexarr’
/usr/include/libio.h:329: error: ‘size_t’ does not name a type
/usr/include/libio.h:333: error: ‘size_t’ was not declared in this scope
/usr/include/libio.h:361: error: ‘size_t’ has not been declared
/usr/include/libio.h:370: error: ‘size_t’ has not been declared
/usr/include/libio.h:486: error: ‘size_t’ does not name a type
/usr/include/stdio.h:174: error: expected initializer before ‘*’ token
/usr/include/stdio.h:216: error: ‘FILE’ was not declared in this scope
/usr/include/stdio.h:216: error: ‘__stream’ was not declared in this scope
/usr/include/stdio.h:221: error: ‘FILE’ was not declared in this scope
/usr/include/stdio.h:221: error: ‘__stream’ was not declared in this scope
/usr/include/stdio.h:251: error: expected initializer before ‘*’ token
/usr/include/stdio.h:257: error: expected initializer before ‘*’ token
/usr/include/stdio.h:309: error: variable or field ‘setbuf’ declared void
/usr/include/stdio.h:309: error: ‘FILE’ was not declared in this scope
/usr/include/stdio.h:309: error: expected primary-expression before ‘__restrict__’
/usr/include/stdio.h:309: error: expected primary-expression before ‘char’
/usr/include/stdio.h:309: error: initializer expression list treated as compound expression
/usr/include/stdio.h:313: error: ‘FILE’ was not declared in this scope
/usr/include/stdio.h:313: error: expected primary-expression before ‘__restrict__’
/usr/include/stdio.h:313: error: expected primary-expression before ‘char’
:: More errors follow but not being shown.
:: Edit the max errors limit in compiler options...
:: === Build finished: 50 errors, 0 warnings ===
I hope someone can help me to solve this issue...of course good advices is alway welcome too
Kindest Regards,
Stefanos