Author Topic: Compilation errors  (Read 17316 times)

ac506in

  • Guest
Compilation errors
« on: August 01, 2006, 01:55:25 pm »
Switching to target: default
Precompiling header: wx_pch.h
In file included from <command line>:7:
./wx_pch.h:6:8: warning: C++ style comments are not allowed in ISO C90
./wx_pch.h:6:8: warning: (this will be reported only once per input file)
In file included from ./wx_pch.h:9,
                 from <command line>:7:
D:/OpenSource/wx/include/wx/wxprec.h:1:1: warning: C++ style comments are not allowed in ISO C90
D:/OpenSource/wx/include/wx/wxprec.h:1:1: warning: (this will be reported only once per input file)
In file included from D:/OpenSource/wx/include/wx/platform.h:190,
                 from D:/OpenSource/wx/include/wx/defs.h:21,
                 from D:/OpenSource/wx/include/wx/wxprec.h:13,
                 from ./wx_pch.h:9,
                 from <command line>:7:

                 from <command line>:7:
d:/Program Files/CodeBlocks/include/stddef.h:6:2: warning: #include_next is a GCC extension
In file included from d:/Program Files/CodeBlocks/include/ctype.h:20,
                 from D:/OpenSource/wx/include/wx/wxchar.h:140,
                 from D:/OpenSource/wx/include/wx/debug.h:22,
                 from D:/OpenSource/wx/include/wx/defs.h:503,
                 from D:/OpenSource/wx/include/wx/wxprec.h:13,
                 from ./wx_pch.h:9,
                 from <command line>:7:
d:/Program Files/CodeBlocks/include/stddef.h:6:2: warning: #include_next is a GCC extension
In file included from D:/OpenSource/wx/include/wx/debug.h:22,
                 from D:/OpenSource/wx/include/wx/defs.h:503,
                 from D:/OpenSource/wx/include/wx/wxprec.h:13,
                 from ./wx_pch.h:9,
                 from <command line>:7:
D:/OpenSource/wx/include/wx/wxchar.h:1195:5: warning: C++ style comments are not allowed in ISO C90
D:/OpenSource/wx/include/wx/wxchar.h:1195:5: warning: (this will be reported only once per input file)
In file included from D:/OpenSource/wx/include/wx/defs.h:509,
                 from D:/OpenSource/wx/include/wx/wxprec.h:13,
                 from ./wx_pch.h:9,
                 from <command line>:7:
d:/Program Files/CodeBlocks/include/stddef.h:6:2: warning: #include_next is a GCC extension
In file included from D:/OpenSource/wx/include/wx/wxprec.h:13,
                 from ./wx_pch.h:9,
                 from <command line>:7:
D:/OpenSource/wx/include/wx/defs.h:995: warning: ISO C90 does not support `long long'
D:/OpenSource/wx/include/wx/defs.h:996: warning: ISO C90 does not support `long long'
In file included from D:/OpenSource/wx/include/wx/wxprec.h:13,
                 from ./wx_pch.h:9,
                 from <command line>:7:
D:/OpenSource/wx/include/wx/defs.h:1857:8: warning: C++ style comments are not allowed in ISO C90
D:/OpenSource/wx/include/wx/defs.h:1857:8: warning: (this will be reported only once per input file)
In file included from D:/OpenSource/wx/include/wx/wxprec.h:45,
                 from ./wx_pch.h:9,
                 from <command line>:7:
D:/OpenSource/wx/include/wx/msw/wrapwin.h:1:1: warning: C++ style comments are not allowed in ISO C90
D:/OpenSource/wx/include/wx/msw/wrapwin.h:1:1: warning: (this will be reported only once per input file)
In file included from D:/OpenSource/wx/include/wx/msw/wrapwin.h:58,
                 from D:/OpenSource/wx/include/wx/wxprec.h:45,
                 from ./wx_pch.h:9,
                 from <command line>:7:
D:/OpenSource/wx/include/wx/msw/winundef.h:1:1: warning: C++ style comments are not allowed in ISO C90
D:/OpenSource/wx/include/wx/msw/winundef.h:1:1: warning: (this will be reported only once per input file)
In file included from D:/OpenSource/wx/include/wx/wxprec.h:54,
                 from ./wx_pch.h:9,
                 from <command line>:7:
D:/OpenSource/wx/include/wx/wx.h:1:1: warning: C++ style comments are not allowed in ISO C90
D:/OpenSource/wx/include/wx/wx.h:1:1: warning: (this will be reported only once per input file)
In file included from D:/OpenSource/wx/include/wx/wx.h:16,
                 from D:/OpenSource/wx/include/wx/wxprec.h:54,
                 from ./wx_pch.h:9,
                 from <command line>:7:
D:/OpenSource/wx/include/wx/object.h:1:1: warning: C++ style comments are not allowed in ISO C90
D:/OpenSource/wx/include/wx/object.h:1:1: warning: (this will be reported only once per input file)
In file included from D:/OpenSource/wx/include/wx/object.h:25,
                 from D:/OpenSource/wx/include/wx/wx.h:16,
                 from D:/OpenSource/wx/include/wx/wxprec.h:54,
                 from ./wx_pch.h:9,
                 from <command line>:7:
D:/OpenSource/wx/include/wx/memory.h:1:1: warning: C++ style comments are not allowed in ISO C90
D:/OpenSource/wx/include/wx/memory.h:1:1: warning: (this will be reported only once per input file)
In file included from D:/OpenSource/wx/include/wx/memory.h:20,
                 from D:/OpenSource/wx/include/wx/object.h:25,
                 from D:/OpenSource/wx/include/wx/wx.h:16,
                 from D:/OpenSource/wx/include/wx/wxprec.h:54,
                 from ./wx_pch.h:9,
                 from <command line>:7:
D:/OpenSource/wx/include/wx/string.h:1:1: warning: C++ style comments are not allowed in ISO C90
D:/OpenSource/wx/include/wx/string.h:1:1: warning: (this will be reported only once per input file)
In file included from d:/Program Files/CodeBlocks/include/stdio.h:26,
                 from D:/OpenSource/wx/include/wx/string.h:40,
                 from D:/OpenSource/wx/include/wx/memory.h:20,
                 from D:/OpenSource/wx/include/wx/object.h:25,
                 from D:/OpenSource/wx/include/wx/wx.h:16,
                 from D:/OpenSource/wx/include/wx/wxprec.h:54,
                 from ./wx_pch.h:9,
                 from <command line>:7:
d:/Program Files/CodeBlocks/include/stddef.h:6:2: warning: #include_next is a GCC extension
In file included from d:/Program Files/CodeBlocks/include/stdio.h:28,
                 from D:/OpenSource/wx/include/wx/string.h:40,
                 from D:/OpenSource/wx/include/wx/memory.h:20,
                 from D:/OpenSource/wx/include/wx/object.h:25,
                 from D:/OpenSource/wx/include/wx/wx.h:16,
                 from D:/OpenSource/wx/include/wx/wxprec.h:54,
                 from ./wx_pch.h:9,
                 from <command line>:7:
d:/Program Files/CodeBlocks/include/stdarg.h:6:2: warning: #include_next is a GCC extension
In file included from D:/OpenSource/wx/include/wx/string.h:40,
                 from D:/OpenSource/wx/include/wx/memory.h:20,
                 from D:/OpenSource/wx/include/wx/object.h:25,
                 from D:/OpenSource/wx/include/wx/wx.h:16,
                 from D:/OpenSource/wx/include/wx/wxprec.h:54,
                 from ./wx_pch.h:9,
                 from <command line>:7:
d:/Program Files/CodeBlocks/include/stdio.h:330: warning: ISO C90 does not support `long long'
In file included from D:/OpenSource/wx/include/wx/string.h:40,
                 from D:/OpenSource/wx/include/wx/memory.h:20,
                 from D:/OpenSource/wx/include/wx/object.h:25,
                 from D:/OpenSource/wx/include/wx/wx.h:16,
                 from D:/OpenSource/wx/include/wx/wxprec.h:54,
                 from ./wx_pch.h:9,
                 from <command line>:7:
d:/Program Files/CodeBlocks/include/stdio.h:416:14: warning: use of C99 long long integer constant
In file included from D:/OpenSource/wx/include/wx/string.h:41,
                 from D:/OpenSource/wx/include/wx/memory.h:20,
                 from D:/OpenSource/wx/include/wx/object.h:25,
                 from D:/OpenSource/wx/include/wx/wx.h:16,
                 from D:/OpenSource/wx/include/wx/wxprec.h:54,
                 from ./wx_pch.h:9,
                 from <command line>:7:
d:/Program Files/CodeBlocks/include/stdarg.h:6:2: warning: #include_next is a GCC extension
In file included from D:/OpenSource/wx/include/wx/string.h:55,
                 from D:/OpenSource/wx/include/wx/memory.h:20,
                 from D:/OpenSource/wx/include/wx/object.h:25,
                 from D:/OpenSource/wx/include/wx/wx.h:16,
                 from D:/OpenSource/wx/include/wx/wxprec.h:54,
                 from ./wx_pch.h:9,
                 from <command line>:7:
D:/OpenSource/wx/include/wx/buffer.h:1:1: warning: C++ style comments are not allowed in ISO C90
D:/OpenSource/wx/include/wx/buffer.h:1:1: warning: (this will be reported only once per input file)
In file included from D:/OpenSource/wx/include/wx/string.h:55,
                 from D:/OpenSource/wx/include/wx/memory.h:20,
                 from D:/OpenSource/wx/include/wx/object.h:25,
                 from D:/OpenSource/wx/include/wx/wx.h:16,
                 from D:/OpenSource/wx/include/wx/wxprec.h:54,
                 from ./wx_pch.h:9,
                 from <command line>:7:
D:/OpenSource/wx/include/wx/buffer.h:96: error: syntax error before "wxCharBuffer"
D:/OpenSource/wx/include/wx/buffer.h:96: error: syntax error before '=' token
D:/OpenSource/wx/include/wx/buffer.h: In function `release':
D:/OpenSource/wx/include/wx/buffer.h:96: error: syntax error before '{' token
D:/OpenSource/wx/include/wx/buffer.h:176: error: syntax error before "private"
In file included from D:/OpenSource/wx/include/wx/string.h:56,
                 from D:/OpenSource/wx/include/wx/memory.h:20,
                 from D:/OpenSource/wx/include/wx/object.h:25,
                 from D:/OpenSource/wx/include/wx/wx.h:16,
                 from D:/OpenSource/wx/include/wx/wxprec.h:54,
                 from ./wx_pch.h:9,
                 from <command line>:7:
D:/OpenSource/wx/include/wx/strconv.h:1:1: warning: C++ style comments are not allowed in ISO C90
D:/OpenSource/wx/include/wx/strconv.h:1:1: warning: (this will be reported only once per input file)
In file included from D:/OpenSource/wx/include/wx/string.h:56,
                 from D:/OpenSource/wx/include/wx/memory.h:20,
                 from D:/OpenSource/wx/include/wx/object.h:25,
                 from D:/OpenSource/wx/include/wx/wx.h:16,
                 from D:/OpenSource/wx/include/wx/wxprec.h:54,
                 from ./wx_pch.h:9,
                 from <command line>:7:
D:/OpenSource/wx/include/wx/strconv.h:50: error: syntax error before "cMB2WC"
D:/OpenSource/wx/include/wx/strconv.h:51: error: syntax error before "cWC2MB"
D:/OpenSource/wx/include/wx/strconv.h:57: error: redefinition of parameter 'wxWCharBuffer'
D:/OpenSource/wx/include/wx/strconv.h:50: error: previous definition of 'wxWCharBuffer' was here
D:/OpenSource/wx/include/wx/strconv.h:57: error: syntax error before "cMB2WC"
D:/OpenSource/wx/include/wx/strconv.h:58: error: redefinition of parameter 'wxCharBuffer'
D:/OpenSource/wx/include/wx/strconv.h:51: error: previous definition of 'wxCharBuffer' was here
D:/OpenSource/wx/include/wx/strconv.h:58: error: syntax error before "cWC2MB"

D:/OpenSource/wx/include/wx/strconv.h:219: error: syntax error before "const"
D:/OpenSource/wx/include/wx/strconv.h:232: error: syntax error before "wxFontEncoding"
D:/OpenSource/wx/include/wx/strconv.h:246: error: storage class specified for parameter `wxMBConv'
D:/OpenSource/wx/include/wx/strconv.h:246: error: syntax error before '&' token
D:/OpenSource/wx/include/wx/strconv.h:249: error: storage class specified for parameter `wxCSConv'
D:/OpenSource/wx/include/wx/strconv.h:249: error: syntax error before '&' token
D:/OpenSource/wx/include/wx/strconv.h:250: error: storage class specified for parameter `wxMBConvUTF7'
D:/OpenSource/wx/include/wx/strconv.h:250: error: syntax error before '&' token
D:/OpenSource/wx/include/wx/strconv.h:251: error: storage class specified for parameter `wxMBConvUTF8'
D:/OpenSource/wx/include/wx/strconv.h:251: error: syntax error before '&' token
D:/OpenSource/wx/include/wx/strconv.h:260: error: storage class specified for parameter `wxMBConv'
D:/OpenSource/wx/include/wx/strconv.h:260: error: redefinition of parameter 'wxMBConv'
D:/OpenSource/wx/include/wx/strconv.h:246: error: previous definition of 'wxMBConv' was here
D:/OpenSource/wx/include/wx/strconv.h:260: error: syntax error before '*' token
D:/OpenSource/wx/include/wx/strconv.h:267: error: storage class specified for parameter `wxMBConv'
D:/OpenSource/wx/include/wx/strconv.h:267: error: redefinition of parameter 'wxMBConv'
D:/OpenSource/wx/include/wx/strconv.h:260: error: previous definition of 'wxMBConv' was here
D:/OpenSource/wx/include/wx/strconv.h:267: error: syntax error before '*' token
D:/OpenSource/wx/include/wx/strconv.h:270: error: storage class specified for parameter `wxCSConv'
D:/OpenSource/wx/include/wx/strconv.h:270: error: redefinition of parameter 'wxCSConv'
D:/OpenSource/wx/include/wx/strconv.h:249: error: previous definition of 'wxCSConv' was here
D:/OpenSource/wx/include/wx/strconv.h:270: error: syntax error before '&' token
D:/OpenSource/wx/include/wx/strconv.h:281: error: storage class specified for parameter `wxMBConvUTF16LE'
D:/OpenSource/wx/include/wx/strconv.h:281: error: syntax error before "wxMBConvUTF16"
D:/OpenSource/wx/include/wx/strconv.h:282: error: storage class specified for parameter `wxMBConvUTF32LE'
D:/OpenSource/wx/include/wx/strconv.h:282: error: syntax error before "wxMBConvUTF32"
In file included from D:/OpenSource/wx/include/wx/memory.h:20,
                 from D:/OpenSource/wx/include/wx/object.h:25,
                 from D:/OpenSource/wx/include/wx/wx.h:16,
                 from D:/OpenSource/wx/include/wx/wxprec.h:54,
                 from ./wx_pch.h:9,
                 from <command line>:7:
D:/OpenSource/wx/include/wx/string.h:296: error: storage class specified for parameter `value_type'
Process terminated with status 1 (0 minutes, 6 seconds)
52 errors, 62 warnings
 Any ideas about above errors???

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Compilation errors
« Reply #1 on: August 01, 2006, 02:06:22 pm »
ac506in,

you have told us nothing about your setup and you constantly bombard us with build logs. Please stop doing that. Take the time and explain us your setup, what did you do, what files you have installed, which documentation you have read for setting things up (wiki?), etc.
The more precise your description is, the more chances you have to get some intelligent help.
Be patient!
This bug will be fixed soon...

ac506in

  • Guest
Re: Compilation errors
« Reply #2 on: August 01, 2006, 02:12:26 pm »
Sorry for not giving complete info..
here is that:

I have installed C::B with mingw compiler...
I have build wxwidgets ...Following dir is created
wx\lib\gcc_dll
with some libraries and two dll's wxmsw26_gcc_cb.dll,wxmsw26u_gcc_custom.dll
Now i am trying to compile hello world application and getting the above errors
I did some setting inC::B ..like setting compiler , linker directory options...
I am not sure what might be reason..for above errors...

ac506in

  • Guest
Re: Compilation errors
« Reply #3 on: August 01, 2006, 02:14:29 pm »
Is there any good tutorial to start with gcc compiler....
I search wiki and google , but didnt found any good one..

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Compilation errors
« Reply #4 on: August 01, 2006, 03:00:35 pm »
Any ideas about above errors???
--pedantic
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Compilation errors
« Reply #5 on: August 01, 2006, 03:11:32 pm »
Is there any good tutorial to start with gcc compiler....
I search wiki and google , but didnt found any good one..
Here is a mini-tutorial:
(1) Start using gcc with the default settings. You will be surprised, it really works.
(2) Read http://gcc.gnu.org/onlinedocs/ before changing any settings.
(3) Look up what -O2, -g, and -s do first, then you'll know 95% of what you'll ever need.
(4) Never touch a setting if you don't know what it does ("--pedantic").
(5) If in doubt, refer to (4).
(5) If something goes weird, try default options.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

sethjackson

  • Guest
Re: Compilation errors
« Reply #6 on: August 01, 2006, 06:15:20 pm »
Is there any good tutorial to start with gcc compiler....
I search wiki and google , but didnt found any good one..
Here is a mini-tutorial:
(1) Start using gcc with the default settings. You will be surprised, it really works.
(2) Read http://gcc.gnu.org/onlinedocs/ before changing any settings.
(3) Look up what -O2, -g, and -s do first, then you'll know 95% of what you'll ever need.
(4) Never touch a setting if you don't know what it does ("--pedantic").
(5) If in doubt, refer to (4).
(5) If something goes weird, try default options.

Yeah it is very hard (I would say impossible) to compile wxWidgest programs with the --pedantic switch (okay okay I only tried it once. After that I learnt my lesson....).

Offline kagerato

  • Multiple posting newcomer
  • *
  • Posts: 56
    • kagerato.net
Re: Compilation errors
« Reply #7 on: August 02, 2006, 01:28:57 am »
Yeah it is very hard (I would say impossible) to compile wxWidgest programs with the --pedantic switch (okay okay I only tried it once. After that I learnt my lesson....).

"Characterized by a narrow, often ostentatious concern for book learning and formal rules".  I'd say that fits quite well.

sethjackson

  • Guest
Re: Compilation errors
« Reply #8 on: August 02, 2006, 02:18:58 am »
Yeah it is very hard (I would say impossible) to compile wxWidgest programs with the --pedantic switch (okay okay I only tried it once. After that I learnt my lesson....).

"Characterized by a narrow, often ostentatious concern for book learning and formal rules".  I'd say that fits quite well.

Hmm I don't get it?  :?

Offline kagerato

  • Multiple posting newcomer
  • *
  • Posts: 56
    • kagerato.net
Re: Compilation errors
« Reply #9 on: August 02, 2006, 07:34:35 am »
Hmm I don't get it?  :?

Oh, it's merely the dictionary definition of "pedantic".  It's an odd word, even for English.  :)

sethjackson

  • Guest
Re: Compilation errors
« Reply #10 on: August 02, 2006, 12:57:23 pm »
Hmm I don't get it?  :?

Oh, it's merely the dictionary definition of "pedantic".  It's an odd word, even for English.  :)

Oh ok I see. :)

Angel Portal

  • Guest
Re: Compilation errors
« Reply #11 on: August 02, 2006, 03:12:34 pm »
About this message

I have installed C::B with mingw compiler...
I have build wxwidgets ...Following dir is created
wx\lib\gcc_dll
with some libraries and two dll's wxmsw26_gcc_cb.dll,wxmsw26u_gcc_custom.dll
Now i am trying to compile hello world application and getting the above errors
I did some setting inC::B ..like setting compiler , linker directory options...
I am not sure what might be reason..for above errors...

Did you notice that wxmsw26u_gcc_custom.dll is UNICODE, but the other dll is not? Did you compile wxwidgets for UNICODE or ANSI? Did you declare the
wx directory in the C::B?
Just to point you out some problems that might occour in the instalation!!!

Angel Portal

[attachment deleted by admin]