Author Topic: error: ISO C++ forbids declaration of `Custom1' with no type  (Read 30131 times)

Offline AmR EiSa

  • Multiple posting newcomer
  • *
  • Posts: 75
error: ISO C++ forbids declaration of `Custom1' with no type
« on: February 11, 2007, 06:26:47 am »
Hi , i try building C::B with WX2.8 in Win Xp Pro with MinGW

and i get this build log it's in Attach file
this is the error i have got ?

Quote
error: ISO C++ forbids declaration of `Custom1' with no type

any help ?

AmR EiSa



[attachment deleted by admin]

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: error: ISO C++ forbids declaration of `Custom1' with no type
« Reply #1 on: February 11, 2007, 07:05:57 am »
I've never faced that problem with GCC-3.4.5 or 4.1.1 in WinXP SP2. But surely I didn't try with wx 2.8.0. ;)
Be a part of the solution, not a part of the problem.

Offline AmR EiSa

  • Multiple posting newcomer
  • *
  • Posts: 75
Re: error: ISO C++ forbids declaration of `Custom1' with no type
« Reply #2 on: February 11, 2007, 07:56:10 am »
I only try ;)

Online stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: error: ISO C++ forbids declaration of `Custom1' with no type
« Reply #3 on: February 11, 2007, 10:06:37 am »
What version of GCC? (gcc --version)
What version of wxWidgets 2.8.? (wx/version.h)
I am using 2.8.1.2 of wxWidgets.
What version of minGW __MINGW32_VERSION? (_mingw.h, __MINGW32_VERSION)
What version of minGW __W32API_VERSION? (w32api.h, __W32API_VERSION)
What version of Code::Blocks? (SVN number)

Tim S
« Last Edit: February 11, 2007, 10:21:32 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline AmR EiSa

  • Multiple posting newcomer
  • *
  • Posts: 75
Re: error: ISO C++ forbids declaration of `Custom1' with no type
« Reply #4 on: February 11, 2007, 10:14:40 am »
gcc version 3.4.5 (mingw special)
wxWidgets 2.8.0

Online stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: error: ISO C++ forbids declaration of `Custom1' with no type
« Reply #5 on: February 11, 2007, 10:21:59 am »
Added three ?

What version of minGW __MINGW32_VERSION? (_mingw.h, __MINGW32_VERSION)
What version of minGW __W32API_VERSION? (w32api.h, __W32API_VERSION)
What version of Code::Blocks? (SVN number)

Please turn on full command line logging and POST compiler line that causes the error.

I am trying wx2.8.0 to see if I can duplicate error, using current C::B svn and a standard minGW.
(I have normally been using a modified minGW and wx2.8 branch)

Here's my command line for you to compare with.
Code
mingw32-g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DTIXML_USE_STL -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DEXPORT_LIB -DEXPORT_EVENTS  -IC:\wx\inno\wxWidgets-2.8\wxWidgets-2.8.0\include -IC:\wx\inno\wxWidgets-2.8\wxWidgets-2.8.0\lib\gcc_dll\mswu -IC:\wx\inno\wxWidgets-2.8\wxWidgets-2.8.0\contrib\include -Isdk\wxscintilla\include -Isdk\propgrid\include -Isdk -Isdk\scripting\include -Isdk\scripting\sqplus -Isdk\wxFlatNotebook\include -IC:\apps\MinGW_GCC_3.4.5_API_3_8\include  -c C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\sdk\projectoptionsdlg.cpp -o .objs\2.6\sdk\projectoptionsdlg.o
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\sdk\projectoptionsdlg.cpp: In member function `void ProjectOptionsDlg::OnFileToggleMarkClick(wxCommandEvent&)':
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\sdk\projectoptionsdlg.cpp:745: warning: comparison between signed and unsigned integer expressions
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\sdk\projectoptionsdlg.cpp: In member function `void ProjectOptionsDlg::OnRemoveScript(wxCommandEvent&)':
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\sdk\projectoptionsdlg.cpp:908: warning: comparison between signed and unsigned integer expressions
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\sdk\projectoptionsdlg.cpp: In member function `void ProjectOptionsDlg::OnScriptMoveDown(wxSpinEvent&)':
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\sdk\projectoptionsdlg.cpp:938: warning: comparison between signed and unsigned integer expressions

Tim S
« Last Edit: February 12, 2007, 06:41:45 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline AmR EiSa

  • Multiple posting newcomer
  • *
  • Posts: 75
Re: error: ISO C++ forbids declaration of `Custom1' with no type
« Reply #6 on: February 12, 2007, 05:50:48 am »
i setup my MinGW with MinGW-5.1.3 with candidate ,
binutils-2.17.50
gcc-core-3.4.5
gcc-g++-3.4.5
mingw-runtime-3.11
mingw32-make-3.81-1
w32api-3.8

and with wxPack v2.8.0.03 i think the ver in wxpack is what in wx download site but i del this i get wx 2.8.1.2 and now try to build it with Min GW and VC80

Online stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: error: ISO C++ forbids declaration of `Custom1' with no type
« Reply #7 on: February 12, 2007, 06:45:45 am »
Can you build wxWidgets from source using your minGW setup?

If, yes and you still have issues compiling C::B against wxWidgets 2.8.0, Please turn on full command line logging and POST compiler line that causes the error. It works for me with a slightly older minGW installation.

Tim S

« Last Edit: February 12, 2007, 06:47:58 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline AmR EiSa

  • Multiple posting newcomer
  • *
  • Posts: 75
Re: error: ISO C++ forbids declaration of `Custom1' with no type
« Reply #8 on: February 14, 2007, 06:19:46 am »
now i rebuild wx ver 2.8.1.2

Offline AmR EiSa

  • Multiple posting newcomer
  • *
  • Posts: 75
Re: error: ISO C++ forbids declaration of `Custom1' with no type
« Reply #9 on: March 03, 2007, 09:05:20 pm »
i do it with 2.8.1.2 and same info but i will upload build log files soon  :(
Sorry for that but I format my HD  :(


AmR EiSa

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: error: ISO C++ forbids declaration of `Custom1' with no type
« Reply #10 on: March 03, 2007, 09:30:36 pm »
Ummm, it looks like custom control generated by wxSmith  :?
Haven't you accidentially open some resource before compiling ?
If yes, try to checkout fresh C::B sources and check if it will work :)

Offline AmR EiSa

  • Multiple posting newcomer
  • *
  • Posts: 75
Re: error: ISO C++ forbids declaration of `Custom1' with no type
« Reply #11 on: March 03, 2007, 09:49:19 pm »
No i don't :(
But i will see that C::B in my pc take 200 M  :shock: